Skip to content

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

@nelrsf

Description

@nelrsf

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions