does ANYONE know how to compile natively on windows?

Discuss the future of Warzone 2100 with us.
alienkid10
Trained
Trained
Posts: 71
Joined: 07 Apr 2009, 22:38

does ANYONE know how to compile natively on windows?

Post by alienkid10 » 18 Jan 2010, 23:16

The guide on compiling on Windows is obsolete as I found out after about an hour. I want to compile on Windows using MinGW does any here do that? If so how? If it matters I am trying to compile truck.

Ceiling Cat
Trained
Trained
Posts: 47
Joined: 17 Jan 2010, 12:54

Re: does ANYONE know how to compile natively on windows?

Post by Ceiling Cat » 19 Jan 2010, 00:01

Same here, some trouble with MinGW(DevCPP version, if asking).
Did you download the developer package?

User avatar
Zarel
Elite
Elite
Posts: 5770
Joined: 03 Jan 2008, 23:35
Location: Minnesota, USA
Contact:

Re: does ANYONE know how to compile natively on windows?

Post by Zarel » 19 Jan 2010, 00:02

I just compiled Warzone on trunk today, using those instructions, MinGW + Windows 7 x64.

What's the problem?

alienkid10
Trained
Trained
Posts: 71
Joined: 07 Apr 2009, 22:38

Re: does ANYONE know how to compile natively on windows?

Post by alienkid10 » 19 Jan 2010, 01:15

yes I downloaded the devpkg in the tutorial. Zerel this:

Code: Select all

C:\build\warzone>mingw32-make -f makefile.win32
Checking config...
PACKAGE_VERSION := TRUNK
MODE := debug
DEVDIR := C:/build/devpkg-2.1
Config seems valid.
mingw32-make[1]: Entering directory `C:/build/warzone/build_tools'
mingw32-make[2]: Entering directory `C:/build/warzone/build_tools/autorevision'
makefile.win32:25: warning: overriding commands for target `clean'
../../makerules/exe.mk:13: warning: ignoring old commands for target `clean'
g++ -I../.. -DPACKAGE=\"warzone2100\" -DPACKAGE_VERSION=\"TRUNK\" -DYY_STATIC -I
C:/build/devpkg-2.1/include/SDL -IC:/build/devpkg-2.1/include/libpng12 -IC:/buil
d/devpkg-2.1/include/bfd -IC:/build/devpkg-2.1/include -DDEBUG -DWIN32   -g -Wal
l -O0  -c -o autorevision.o autorevision.cpp
g++ -std=gnu99 -g -Wall -Werror-implicit-function-declaration -O0  -o autorevisi
on.exe autorevision.o -LC:/build/devpkg-2.1/lib  -lmingw32 -lSDLmain -lSDL -lpng
12 -lphysfs -lz -lvorbisfile -lvorbis -logg -lpopt -lintl -lGLC -lglu32 -lopengl
32 -lopenal32 -ldbghelp -lshfolder -lwinmm -lws2_32 -lbfd -liberty -liconv -lz -
lfreetype -lfontconfig -lexpat -ltheora
C:\Mingw\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot fin
d -lintl
collect2: ld returned 1 exit status
mingw32-make[2]: *** [autorevision.exe] Error 1
mingw32-make[2]: Leaving directory `C:/build/warzone/build_tools/autorevision'
mingw32-make[1]: *** [autorevision] Error 2
mingw32-make[1]: Leaving directory `C:/build/warzone/build_tools'
mingw32-make: *** [build_tools] Error 2
using MinGW from SF.net

User avatar
BlueMaxima
Trained
Trained
Posts: 431
Joined: 05 Jun 2008, 09:20
Location: Sydney, Australia
Contact:

Re: does ANYONE know how to compile natively on windows?

Post by BlueMaxima » 19 Jan 2010, 12:20

I have the EXACT same problem, and no-one helps me either.
Bring back...ducks!

alienkid10
Trained
Trained
Posts: 71
Joined: 07 Apr 2009, 22:38

Re: does ANYONE know how to compile natively on windows?

Post by alienkid10 » 19 Jan 2010, 15:09

Blue: yeah spent an hour or so in #warzone2100-dev with people guessing how to fix it! If they were going to guess they should have told be before hand. Apparently no-one compile WZ on Windows so they can't help.

User avatar
Zarel
Elite
Elite
Posts: 5770
Joined: 03 Jan 2008, 23:35
Location: Minnesota, USA
Contact:

Re: does ANYONE know how to compile natively on windows?

Post by Zarel » 19 Jan 2010, 17:14

alienkid10 wrote:Blue: yeah spent an hour or so in #warzone2100-dev with people guessing how to fix it! If they were going to guess they should have told be before hand. Apparently no-one compile WZ on Windows so they can't help.
Again, I just compiled Warzone on Windows yesterday, the same way I always do. I don't know what these problems everyone talks about are, but I don't have them, so it's incorrect to say "no one". :/

alienkid10
Trained
Trained
Posts: 71
Joined: 07 Apr 2009, 22:38

Re: does ANYONE know how to compile natively on windows?

Post by alienkid10 » 19 Jan 2010, 18:21

Well then what's YOUR set-up?!?! What MinGW do you use? What Devpkg do you use what Version of Windows do you use? What did you add to your %PATH%? What time do you compile? What day? (both random that might not effect compile) What Folder is the source in? How about the Devpkg? Maybe if someone would tell us that DO have problems that then we could compile? Zarel why don't you rewrite the guide.

For me my set-up

FLEX/BISON : C:\Program Files\GNUWin32(\bin)
MinGW: http://sourceforge.net/projects/mingw/ : C:\minGW
SRC: C:\build\warzone\
DEVPKG: C:\build\Devpkg
Tortoise SVN for SVN client
TIME OF DAY: after soon 3-5ish
DAY: Monday
WINDOWS XP SP3
IE:7
RAM:1GB
HDD:160GB

My set-up^ What's yours Blue/Zarel?

User avatar
Zarel
Elite
Elite
Posts: 5770
Joined: 03 Jan 2008, 23:35
Location: Minnesota, USA
Contact:

Re: does ANYONE know how to compile natively on windows?

Post by Zarel » 19 Jan 2010, 18:32

Well, all I did was follow the MinGW compile guide exactly, so there's nothing more I can add to it.

I have Warzone in D:\Zarel\Warzone\warzone\ (trunk) and D:\Zarel\Warzone\warzone-2.3\ (2.3). devpkg is D:\Zarel\Warzone\devpkg\. As long as Flex, Bison, and MinGW are installed to their default locations (note that many of their default locations are outside of Program Files), it should be fine.

One thing missing from the compile guide is that you need to copy the fonts/ folder from the devpkg to warzone/src/fonts/, but that can be done after you compile successfully.

alienkid10
Trained
Trained
Posts: 71
Joined: 07 Apr 2009, 22:38

Re: does ANYONE know how to compile natively on windows?

Post by alienkid10 » 19 Jan 2010, 18:34

which Devpkg are you using? Any Idea what this -lintl thing is? Could it not be finding FLEX/BISON since it is in Program files? and it has a space in it?

EDIT: added -d to the make command
Attachments
make.txt
(195.82 KiB) Downloaded 257 times

User avatar
Zarel
Elite
Elite
Posts: 5770
Joined: 03 Jan 2008, 23:35
Location: Minnesota, USA
Contact:

Re: does ANYONE know how to compile natively on windows?

Post by Zarel » 19 Jan 2010, 19:34

I'm not sure; I don't think I've ever gotten that error. Perhaps it's a bug in the newest devpkg? Maybe it's that I'm using an older one.

I assume you've configured your Path environment variables correctly?

alienkid10
Trained
Trained
Posts: 71
Joined: 07 Apr 2009, 22:38

Re: does ANYONE know how to compile natively on windows?

Post by alienkid10 » 19 Jan 2010, 19:43

yes I triple checked PATH. What Devpkg do you use!? (for the 2nd or 3rd time!) Zip it up and attach it

User avatar
Zarel
Elite
Elite
Posts: 5770
Joined: 03 Jan 2008, 23:35
Location: Minnesota, USA
Contact:

Re: does ANYONE know how to compile natively on windows?

Post by Zarel » 19 Jan 2010, 19:56

I'm not at home; I don't have my Windows computer with me; I'm currently in class on my MacBook. I'll post my devpkg tomorrow night, that's the earliest I'll be able to get back at my Windows computer.

Ceiling Cat
Trained
Trained
Posts: 47
Joined: 17 Jan 2010, 12:54

Re: does ANYONE know how to compile natively on windows?

Post by Ceiling Cat » 19 Jan 2010, 19:59

If it doesn't work, I'll need a precompiled trunk because I can't possibly work on any mod without it working. Would start for the normal version, but what for if by the time I finish it's gonna be outdated already.

User avatar
Zarel
Elite
Elite
Posts: 5770
Joined: 03 Jan 2008, 23:35
Location: Minnesota, USA
Contact:

Re: does ANYONE know how to compile natively on windows?

Post by Zarel » 19 Jan 2010, 20:02

Well, unless you're using WZScript, trunk and 2.3 currently use the exact same mod structure. In fact, they have the exact same stats files right now.

Post Reply