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 |
[edit]
Dependencies
- libxml++ 2.6 (debian: libxml++2.6-dev)
- SDL 1.2 (debian: libsdl1.2-dev)
- SDL Image 1.2 (debian: libsdl-image1.2-dev)
- SDL Mixer 1.2 (debian: libsdl-mixer1.2-dev)
- SDL TTF 2.0 (debian: libsdl-ttf1.2-dev)
- depends on libfreetype
- SDL_gfx 2.0.13 (install it in /usr using configure argument: --prefix=/usr)
- SDL_net 1.2.6
Other :
- if you're using SubVersion version of Wormux:
- GNU make
- GNU g++ (3.0 ?)
[edit]
Instructions
(for stable release, not subversion)
- Extract archive
- Type following commands:
cd wormux ./configure.sh make sudo make install # or su -c "make install"
[edit]
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
[edit]
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 ;-)
[edit]
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.








