UFO:Alien Invasion

Technical support => FAQ => Topic started by: atomisirsi on March 08, 2006, 12:55:43 pm

Title: How can I install UFO?
Post by: atomisirsi on March 08, 2006, 12:55:43 pm
Here's how I installed UFO on my GNU/Linux x86:

Code: [Select]
mkdir ufoai
cd ufoai
svn co https://svn.sourceforge.net/svnroot/ufoai/ufoai/trunk
cd trunk

* compile the source
Code: [Select]
cd src
make
make lang
cd ..

Code: [Select]
cd base/maps/
make
cd ..

Code: [Select]
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/

Code: [Select]
./ufo[/list]

EDIT: Use the "trunk" directory for checkout. It's alot faster/easier that way.
Title: How can I install UFO?
Post by: BTAxis on March 08, 2006, 05:55:56 pm
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.
Title: How can I install UFO?
Post by: Hoehrer on March 22, 2006, 06:05:25 pm
[S|G] mentioned here (http://ufo.myexp.de/phpBB2/viewtopic.php?p=150#150) that the svn command needs to be like this:
Code: [Select]
svn co https://svn.sourceforge.net/svnroot/ufoai/ufoai/trunk/src

and

Code: [Select]
svn co https://svn.sourceforge.net/svnroot/ufoai/ufoai/trunk/base

or simply...
Code: [Select]
svn co https://svn.sourceforge.net/svnroot/ufoai/ufoai/trunk trunk
...for everything at once.

Werner
Title: How can I install UFO?
Post by: Mattn on April 24, 2006, 05:06:59 pm
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)
Title: How can I install UFO?
Post by: atomisirsi on May 16, 2006, 02:13:33 pm
To compile the maps, should we use compile.pl or the Makefile?

btw. I've updated this FAQ to meet the latest SVN changes.
Title: How can I install UFO?
Post by: Hoehrer on May 16, 2006, 02:23:44 pm
Quote from: "atomisirsi"
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:
Code: [Select]
# 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
Title: How can I install UFO?
Post by: WhiteAngel on June 11, 2006, 09:46:39 pm
In the first post,

svn co https://svn.sourceforge.net/svnroot/ufoai/ufoai/trunk

is the correct SVN path (one /ufoai is missing).
Title: How can I install UFO?
Post by: WhiteAngel on June 11, 2006, 10:46:04 pm
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.
Title: How can I install UFO?
Post by: Bandobras on June 16, 2006, 12:50:51 am
> 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!