UFO:Alien Invasion

Development => Coding => Topic started by: Mattn on May 15, 2006, 08:31:23 pm

Title: compilation of compile tools :-)
Post by: Mattn on May 15, 2006, 08:31:23 pm
can anybody please try to compile the ufo2map (merge of qbsp3 and qrad3) for windows? dev-cpp and/or vc-project files are welcome :-D
Title: Re: compilation of compile tools :-)
Post by: Hoehrer on May 16, 2006, 10:12:34 am
Quote from: "Mattn"
can anybody please try to compile the ufo2map (merge of qbsp3 and qrad3) for windows? dev-cpp and/or vc-project files are welcome :-D


UPDATE: there is now a ufo2map.dev file in SVN. If you are using windows and DevC++ please give it a try.

Werner
Title: compilation of compile tools :-)
Post by: stralep on May 16, 2006, 10:32:00 pm
I have compiled ufo2map.dev without any problem,
but when I put ufo2map.exe in /base/maps/ and start compile.pl, MesageBox 'Error' with text
Quote
SetQdirFromPath: no 'ufo' in E:\trunk\base\maps\./africa04 GetLastError()=2
apears.
Any help?
Title: compilation of compile tools :-)
Post by: Hoehrer on May 17, 2006, 12:03:22 pm
Quote from: "stralep"
I have compiled ufo2map.dev without any problem,
but when I put ufo2map.exe in /base/maps/ and start compile.pl, MesageBox 'Error' with text
Quote
SetQdirFromPath: no 'ufo' in E:\trunk\base\maps\./africa04 GetLastError()=2
apears.
Any help?


A quick workaround to make it find the correct path is to change the line
Code: [Select]
#define BASEDIRNAME "ufo"
to
Code: [Select]
#define BASEDIRNAME "trunk"
in src/tools/ufo2map/common/cmdlib.c

As you can see this is currently hardcoded. I hope we'll find some time to make this defineable somehow or auto-detected.
(where "trunk" can also be ufoai or whatever the top-directory of "base" is called)

Of course you can also rename the directory from trunk to ufo.

I've also updated the makefile  (http://svn.sourceforge.net/viewcvs.cgi/ufoai/ufoai/trunk/base/maps/Makefile?view=markup)in the maps-directory (the windows version is in comments right now) but i need to know how to filter files out in a file-list under windows (the dir-command doesn't lket me do this :-/). Right now it compiles _all_ *.map files .. and may halt on some.

Werner
Title: compilation of compile tools :-)
Post by: Hoehrer on May 17, 2006, 01:26:28 pm
I've change the code a bit. please try if it works out of the box.
Revision

EDIT: And there's now a Makefile.win for the maps.
Code: [Select]
make.exe -f Makefile.win

EDIT2: Rev1038 should work fine.

Werner