-
Notifications
You must be signed in to change notification settings - Fork 51
BuildingOpenNero
OpenNERO uses the CMake cross-platform build system. The general steps to building OpenNERO on any platform are:
- Install prerequisites as needed
- Get a copy of the source code
- Run cmake
- Run make
- Run OpenNERO
- If you have problems, scroll through the comments on this page - someone might have solved them for you =).
Install the following packages:
use: sudo apt-get install <package1> <package2> ...
- subversion (needed to get the source code)
- cmake
- g++
- doxygen
- libgl1-mesa-dev
- libx11-dev
- libxxf86vm-dev
- zlib1g-dev
- libbz2-dev
- libpng++-dev
- libjpeg-dev
- libboost-dev
- libboost-python-dev
- libboost-filesystem-dev
- libboost-serialization-dev
- libboost-system-dev
- libboost-date-time-dev
- maven
- openjdk-7-jdk
If you are using Fedora, trying finding the equivalent package names to the list above. Below is a partial list:
use: yum install <package1> <package2> ...
- boost-devel
- libX11-devel
- libXxf86vm-devel
- mesa-libGL-devel
- zlib-devel
- ...
The following packages are not needed for building OpenNERO, but they are needed for running certain mods in OpenNERO. You would need to install them whether you are building OpenNERO or downloading a precompiled binary.
- python-tk
- python-wxgtk2.8
- python-matplotlib
- python-scipy
- python-numpy
- python-imaging-tk
Once you have installed the prerequisites, you can continue to build OpenNERO using the following commands:
mkdir opennero
cd opennero
svn checkout http://opennero.googlecode.com/svn/trunk
mkdir build
cd build
cmake ../trunk
make
cd dist
./OpenNERO
cd trunk
svn update
cd ..\build
make
If you are having trouble building on Ubuntu 13.04, try running cmake with the following options:
$ cmake -DPYTHON_LIBRARY=/usr/lib/libpython2.7.so -DPYTHON_INCLUDE_DIR=/usr/include/python2.7 ...
This will force cmake to use python2.7 libraries instead of python3, which is necessary because boost is compiled against python2.7.