Compiling Wesnoth using scons
Building and Installing Wesnoth from source is supposed to be this easy:
#update the working copy
>svn update# Build
>scons#Install
> sudo scons install
Instructions for compiling Wesnoth at: http://www.wesnoth.org/wiki/CompilingWesnoth
Some hints:
- compiling requires dev version of libraries Development files–
This package contains files needed if you wish to use the xxxx
library in your own programs. - read the build and install output. Look for missing libraries!
sample output — read the error messages!!
checking for Boost smart_ptr library… (cached) yes
Checking for Simple DirectMedia Layer library version >= 1.2.7… yes
Checking for SDL_net library… no
Base prerequisites are not met.
Client prerequisites are not met. wesnoth, cutter and exploder cannot be built.
Checking for C library X11… yes
Checking for fribidi_utf8_to_unicode(NULL,0,NULL) in C library fribidi… no
Can’t find libfribidi, disabling freebidi support.
Checking for C header file poll.h… yes
Checking for C header file sys/poll.was SDL-net in ubuntu … not SDL_net
Prerequisites
You need to have the development packages of these libraries and a compiler (such as gcc) installed to build Wesnoth. You will also need theruntime packages to actually run Wesnoth.
- >=libsdl-1.2.7 (http://www.libsdl.org/)
- >=sdl-image-1.2 (with PNG support) (http://www.libsdl.org/projects/SDL_image)
- >=sdl-mixer-1.2 (with Vorbis support) (http://www.libsdl.org/projects/SDL_mixer)
- sdl-net (http://www.libsdl.org/projects/SDL_net)
- >=sdl-ttf-2.0.8 (http://www.libsdl.org/projects/SDL_ttf)
- libintl (and other libraries found in gettext package) (http://www.gnu.org/software/gettext/gettext.html)
- >=libboost-1.35.0 (libboost-iostreams and libboost-regex, http://www.boost.org/)
- zlib (in theory already needed for libsdl-image, http://www.zlib.org/)
- >=pangocairo-1.14.8 (http://www.pango.org/)
- >=libfontconfig-2.4.1 (http://fontconfig.org/wiki/)
- >=lua-5.1.4 (http://www.lua.org/)
The following libraries are optional. If they are available at configure time, desktop notifications will be enabled:
- libdbus-1 (http://www.freedesktop.org/wiki/Software/dbus)
To be able to build things, you also need some dependencies to have a working “build system”. On *nix based systems, when not using any IDE (as in “you are building in a terminal”) these are the possible options for build systems (yes, several are possible and all should work):
- autoconf >=2.60
- automake >=1.9
Or
- cmake >=2.6 (http://www.cmake.org/)
Or
- scons >=0.98.3 (http://www.scons.org/)
No Comments yet »
RSS feed for comments on this post. TrackBack URI
Leave a comment
Powered by WordPress
RSS Feed - Syndicate this Site
and comments feed



