Building instructions
-
Have GHC-7.8 or newer
-
Have cabal-install
-
Have SDL 2.0.3 with library headers
- If you don't have it, see this instructions
-
Get git version of
sdl2
haskell bindings:zudov@x200 ~/demo $ git clone "https://github.com/haskell-game/sdl2" Cloning into 'sdl2'... ... zudov@x200 ~/demo $ cabal sandbox init Writing a default package environment file to /home/zudov/demo/cabal.sandbox.config Creating a new sandbox at /home/zudov/demo/.cabal-sandbox zudov@x200 ~/demo $ cabal sandbox add-source sdl2/ zudov@x200 ~/demo $ cabal install sdl2 Notice: installing into a sandbox located at /home/zudov/demo/.cabal-sandbox Configuring sdl2-2.0.0... Building sdl2-2.0.0... Installed sdl2-2.0.0
-
Now you can finally build and run the demo:
zudov@x200 ~/demo $ git clone "https://github.com/helsinki-frp/yampa-demos-template" Cloning into 'yampa-demos-template'... ... zudov@x200 ~/demo $ cd yampa-demos-template/ zudov@x200 ~/demo/yampa-demos-template $ cabal sandbox init --sandbox ../.cabal-sandbox/ Writing a default package environment file to /home/zudov/demo/yampa-demos-template/cabal.sandbox.config Using an existing sandbox located at /home/zudov/demo/.cabal-sandbox zudov@x200 ~/demo/yampa-demos-template $ cabal install Notice: installing into a sandbox located at /home/zudov/demo/.cabal-sandbox Configuring yampa-demos-template-0.1.0.0... Building yampa-demos-template-0.1.0.0... Installed yampa-demos-template-0.1.0.0 zudov@x200 ~/demo/yampa-demos-template $ cabal run yampy-cube