]> icculus.org git repositories - divverent/netradiant.git/blob - COMPILING
always chmod the release exe file
[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 (http://www.mingw.org/wiki/Getting_Started)
69   Install this to c:\mingw, and select the components C compiler, C++ compiler
70   and MSYS Basic System
71 - Start the MSYS shell once, then exit it
72 - Prepackaged Radiant dependencies (Gtk and other stuff):
73   http://www.icculus.org/netradiant/files/netradiant-dependencies-mingw32-20101211-7z.exe
74   Extract this one to
75   c:\mingw\msys\1.0\home\username
76   (if you do this with 7zip, keep the "netradiant-dependencies-mingw32" folder
77   name of the contents)
78 - now download the source from the MSYS shell, if you don't already have it:
79   ~/netradiant-dependencies-mingw32/util/bin/git clone git://git.icculus.org/divverent/netradiant.git
80
81 build:
82 - Start the MSYS shell
83 - Switch to the directory with NetRadiant source
84 - make MAKEFILE_CONF=mingw-Makefile.conf
85
86 run:
87 - in the "install" directory, double click netradiant.exe
88 - if you get a DLL not found error, copy the DLL from either c:\mingw\bin or
89   from c:\mingw\msys\1.0\bin to the "install" directory