1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
This document describes steps needed to compile Widelands for different
systems using different compilers. If you have problems, please also have a
look at our website http://www.widelands.org, especially the FAQ.
================
= Dependencies =
================
These are the libraries you need. You also need the headers and link libraries
(on some distributions these come in separate packages, e.g. 'libpng-dev'),
for Widelands makes direct use of them:
- SDL >= 1.2.8
- SDL_mixer >= 1.2.6
- SDL_image
- SDL_net
- SDL_ttf >= 2.0.0
- gettext (look at FAQ if you have problems with -lintl)
- libpng
- zlib
- libiconv (only needed under win32)
- libintl (only needed under win32)
Make sure you have them all. If you encounter library versions that do not work,
please tell us.
For compiling, you will also need
- Python >= 2.4
If you have a desparate need to use older Python versions then tell us. It'd be
possible, but the inconvenience seems not to be worthwile so far.
============
= Unix =
============
scons
------------------
Using scons for building is the preferred way starting with Widelands-build10.
We still support make, but the motivation to do so is dwindling rapidly.
If you already have scons installed on your machine, change to the Widelands
directory and execute "scons release". That's it.
If you don't have scons installed, you can still build Widelands: change to
the Widelands directory and call "./build-widelands.sh release". This is a
wrapper around a minimal version of scons that we deliver together with
widelands. You can even use this for development, but we recommend a full
install anyway.
To help us find bugs (not neccessary, we only produce bug-free code ;-) )
it's useful to replace "release" with "debug" in the above.
make
------------------
Edit src/config.h.default to your liking and check the Makefile for more
user definable variables. If everything is good, simply run GNU make in the
widelands directory.
=============
= Windows =
=============
If you're searching for a good SVN tool for windows, we recommend Tortoise
SVN.
Check http://tortoisesvn.sourceforge.net.
mingw and msys
------------------
This describes the steps needed to set up a free development enviroment
under Windows and compiling Widelands.
- get the latest MSYS snapshot from http://sourceforge.net/projects/mingw
- install it
- get the latest complete mingw tarball from
http://sourceforge.net/projects/mingw
- unpack it under the MSYS sh-shell in the dir /mingw
- get all library source tarballs which are mentioned in DEPENDENCIES and STDPort from http://www.stlport.com
- compile and install all stuff
- check out a widelands SVN version or get a build source release
- unpack it, edit the makefile user variables and run make
- if there were no problems, you're done. start developing and commit your
changes
Bloodshed's DevCpp
------------------
Since Build10, we support a DevCpp-Project file for Bloodshed's free GPLed IDE.
DevCpp uses mingw and can be set up to use an allready installed mingw-environment
(like the one you can set up via the instructions above).
You can get the newest version of DevCpp at http://www.bloodshed.net
The mingw-version, that comes with DevCpp does not include all needed librarys so you
have to install few manually. For few librarys dev-packages are available, so you
might check http://devpaks.org/ for the librarys you need.
If everything is set up correctly, you can open the [Widelands]/build/win32/Widelands.dev,
can change and save anything and of course can compile Widelands.
InnoSetup
------------------
Since Build10 we support a Innosetup file, which can be used for compiling a Setup
(like the official Widelands-Setup available on sourceforge.net-mirrors).
Innosetup can be downloaded from http://www.jrsoftware.org
If you've installed InnoSetup, you just need to open [Widelands]/build/win32/Widelands.iss.
You might change few settings or directly start packing/compiling the setup.
ATTENTION!
Please check if all needed *.dll-files are in [Widelands]-directory during Setup packing/compile.
Else your setup might be useless :-?
|