Warzone 2100 successfully crosscompiled

Discuss the future of Warzone 2100 with us.
Post Reply
User avatar
DevUrandom
Regular
Regular
Posts: 1690
Joined: 31 Jul 2006, 23:14

Warzone 2100 successfully crosscompiled

Post by DevUrandom »

Hi!
I just crosscompiled WZ successfully for Windows (MinGW32) on Linux. Would be cool if someone could test the resulting exe. It runs fine under Wine. :)

http://download.gna.org/warzone/develop ... ne2100.exe
(This is a striped exe, without debug info. Original was 8.6MB big.)
User avatar
C01eMaN
Trained
Trained
Posts: 58
Joined: 11 Aug 2006, 07:17
Location: UK
Contact:

Re: Warzone 2100 successfully crosscompiled

Post by C01eMaN »

does it use the 2.0.5-rc1 data files?...
and what dlls does it use... if any?
Im Addicted To Warzone!!!!!!!
User avatar
DevUrandom
Regular
Regular
Posts: 1690
Joined: 31 Jul 2006, 23:14

Re: Warzone 2100 successfully crosscompiled

Post by DevUrandom »

I just had to find out the hard way that I compiled a trunk version... Thus it needs trunk data (branches/2.0 still uses poor filenames).
It does only use the OpenAL32.dll (and thus the wrap_oal.dll), I was successfull in running it with only those 2 dlls.
jeff_sadowski
Rookie
Rookie
Posts: 20
Joined: 24 Aug 2006, 04:18

Re: Warzone 2100 successfully crosscompiled

Post by jeff_sadowski »

Oooh interesting I'd be interested heavily in how to do this I'd be able to compile it on my linux laptop and play it on my windows game machine. :-)

some sort of flag you use to make?
User avatar
C01eMaN
Trained
Trained
Posts: 58
Joined: 11 Aug 2006, 07:17
Location: UK
Contact:

Re: Warzone 2100 successfully crosscompiled

Post by C01eMaN »

DevUrandom wrote: I just had to find out the hard way that I compiled a trunk version... Thus it needs trunk data (branches/2.0 still uses poor filenames).
It does only use the OpenAL32.dll (and thus the wrap_oal.dll), I was successfull in running it with only those 2 dlls.
there isnt anystatic libs for open al afterall i compiled it using some libs i got off the net and i forgot that i used the creative installer for open al so i didnt have the dll in the wz folder it was in one of my system folders lol my bad

ill let a bit o steam off playing the game tonight so ill test it as much as possible for ya

also i was just wondering if u could upload the new libs somewhere for everyone... thankyo please
Last edited by C01eMaN on 05 Nov 2006, 23:29, edited 1 time in total.
Im Addicted To Warzone!!!!!!!
User avatar
DevUrandom
Regular
Regular
Posts: 1690
Joined: 31 Jul 2006, 23:14

Re: Warzone 2100 successfully crosscompiled

Post by DevUrandom »

You just need the libs for the MinGW32 target... (Will post them in a sec)
Run configure like this:

Code: Select all

export PATH="__devpkg__/bin:${PATH}"
export LD_LIBRARY_PATH="__devpkg__/lib:${LD_LIBRARY_PATH}"
export C_INCLUDE_PATH="__devpkg__/include:${C_INCLUDE_PATH}"
./configure --target=mingw32 --host=mingw32 LDFLAGS='-Wl,-s -L__devpkg__/lib'
Here it comes:
http://download.gna.org/warzone/development/devpkg.7z
http://download.gna.org/warzone/develop ... 100.exe.7z

The new exe is a branches/2.0 exe. Means you can use it with the data from 2.0.5_rc1.

Updated warzone2100.exe.7z: Now with the uber Warzone 2100 icon!
Last edited by DevUrandom on 06 Nov 2006, 20:42, edited 1 time in total.
User avatar
C01eMaN
Trained
Trained
Posts: 58
Joined: 11 Aug 2006, 07:17
Location: UK
Contact:

Re: Warzone 2100 successfully crosscompiled

Post by C01eMaN »

thanks it works a treat... im using the trunk datafiles with it though didnt try the 2.0.5-rc1 files yet
Im Addicted To Warzone!!!!!!!
jeff_sadowski
Rookie
Rookie
Posts: 20
Joined: 24 Aug 2006, 04:18

Re: Warzone 2100 successfully crosscompiled

Post by jeff_sadowski »

sweet  ;D
User avatar
Terminator
Regular
Regular
Posts: 1077
Joined: 05 Aug 2006, 13:46
Location: Ukraine
Contact:

Re: Warzone 2100 successfully crosscompiled

Post by Terminator »

I dont understant How does this crosslpatform "good"???

Its the same wz as was. Only exe file weight changed. I just noticed that this crossplatef. wz working without C++ destributive > Its very good for WRP in generaly.
Death is the only way out... sh*t Happens !

Russian-speaking Social network Group http://vk.com/warzone2100
User avatar
DevUrandom
Regular
Regular
Posts: 1690
Joined: 31 Jul 2006, 23:14

Re: Warzone 2100 successfully crosscompiled

Post by DevUrandom »

Not crossplatfrom. Crosscompiled. Means that I compiled it on Linux, even though it is an executable for Windows. And that is great as I don't have to switch over to Windows anymore to compile are release.
For the enduser not much changed. Just, as you noticed, the MSVC redist is not longer needed. (Which again saves download size in the installer and our users from a lot of problems. :) )
Post Reply