]> icculus.org git repositories - divverent/netradiant.git/blob - COMPILING
Merge remote branch 'origin/divVerent/pangofix'
[divverent/netradiant.git] / COMPILING
1
2 developer documentation for NetRadiant
3 ======================================
4
5 (NOTE: outdated stuff has been ROT13ed)
6
7 getting the source
8 ==================
9
10 The latest source is available from the git repository.
11   git://git.icculus.org/divverent/netradiant.git
12
13 The git client can be obtained from the Subversion site.
14   http://git-scm.org
15
16 To get a copy of the source using the commandline git client:
17   Change the current directory to the desired location for the source.
18   git clone git://git.icculus.org/divverent/netradiant.git
19   cd netradiant
20
21
22
23 Linux(using X-windows)
24 ======================
25
26 environment:
27 - gcc >= version 3.1 (preferably)
28 - GNU make
29 - svn >= 1.1 (some build steps use svn)
30
31 dependencies:
32 - gtk+ >= 2.4.0 (requires glib, atk, pango, iconv, etc)
33 - gtkglext >= 1.0.0 (requires opengl)
34 - libxml2 >= 2.0.0
35 - zlib >= 1.2.0 (for archivezip module)
36 - libpng >= 1.2.0 (for imagepng module)
37
38 build:
39 run 'make'
40
41 run:
42 Execute 'install/radiant.x86'
43
44 OSX(using X-windows)
45 ====================
46
47 environment:
48 - OS X 10.5 or 10.6
49 - Xcode developer tools installed (OSX DVD)
50 - X11 (from the OS X DVD)
51 - MacPorts or fink installed
52 - the following packages installed:
53   Macports:
54     gtkglext pkgconfig glib2-devel libxml2 gtk2 pango atk gettext wget
55   Fink:
56     gtkglext1 pkgconfig glib2-dev libxml2 gtk+2 gtk+2-dev pango1-xft2-ft219-dev atk1 gettext-dev wget
57
58 build:
59 run 'make'
60
61 run:
62 Switch into the install folder, and run NetRadiant.app
63
64 Win32 (2000, XP, Vista or Windows 7)
65 ==================
66
67 environment:
68 - MinGW
69   http://www.mingw.org/wiki/HOWTO_Install_the_MinGW_GCC_Compiler_Suite (the installer link)
70   Install this to c:\mingw, and select the components C compiler, C++ compiler, Make
71 - MSYS
72   http://www.mingw.org/wiki/msys (you need the installer MSYS-versionnumber.exe)
73   Install this to c:\msys\1.0
74 - Prepackaged Radiant dependencies (Gtk and other stuff):
75   http://www.icculus.org/netradiant/files/radiant-deps-mingw32.zip
76   Preferably extract this one to c:\mingw\radiant-deps-mingw32
77 - Subversion must be installed and available in PATH to download the game packs
78
79 build:
80 - Start the MSYS shell (to be found in c:\msys\1.0\msys.bat)
81 - Switch to the directory with NetRadiant source
82 - cp mingw-Makefile.conf Makefile.conf
83 - (edit mingw-Makefile.conf in case you installed anything to other locations
84   than the recommended ones)
85 - make
86
87 run:
88 - in the "install" directory, double click netradiant.exe