project-navigation
Personal tools

Author Topic: compilation of compile tools :-)  (Read 5341 times)

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
compilation of compile tools :-)
« 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

Hoehrer

  • Guest
Re: compilation of compile tools :-)
« Reply #1 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

stralep

  • Guest
compilation of compile tools :-)
« Reply #2 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?

Hoehrer

  • Guest
compilation of compile tools :-)
« Reply #3 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 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

Hoehrer

  • Guest
compilation of compile tools :-)
« Reply #4 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