- Installed GCC 3.4.x (get it from BeBits), because "standard" BeOS 5 compiler is too old for Wesnoth (it can't handle few "advanced" C++ things, and generates much slower code).
- Installed all required libraries (with header files - so they have to be "development editions").
- Patch attached to this post (this patch was made for Wesnoth 1.0! next and previous versions may need patch to be remade to handle changes in source code).
- Wesnoth's source package (of course
Now follow the steps:
- Unpack Wesnoth's source package.
- Unpack patch file to Wesnoth's directory (the one which You have just unpacked).
- Open Terminal and go to Wesnoth's directory (for example "cd /boot/home/wesnoth-1.0/").
- Type "patch -p1 -u < wesnoth-1.0-BeOS-gcc3.4.3.diff" (if You have patch file somewhere else then write it's name with full path, for example: "patch -p1 -u < /boot/home/wesnoth-1.0-BeOS-gcc3.4.3.diff") and hit ENTER.
- If something went wrong (for example, You got one or more messages containing: "Skipping patch."), then You have different version of Wesnoth (most probably) than the one the patch was made for. Stop here and go download proper version.
- If everything is ok, type "configure --prefix=/boot/home/config --enable-editor --enable-server --enable-campaign-server --enable-tools -disable-rpath CPPFLAGS=-I/boot/home/config/include CFLAGS=-O3 LDFLAGS=-L/boot/home/config/lib CXXFLAGS=-O3" and hit ENTER.
- Wait for it to finish. If there will be error messages then stop here, and check libraries and header files. If You don't know what to do, ask people on BeShare - usually there's someone who can help You.
- If everything is ok, type "make" and hit ENTER.
- After looooong time (depends on hardware, here it takes ~20 minutes, maybe less), if everything is ok, there should be file named "wesnoth" in "src" subdirectory. Move it to parent directory (for example "mv src/wesnoth ./wesnoth").
- Along with Wesnoth game, there are "src/wesnoth_editor", "src/server/wesnothd", "src/campaign_server/campaignd", "src/tools/cutter" and "src/tools/exploder". Move them to Wesnoth's directory the same way as You used for wesnoth (for example "mv src/wesnoth_editor ./wesnoth_editor").
- Type "wesnoth" and hit ENTER
Have a nice game of Wesnoth!
Additional info
Additional patches attached below - one for gcc 000224 (by Andrew Bachmann) and other for gcc 2010413 - will not be updated anymore, and are here just for historical record (and masochists trying to play Wesnoth built with gcc 2.x).
