| 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 or homebrew 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 |
homebrew: |
| 58 |
gtk+ gtkglext |
| 59 |
|
| 60 |
build: |
| 61 |
run 'make' |
| 62 |
|
| 63 |
homebrew build: |
| 64 |
run 'export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/opt/X11/lib/pkgconfig |
| 65 |
make' |
| 66 |
|
| 67 |
run: |
| 68 |
Switch into the install folder, and run NetRadiant.app |
| 69 |
|
| 70 |
Win32 (2000, XP, Vista or Windows 7) |
| 71 |
================== |
| 72 |
|
| 73 |
environment: |
| 74 |
- MinGW (http://www.mingw.org/wiki/Getting_Started) |
| 75 |
Install this to c:\mingw, and select the components C compiler, C++ compiler |
| 76 |
and MSYS Basic System |
| 77 |
- Start the MSYS shell once, then exit it |
| 78 |
- Prepackaged Radiant dependencies (Gtk and other stuff): |
| 79 |
http://www.icculus.org/netradiant/files/netradiant-dependencies-mingw32-20101211-7z.exe |
| 80 |
Extract this one to |
| 81 |
c:\mingw\msys\1.0\home\username |
| 82 |
(if you do this with 7zip, keep the "netradiant-dependencies-mingw32" folder |
| 83 |
name of the contents) |
| 84 |
- now download the source from the MSYS shell, if you don't already have it: |
| 85 |
~/netradiant-dependencies-mingw32/util/bin/git clone git://git.icculus.org/divverent/netradiant.git |
| 86 |
|
| 87 |
build: |
| 88 |
- Start the MSYS shell |
| 89 |
- Switch to the directory with NetRadiant source |
| 90 |
- make MAKEFILE_CONF=mingw-Makefile.conf |
| 91 |
|
| 92 |
run: |
| 93 |
- in the "install" directory, double click netradiant.exe |
| 94 |
- if you get a DLL not found error, copy the DLL from either c:\mingw\bin or |
| 95 |
from c:\mingw\msys\1.0\bin to the "install" directory |