How do I compile and install Hedgewars?

also see Building Hedgewars

To compile and install you need:

  • Qt >= 4.7
  • FreePascal >= 2.2.4
  • SDL >= 1.2.5
  • SDL_net >= 1.2.5
  • SDL_mixer >= 1.2
  • SDL_image >= 1.2
  • SDL_ttf >= 2.0
  • CMake >= 2.6.0
  • lua = 5.1

Debian Requires:

  • cmake
  • qt4-qmake
  • libqt4-dev
  • libsdl1.2-dev
  • libsdl-net1.2-dev
  • libsdl-mixer1.2-dev
  • libsdl-image1.2-dev
  • libsdl-ttf2.0-dev
  • fpc
  • liblua5.1-dev

( aptitude install cmake qt4-qmake libqt4-dev libsdl1.2-dev libsdl-net1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsdl-ttf2.0-dev liblua5.1-dev fpc )

1. Configure:
$ cmake .
or
$ cmake -DCMAKE_CXX_FLAGS="flags" -DCMAKE_INSTALL_PREFIX="install prefix" -DDATA_INSTALL_DIR="data dir" -DWITH_SERVER=1

2. Compile:
$ make

3. Install:
# make install

That's all! Enjoy!

User login

Copyright © 2004-2015 Hedgewars Project. All rights reserved. [ contact ]