UFO:Alien Invasion
Technical support => FAQ => Topic started by: atomisirsi on March 08, 2006, 12:55:43 pm
-
Here's how I installed UFO on my GNU/Linux x86:
- get the sources and the data from SVN
mkdir ufoai
cd ufoai
svn co https://svn.sourceforge.net/svnroot/ufoai/ufoai/trunk
cd trunk
* compile the source
cd src
make
make lang
cd ..
cd base/maps/
make
cd ..
- finally link the binaries and shared objects to root dir
ln -s src/debugi386/ref_glx.so
ln -s src/debugi386/ref_sdl.so
ln -s src/debugi386/ufo
ln -s src/debugi386/ufoded
ln -s src/debugi386/game.so base/
./ufo
[/list]
EDIT: Use the "trunk" directory for checkout. It's alot faster/easier that way.
-
Windows users: The source has been successfully built for Win32 (although not by me personally). The source will compile in Microsoft Visual Studio .net 2005.
-
[S|G] mentioned here (http://ufo.myexp.de/phpBB2/viewtopic.php?p=150#150) that the svn command needs to be like this:
svn co https://svn.sourceforge.net/svnroot/ufoai/ufoai/trunk/src
and
svn co https://svn.sourceforge.net/svnroot/ufoai/ufoai/trunk/base
or simply...
svn co https://svn.sourceforge.net/svnroot/ufoai/ufoai/trunk trunk
...for everything at once.
Werner
-
there is an update on this:
you don`t need to grab the base archive anymore.
everything is in svn now.
but you have to compile the maps, too (this step will need a few hours to finish)
just call the compile.pl (need perl installed) by typing perl compile.pl (for windows - use active state - linux type only ./compile.pl) in base/maps.
this will call the qbsp3 and qrad3 command which can be found in src/tools
^^when they are not compiled right now, type make in this dir (for windows, you can grab them from the files section of our sourceforge.net project site - they are included in the tools-archive)
-
To compile the maps, should we use compile.pl or the Makefile?
btw. I've updated this FAQ to meet the latest SVN changes.
-
To compile the maps, should we use compile.pl or the Makefile?
Since i doubt the compile.pl script was updated recently i would say just ignore it. I suspect the perl-script was there before somebody made the makefile ... just to quote the comment in the script itself:
# If you have a "make" program installed, you're likely to prefer the
# Makefile to this script, which cannot run jobs in parallel, is not
# able to rebuild only the maps that changed since last time you
# built, and does not handle the case when qrad3 gets interrupted
# mid-way.
EDIT: I've updated your first post as well.
Werner
-
In the first post,
svn co https://svn.sourceforge.net/svnroot/ufoai/ufoai/trunk
is the correct SVN path (one /ufoai is missing).
-
I added a Debian Wiki subpage for the compilation/installation process on Debian and Debian-based systems.
Hope this helps anyone.
btw. When compiling maps and not installing the game yet, usually no ufo2map executable is found in path, so I prefer doing
$ cd ../base/maps
$ PATH=$PATH:../../debugi386/ make
Before making. I mentioned this in wiki.
-
> finally link the binaries and shared objects to root dir
This step seems to be done automatically in the latest SVN. Anyway, I've done a fresh compile on Debian GNU/Linux and the game runs without any manual copying.
P.S. Thanks for the PATH=... tip!