2013-12-22 22:29:11 +00:00
|
|
|
set up external dependencies:
|
|
|
|
|
2014-01-20 19:12:36 +00:00
|
|
|
> sudo apt-get install libsdl2-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
|
2014-05-02 16:00:33 +00:00
|
|
|
> cabal sandbox init
|
|
|
|
> 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)
|