From The Battle for Wesnoth Wiki
Revision as of 14:54, 9 July 2005 by WikiSysop (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Compiling Wesnoth

This page covers compilation on a Unix-like system. See also CompilingWesnothOnMacOSX, WesnothOnLinuxPDAs and CompilingWesnothOnWindows for information on compiling on other platforms.

Forcemstr has cross compiled for Windows using the free mingw32 tools, running under Linux.

For detailed instructions and full prerequisites, please consult the current <A HREF="*checkout*/wesnoth/wesnoth/INSTALL?rev=HEAD&content-type=text/plain">INSTALL</A> file in the source code.


You need to have the development packages of these libraries to build Wesnoth. You will also need the runtime packages to actually run Wesnoth.

The various SDL libraries can be found at

You can also get them from Freshmeat at -> Dependencies -> Download links


You can get it here:


First untar the package:

$ tar xfzv wesnoth-0.x.tar.gz


$ cd wesnoth-0.x

If you have an older install, first uninstall that by typing:

$ make uninstall

(It's possible that you'll need root privileges to uninstall. To do this, check the Installing section.)

If you have downloaded from cvs run

$ ./

Once you have unpacked the source and uninstalled the old version,

$ ./configure

(you might want extra arguments to configure, for instance to build the map editor). Finally, compile with

$ make


Users compiling CVS sources should 'make clean' before 'make' after any tree update.


Become superuser, so that you have permission to install.

$ su
  Password: /*doesn't show*/

Now that you have permission, install it.

# make install

or for smaller binaries,

# make install-strip

See also