cmake: check the right python variable and be more verbose about it
[gemrb.git] / INSTALL
blob7480233125af5382151d161956c4ce53d5370e73
1 BUILDING GEMRB WITH CMAKE
2 -------------------------
4 Tools you will need to build GemRB:
5   - cmake
6   - make
7   - g++
9 Libraries:
10   - ZLib
11   - Python 2.3 or better, compiled with shared libraries
12   - SDL 1.2
13   - OpenAL (optional, for sound)
14   - SDL_mixer (optional, for fast lower-quality sound)
15   - libpng (optional, for the png importer plugin)
17 Building GemRB on unix-like systems
18 -----------------------------------
20 The following commands will try to configure, make and install GemRB.
21   mkdir build
22   cd build
23   cmake ..
24   make
25   make install
27 By default, GemRB is installed into /usr/local ("fhs"). You can pass -DLAYOUT
28 with "home" or "opt" to change the general layout and -DPREFIX to change the
29 install path prefix. Check the toplevel CMakeLists.txt to get see all the
30 individual path components you can additionally alter.
32 Pass -DCMAKE_BUILD_TYPE=Debug to cmake if you want to create a debug build.
34 If you're on an exotic platform and get a lot of errors trying to build,
35 also pass -DDISABLE_WERROR=1, so warnings won't impede you. This option is
36 also suggested if you're making a source package.
38 Please let us know if you encounter any problems while building.
40 Building GemRB with mingw
41 -------------------------
43 The following commands will try to configure, make and install GemRB.
44   mkdir build
45   cd build
46   cmake .. -G "MinGW MakeFiles"
47   mingw32-make
48   mingw32-make install
50 By default, GemRB is installed into c:\Program Files\GemRB . Supporting
51 files are mostly installed into the same directory.
53 See the following for an extensive build walkthrough:
54 http://forums.gibberlings3.net/index.php?showtopic=13087