Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DXX-Retro 1.4X3 issue compiling scons on linux mint #116

Open
nelrsf opened this issue Jun 21, 2020 · 1 comment
Open

DXX-Retro 1.4X3 issue compiling scons on linux mint #116

nelrsf opened this issue Jun 21, 2020 · 1 comment

Comments

@nelrsf
Copy link

nelrsf commented Jun 21, 2020

Hello friend, I have a problem compiling this version of d2x-rebirth on linux mint OS, I have downloaded the source code and when i run sons on it I get this error message:

In file included from main/movie.c:51:0: include/physfsrwops.h: At top level: include/physfsrwops.h:47:1: error: unknown type name ‘__EXPORT__’; did you mean ‘__FXSR__’? __EXPORT__ SDL_RWops *PHYSFSRWOPS_openRead(const char *fname); ^~~~~~~~~~ __FXSR__ include/physfsrwops.h:47:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token __EXPORT__ SDL_RWops *PHYSFSRWOPS_openRead(const char *fname); ^ include/physfsrwops.h:59:1: error: unknown type name ‘__EXPORT__’; did you mean ‘__FXSR__’? __EXPORT__ SDL_RWops *PHYSFSRWOPS_openWrite(const char *fname); ^~~~~~~~~~ __FXSR__ include/physfsrwops.h:59:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token __EXPORT__ SDL_RWops *PHYSFSRWOPS_openWrite(const char *fname); ^ include/physfsrwops.h:71:1: error: unknown type name ‘__EXPORT__’; did you mean ‘__FXSR__’? __EXPORT__ SDL_RWops *PHYSFSRWOPS_openAppend(const char *fname); ^~~~~~~~~~ __FXSR__ include/physfsrwops.h:71:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token __EXPORT__ SDL_RWops *PHYSFSRWOPS_openAppend(const char *fname); ^ include/physfsrwops.h:83:1: error: unknown type name ‘__EXPORT__’; did you mean ‘__FXSR__’? __EXPORT__ SDL_RWops *PHYSFSRWOPS_makeRWops(PHYSFS_file *handle); ^~~~~~~~~~ __FXSR__ include/physfsrwops.h:83:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token __EXPORT__ SDL_RWops *PHYSFSRWOPS_makeRWops(PHYSFS_file *handle); ^ main/movie.c: In function ‘RunMovie’: main/movie.c:389:13: error: implicit declaration of function ‘PHYSFSRWOPS_openRead’; did you mean ‘PHYSFS_openRead’? [-Werror=implicit-function-declaration] filehndl = PHYSFSRWOPS_openRead(filename); ^~~~~~~~~~~~~~~~~~~~ PHYSFS_openRead main/movie.c:389:11: warning: assignment makes pointer from integer without a cast [-Wint-conversion] filehndl = PHYSFSRWOPS_openRead(filename); ^ main/movie.c:394:4: warning: ‘PHYSFS_getLastError’ is deprecated [-Wdeprecated-declarations] con_printf(CON_URGENT, "Can't open movie <%s>: %s\n", filename, PHYSFS_getLastError()); ^~~~~~~~~~ In file included from main/player.h:23:0, from main/config.h:24, from main/movie.c:34: /usr/include/physfs.h:654:25: note: declared here PHYSFS_DECL const char *PHYSFS_getLastError(void) PHYSFS_DEPRECATED; ^~~~~~~~~~~~~~~~~~~ main/movie.c: In function ‘InitRobotMovie’: main/movie.c:502:11: warning: assignment makes pointer from integer without a cast [-Wint-conversion] RoboFile = PHYSFSRWOPS_openRead(filename); ^ main/movie.c:506:3: warning: ‘PHYSFS_getLastError’ is deprecated [-Wdeprecated-declarations] con_printf(CON_URGENT, "Can't open movie <%s>: %s\n", filename, PHYSFS_getLastError()); ^~~~~~~~~~ In file included from main/player.h:23:0, from main/config.h:24, from main/movie.c:34: /usr/include/physfs.h:654:25: note: declared here PHYSFS_DECL const char *PHYSFS_getLastError(void) PHYSFS_DEPRECATED; ^~~~~~~~~~~~~~~~~~~ main/movie.c: In function ‘init_subtitles’: main/movie.c:574:2: warning: ‘PHYSFS_read’ is deprecated [-Wdeprecated-declarations] read_count = PHYSFS_read(ifile, subtitle_raw_data, 1, size); ^~~~~~~~~~ In file included from main/player.h:23:0, from main/config.h:24, from main/movie.c:34: /usr/include/physfs.h:1333:27: note: declared here PHYSFS_DECL PHYSFS_sint64 PHYSFS_read(PHYSFS_File *handle, ^~~~~~~~~~~ main/movie.c: In function ‘init_movie’: main/movie.c:691:4: warning: ‘PHYSFS_getLastError’ is deprecated [-Wdeprecated-declarations] con_printf(CON_URGENT, "Can't open movielib <%s>: %s\n", filename, PHYSFS_getLastError()); ^~~~~~~~~~ In file included from main/player.h:23:0, from main/config.h:24, from main/movie.c:34: /usr/include/physfs.h:654:25: note: declared here PHYSFS_DECL const char *PHYSFS_getLastError(void) PHYSFS_DEPRECATED; ^~~~~~~~~~~~~~~~~~~ main/movie.c: In function ‘close_extra_robot_movie’: main/movie.c:718:4: warning: ‘PHYSFS_getLastError’ is deprecated [-Wdeprecated-declarations] con_printf(CON_URGENT, "Can't close movielib <%s>: %s\n", filename, PHYSFS_getLastError()); ^~~~~~~~~~ In file included from main/player.h:23:0, from main/config.h:24, from main/movie.c:34: /usr/include/physfs.h:654:25: note: declared here PHYSFS_DECL const char *PHYSFS_getLastError(void) PHYSFS_DEPRECATED; ^~~~~~~~~~~~~~~~~~~ main/movie.c:722:5: warning: ‘PHYSFS_getLastError’ is deprecated [-Wdeprecated-declarations] con_printf(CON_URGENT, "Can't close movielib <%s>: %s\n", filename, PHYSFS_getLastError()); ^~~~~~~~~~ In file included from main/player.h:23:0, from main/config.h:24, from main/movie.c:34: /usr/include/physfs.h:654:25: note: declared here PHYSFS_DECL const char *PHYSFS_getLastError(void) PHYSFS_DEPRECATED; ^~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors scons: *** [main/movie.o] Error 1 scons: building terminated because of errors.

when i run scons on last version of d1x-rebirth it works fine, but i don't know why it fails in d2x-rebirt DXX-Retro 1.4X3 version, I hope you can help me.

best regards
nrsf

@CodeOrangelt
Copy link

I have some experience compiling with scons; you might be missing some Linux dependencies needed to be compiling it. You'll have to run a command line for each library to download what you need. As far as what dependencies you need, Arne or _twilight on the DCL server might be able to help you. I know both are very experienced in compiling versions of the game on Linux using scons, and should be able to help you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants