User Tools

Site Tools


compiling

Compile Hikou no mizu

Compiling the project from sources is useful to… :

  • Use the game on OSes where no binaries are available. (such as Mac OS X)
  • Get maximal performances.
  • Use last subversion revision.
  • Apply changes you've made on code.

Unices

Get dependencies

Hikou no mizu's dependencies are quite common and should be available on the repositories of most GNU/Linux and *BSD distributions :

  • SDL - windowing & event handling
    • SDL_Image - image loading
  • OpenGL - rendering
  • Freetype - text
  • OpenAL(-Soft prefered) - sound
    • libogg, libvorbis, libvorbisfile - ogg vorbis loading

For instance, on Debian & derivatives :

#apt-get install libsdl1.2debian libsdl1.2-dev libsdl-image1.2 libsdl-image1.2-dev libgl1-mesa-glx libgl1-mesa-dev libfreetype6 libfreetype6-dev libopenal1 libopenal-dev libvorbisfile3 libogg-dev libvorbis-dev

Build

Since every dependencies were installed, hnm should now build properly :)

To build hnm, reach the src/ directory, containing a simple Makefile, and type make.

cd /hnm/directory/
cd src/
make

The compilation is quite short (currently (0.2dev) ~45 seconds on my old laptop ;)), and will generate an executable in src/ parent directory. So, to try the game :

cd ../
./hikouNoMizu

And you're done !

Windows

compiling.txt · Last modified: 2013/06/09 14:10 by hikou