pioneers/COMPILING

31 lines
900 B
Plaintext
Raw Permalink Normal View History

2014-05-10 15:33:33 +00:00
# on ubuntu14.04 (trusty) and later
just run
> ./build.sh
# manual installation
2013-12-22 22:29:11 +00:00
set up external dependencies:
2014-05-10 15:33:33 +00:00
> sudo apt-get install libsdl2-dev libsdl2-ttf-dev libsdl2-image-dev libsdl2-mixer-dev
2014-01-20 23:07:50 +00:00
> cd deps && ./getDeps.sh && cd ..
2013-12-22 22:29:11 +00:00
2014-01-21 00:10:39 +00:00
NOTE: ubuntu saucy currently only has libsdl2-dev.2.0.0 in the repositories, but we need libsdl2-dev.2.0.1
Therefore the update-script gets the updated packages for trusty (which have the same dependencies)
and installs them.
PIONEERS WONT RUN WITH VERSION 2.0.0 OF LIBSDL2!
2014-01-20 19:12:36 +00:00
make sure the compiled files are in your PATH (e.g. include $HOME/.cabal/bin in your $PATH)
2013-12-22 22:29:11 +00:00
install dependencies & configure app
> cabal sandbox init
2014-05-10 15:33:33 +00:00
> cabal sandbox add-source deps/hsSDL2
> cabal sandbox add-source deps/hsSDL2-ttf
2013-12-22 22:29:11 +00:00
> cabal install --only-dependencies
> cabal configure
build
> cabal build
2014-01-20 19:12:36 +00:00
run ./Pioneers (symlinked to dist/build/Pioneers/Pioneers)