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.
git clone git@github.com:aprobinson/GDev.git
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.
tar -xvf cmake-3.0.1.tar.gz
ln -s cmake-3.0.1 src
mkdir build
../src/configure --prefix=absolute-path-to_software/cmake
make -j n
, where n is the number of threads to use while buildingmake test
make install
export PATH=absolute-path-to_software/cmake/bin:$PATH
exec bash
cmake --version
and verify that the output is 3.0.1doxygen-1.8.8.src.tar.gz
file to the doxygen working directory (e.g. software/gsl)tar -xvf doxygen-1.8.8.src.tar.gz
./configure --prefix=absolute-path-to_software/doxygen
make -j n
make test
make install
export PATH
line in the .bashrc file: export PATH=absolute-path-to_software/cmake/bin:absolute-path-to_software/doxygen/bin:$PATH
exec bash
tar -xvf SDL2-2.0.3.tar.gz
ln -s SDL2-2.0.3 src
mkdir build
GDev/scripts/sdl.sh
into the build directorysudo apt-get build-dep libsdl2
./sdl.sh
to configure SDLmake -j n
make install
export LD_LIBRARY_PATH
line in the .bashrc file: export LD_LIBRARY_PATH=absolute-path-to_Software/sdl/lib:$PATH
exec bash
tar -xvf SDL2_image-2.0.0.tar.gz
ln -s SDL2_image-2.0.0 src
sudo apt-get build-dep libsdl2-image
../src/configure --prefix=../.
make -j n
make install
export LD_LIBRARY_PATH
line in the .bashrc file: export LD_LIBRARY_PATH=absolute-path-to_Software/sdl-image/lib:$PATH
exec bash
tar -xvf SDL2_tff-2.0.12.tar.gz
ln -s SDL2_tff-2.0.12 src
sudo apt-get build-dep libsdl2-ttf-dev
../src/configure --prefix=../.
make -j n
make install
export LD_LIBRARY_PATH
line in the .bashrc file: export LD_LIBRARY_PATH=absolute-path-to_Software/sdl-text/lib:$PATH
exec bash
tar -xvf boost_1_59_0.tar.gz
./bootstrap.sh --prefix=absolute-path-to_software/boost
./b2
./b2 install
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
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.
mkdir build
GDev/scripts/gdev.sh
script into the build directory./gdev.sh
to configure GDevmake -j n
make test
make install