Mechanized Assault & eXploration Reloaded



#1 Feb 06, 2014 10:27 pm
Slav2 Offline
Mitglied
Registered since: Feb 05, 2014
Posts: 3


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
↑  ↓

#2 Feb 06, 2014 11:16 pm
alzi alzi Offline
Developer, Moderator
Registered since: Aug 12, 2007
Posts: 339


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/
Albert Ziegenhagel
↑  ↓

#3 Feb 06, 2014 11:53 pm
ObeY Offline
Approved Member
Registered since: Aug 12, 2013
Posts: 52


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
↑  ↓

#4 Feb 07, 2014 12:04 am
Slav2 Offline
Mitglied
Registered since: Feb 05, 2014
Posts: 3


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?
↑  ↓

#5 Feb 07, 2014 12:07 am
alzi alzi Offline
Developer, Moderator
Registered since: Aug 12, 2007
Posts: 339


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.
Albert Ziegenhagel
This post has been edited 1 times. Last edit on Feb 07, 2014 12:08 am by alzi. ↑  ↓

#6 Feb 07, 2014 12:12 am
Slav2 Offline
Mitglied
Registered since: Feb 05, 2014
Posts: 3


Subject: Re: Need links to correct SDL version files
Thanks, now build was successful! Happy
↑  ↓

#7 Feb 07, 2014 12:12 am
ObeY Offline
Approved Member
Registered since: Aug 12, 2013
Posts: 52


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 :-/
This post has been edited 1 times. Last edit on Feb 07, 2014 12:13 am by ObeY. ↑  ↓

Pages (1): 1


All times are GMT +02:00. Current time: 12:17 pm.