Difference between revisions of "Compiling with Autotools (OpenXcom)"

From UFOpaedia
Jump to navigation Jump to search
(Add apt-get command for dependencies (Debian/Ubuntu))
Line 24: Line 24:
  
 
Now you done. Enjoy your invasion!
 
Now you done. Enjoy your invasion!
 +
 +
== Install Dependencies ==
 +
 +
On Debian and Debian-derived distributions, such as Ubuntu, all build dependencies can be installed with:
 +
 +
<pre>
 +
apt-get install --no-install-recommends \
 +
    build-essential libboost-dev libsdl1.2-dev libsdl-mixer1.2-dev \
 +
    libsdl-image1.2-dev libsdl-gfx1.2-dev libyaml-cpp-dev xmlto
 +
</pre>
 +
 +
The <code>--no-install-recommends</code> prevents <code>xmlto</code> from pulling along a gigabyte of unnecessary LaTeX packages.
  
 
==Updating sources ==
 
==Updating sources ==

Revision as of 18:27, 18 August 2015

Required packages

In order to compile OpenXcom you need to install additional dependencies.

Check the library websites if you can't find them with your distribution's package manager.

Don't forget to copy the X-Com resources to your bin folder as shown in Installing.

Commands

git clone https://github.com/SupSuper/OpenXcom.git
cd OpenXcom
./autogen.sh (optional)
./configure
make

After last command and, hopefully, success compilation openxcom binary will be placed in bin folder. Enter to that directory and launch it:

cd bin
./openxcom

Now you done. Enjoy your invasion!

Install Dependencies

On Debian and Debian-derived distributions, such as Ubuntu, all build dependencies can be installed with:

apt-get install --no-install-recommends \
    build-essential libboost-dev libsdl1.2-dev libsdl-mixer1.2-dev \
    libsdl-image1.2-dev libsdl-gfx1.2-dev libyaml-cpp-dev xmlto

The --no-install-recommends prevents xmlto from pulling along a gigabyte of unnecessary LaTeX packages.

Updating sources

To update sources just do:

git pull

And repeat compilation from running ./autogen.sh.