- GNU Compiler 4.7.3+
- CMake 3.0.1+
- Doxygen 1.8.8
- Boost 1.59.0+
- SDL 2.0.3+
- SDL_image 2.0.0+
- SDL_ttf 2.0.12+
When building software libraries and executables the following directory structure should be adopted: software/package/package.xx.xx.xx, software/package/build, software/package/src. "package" will be the name of the particular software package of interest (see dependencies). "package.xx.xx.xx" comes from unpacking the compressed source files (e.g. package.tar.gz). The src directory is created by making a softlink to the package.xx.xx.xx directory. This is done to make the build a bit easier/faster.
Note that currently, depencies 1 and 2 should be built first.
- create a working directory where GDev will be built (e.g. software/gdev)
- move to the gdev directory
- run
git clone git@github.com:aprobinson/GDev.git
- run
ln -s FRENSIE src
When you run ls
from your working directory you should see the following: GDev src
. We will return to building GDev after we have build the dependencies.
- download the CMake 3.0.1 source
- move the cmake-3.0.1.tar.gz file to the cmake working directory (e.g. software/cmake)
- move to the cmake directory
- run
tar -xvf cmake-3.0.1.tar.gz
- run
ln -s cmake-3.0.1 src
- run
mkdir build
- move to the build directory (e.g. software/cmake/build)
- run
../src/configure --prefix=absolute-path-to_software/cmake
- run
make -j n
, where n is the number of threads to use while building - run
make test
- run
make install
- add the following line to the .bashrc file:
export PATH=absolute-path-to_software/cmake/bin:$PATH
- run
exec bash
- run
cmake --version
and verify that the output is 3.0.1
- download the Doxygen 1.8.8 source
- move the
doxygen-1.8.8.src.tar.gz
file to the doxygen working directory (e.g. software/gsl) - move to the doxygen directory
- run
tar -xvf doxygen-1.8.8.src.tar.gz
- move to the doxygen-1.8.8 directory
- run
./configure --prefix=absolute-path-to_software/doxygen
- run
make -j n
- run
make test
- run
make install
- update the
export PATH
line in the .bashrc file:export PATH=absolute-path-to_software/cmake/bin:absolute-path-to_software/doxygen/bin:$PATH
- run
exec bash
- download the SDL 2.0.3 source
- move the SDL2-2.0.3.tar.gz file to the sdl working directory (e.g. software/sdl)
- move to the sdl directory
- run
tar -xvf SDL2-2.0.3.tar.gz
- run
ln -s SDL2-2.0.3 src
- run
mkdir build
- move to the build directory (e.g. software/sdl/build)
- copy
GDev/scripts/sdl.sh
into the build directory - change the variables in the script to reflect the desired system paths
- run
sudo apt-get build-dep libsdl2
- run
./sdl.sh
to configure SDL - run
make -j n
- run
make install
- update the
export LD_LIBRARY_PATH
line in the .bashrc file:export LD_LIBRARY_PATH=absolute-path-to_Software/sdl/lib:$PATH
- run
exec bash
- download the SDL_image 2.0.0
- move the SDL2_image-2.0.0.tar.gz file to the sdl working directory (e.g. software/sdl-image)
- move to the sdl-image directory
- run
tar -xvf SDL2_image-2.0.0.tar.gz
- run
ln -s SDL2_image-2.0.0 src
- move to the build directory (e.g. software/sdl-image/build)
- run
sudo apt-get build-dep libsdl2-image
- run
../src/configure --prefix=../.
- run
make -j n
- run
make install
- update the
export LD_LIBRARY_PATH
line in the .bashrc file:export LD_LIBRARY_PATH=absolute-path-to_Software/sdl-image/lib:$PATH
- run
exec bash
- download the SDL_ttf 2.0.12
- move the SDL2_ttf-2.0.12.tar.gz file to the sdl working directory (e.g. software/sdl-text)
- move to the sdl-text directory
- run
tar -xvf SDL2_tff-2.0.12.tar.gz
- run
ln -s SDL2_tff-2.0.12 src
- move to the build directory (e.g. software/sdl-text/build)
- run
sudo apt-get build-dep libsdl2-ttf-dev
- run
../src/configure --prefix=../.
- run
make -j n
- run
make install
- update the
export LD_LIBRARY_PATH
line in the .bashrc file:export LD_LIBRARY_PATH=absolute-path-to_Software/sdl-text/lib:$PATH
- run
exec bash
- download the Boost 1.59.0 source
- move the boost_1_59_0.tar.gz file to the boost directory (e.g. software/boost)
- move to the boost directory
- run
tar -xvf boost_1_59_0.tar.gz
- move to the boost_1_59_0 directory (e.g. software/boost/boost_1_59_0)
- run
./bootstrap.sh --prefix=absolute-path-to_software/boost
- run
./b2
- run
./b2 install
- update the
export LD_LIBRARY_PATH
line in the .bashrc file:export LD_LIBRARY_PATH=absolute-path-to_Software/sdl/lib:absolute-path-to_software/boost/lib:$LD_LIBRARY_PATH
- run
exec bash
At this point all of the dependent software libraries should have been built. If any errors were encountered do not try to proceed to building GDev. If no errors were encountered, follow the instructions below.
- move to the gdev working directory - not the repo itself (e.g. software/gdev, not software/gdev/GDev)
- run
mkdir build
- move to the build directory (e.g. software/gdev/build)
- copy the
GDev/scripts/gdev.sh
script into the build directory - change the variables in the script to reflect the desired system paths
- run
./gdev.sh
to configure GDev - run
make -j n
- run
make test
- run
make install