en fr

es pl

sv de
direct download download direct download

howto/en/compile source code

From Wormux

Wormux works on Linux, FreeBSD, OpenBSD, NetBSD, PowerPC and Windows.

It is reported to build on the following architectures: alpha, amd64, arm, hppa, i386, ia64, mipsel, powerpc, s390 and sparc

To compile it, first download source code. You have two choice:

If you are using Windows, please see Compile Wormux under MingGW page.

Contents

Dependencies

Other :

Instructions

(for stable release, not subversion)

  • Extract archive
  • Type following commands:
cd wormux
./configure.sh
make
sudo make install    # or su -c "make install"

Special instructions for developpers

  • Check-out or update your wormux repository.
  • Type following commands in the wormux directory:
./autogen.sh
./configure --enable-debug
make
  • Then instead of installing the game, you can set the data path:
export WORMUX_DATADIR=./data
export WORMUX_FONT_PATH=./data/font/DejaVuSans.ttf
  • Finally, you can run the game directly or from gdb
src/wormux

Troubles with SDL_gfx directories ?

If you see this message during ./configure step:

checking for SDL_rotozoom.h... no
configure: error: SDL_gfx library headers are missing

You can use following command:

$ ./configure --with-sdl-gfx-prefix=/usr/local

And, if you get another error message when you try to run Wormux:

wormux: error while loading shared libraries:
libSDL_gfx.so.13: cannot open shared object file: No such file or directory

You can use following command:

LD_LIBRARY_PATH=/usr/local/lib ./wormux

Better solution: install SDL_gfx in /usr instead of /usr/local ;-)

Some interesting ./configure options

  • ./configure --help: Display configure help
  • ./configure --enable-debug: Enable all debug things (assertions, compile including symbols and file name, etc.), useful to debug Wormux
  • ./configure --prefix=/usr: Install Wormux in /usr instead of /usr/local
    • copy binary in /usr/bin
    • copy datas in /usr/share/games/wormux
    • copy locales in /usr/share/locale
  • ./configure --with-datadir-name=wormux: Use old config (don't use games subdirectory)
    • copy binary in /usr/local/bin
    • copy datas in /usr/local/share/wormux
    • copy locales in /usr/local/share/locale
  • ./configure --bindir /usr/local/games: Copy wormux binary in /usr/local/games instead of $PREFIX/bin
  • ./configure --with-font-path=./data/font/DejaVuSan.ttf: Set path to the ttf font used by Wormux, maybe if stored in a subdirectory.