Slav2 | Feb 06, 2014 10:27 pm |
---|---|
Subject: Need links to correct SDL version files Hello, I wanted to build MAXR and was not able to do this with SDL files from libsdl.org website. Current available for download versions are: SDL-1.2.15 SDL_net-1.2.8 SDL_mixer-1.2.12 Can you please check what file versions you use to build project and, if possible, point out a link where to download them? Thanks, Slav2 |
alzi | Feb 06, 2014 11:16 pm |
---|---|
Subject: Re: Need links to correct SDL version files Hi Slav2, we migrated to SDL2 some weeks ago, so use the latest available versions of SDL, SDL_Net and SDL_Mixer to build MAXR. You can find them here: http://www.libsdl.org/download-2.0.php http://www.libsdl.org/projects/SDL_mixer/ http://www.libsdl.org/projects/SDL_net/ |
ObeY | Feb 06, 2014 11:53 pm |
---|---|
Subject: Re: Need links to correct SDL version files and add the libs to the depencys (instead of the sdl [1.x]) SDL2_mixer.lib SDL2_net.lib SDL2.lib SDL2main.lib and don't forget to add the lib and include directorys in VS see also https://www.maxr.org/docs.php?id=57 HTH |
Slav2 | Feb 07, 2014 12:04 am |
---|---|
Subject: Re: Need links to correct SDL version files Thank you, Now I have another problem: buildings.obj : error LNK2019: unresolved external symbol _FLI_Close referenced in function "public: void __thiscall cBuilding::Select(class cGameGUI &)" (?Select@cBuilding@@QAEXAAVcGameGUI@@@Z) hud.obj : error LNK2001: unresolved external symbol _FLI_Close vehicles.obj : error LNK2001: unresolved external symbol _FLI_Close hud.obj : error LNK2019: unresolved external symbol _FLI_NextFrame referenced in function "public: virtual int __thiscall cGameGUI::show(class cClient *)" (?show@cGameGUI@@UAEHPAVcClient@@@Z) hud.obj : error LNK2019: unresolved external symbol _FLI_Rewind referenced in function "public: void __thiscall cGameGUI::setFLC(struct FLI_Animation *)" (?setFLC@cGameGUI@@QAEXPAUFLI_Animation@@@Z) vehicles.obj : error LNK2019: unresolved external symbol _FLI_Open referenced in function "public: void __thiscall cVehicle::Select(class cGameGUI &)" (?Select@cVehicle@@QAEXAAVcGameGUI@@@Z) C:\MaxDev\MAXR\MAXR\Debug\MAXR.exe : fatal error LNK1120: 4 unresolved externals What else I need to reference? |
alzi | Feb 07, 2014 12:07 am |
---|---|
Subject: Re: Need links to correct SDL version files I think you just forgot to add SDL_flic.c to your project/makefile. That may be because it is a .c and not a .cpp file. |
Slav2 | Feb 07, 2014 12:12 am |
---|---|
Subject: Re: Need links to correct SDL version files Thanks, now build was successful! |
ObeY | Feb 07, 2014 12:12 am |
---|---|
Subject: Re: Need links to correct SDL version files i just compile the newest maxr from svn - i use VS 2010 - create n new empty win32 project - get the newest sourcecode from SVN svn://maxr.org/ - add the 3 res files to ur projekt (max.rc, maxr.bmp, maxr.ico) - add all header files (*.h) - add all source files (cpp AND the *.c file) - i change the character set from unicode to multibyte - i have add the (3) sdl2 lib dirs to the VC++ Directorys (SDL2_mixer-devel-2.0.0-VC.zip + SDL2_net-devel-2.0.0-VC.zip + SDL2-devel-2.0.1-VC.zip - add the (3) include dirs to the VC++ Directorys - add the depencys SDL2_mixer.lib SDL2_net.lib SDL2.lib SDL2main.lib now u should be able to compile edit: alzi was faster :-/ |