| 1 |
developer documentation for GtkRadiant 1.5.0 |
|---|
| 2 |
============================================ |
|---|
| 3 |
|
|---|
| 4 |
getting the source |
|---|
| 5 |
================== |
|---|
| 6 |
|
|---|
| 7 |
The latest source is available from the Subversion repository. |
|---|
| 8 |
https://zerowing.idsoftware.com/svn/radiant/GtkRadiant/trunk/ |
|---|
| 9 |
|
|---|
| 10 |
The subversion client can be obtained from the Subversion site. |
|---|
| 11 |
http://subversion.tigris.org |
|---|
| 12 |
|
|---|
| 13 |
To get a copy of the source using the commandline Subversion client: |
|---|
| 14 |
Change the current directory to the desired location for the source. |
|---|
| 15 |
svn checkout https://zerowing.idsoftware.com/svn/radiant/GtkRadiant/branches/1.5/ ./GtkRadiant |
|---|
| 16 |
svn checkout https://zerowing.idsoftware.com/svn/radiant.gamepacks/Q3Pack/trunk/ ./GtkRadiant/games/Q3Pack |
|---|
| 17 |
svn checkout https://zerowing.idsoftware.com/svn/radiant.gamepacks/UFOAIPack/branches/1.5/ ./GtkRadiant/games/UFOAIPack |
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
Linux/OSX(using X-windows) |
|---|
| 22 |
========================== |
|---|
| 23 |
|
|---|
| 24 |
environment: |
|---|
| 25 |
- gcc >= version 3.1 (preferably) |
|---|
| 26 |
- scons >= 0.96 (radiant is built with scons rather than make) |
|---|
| 27 |
- python >= 2.3.0, (scons requires python, some build steps use python) |
|---|
| 28 |
- svn >= 1.1 (some build steps use svn) |
|---|
| 29 |
|
|---|
| 30 |
dependencies: |
|---|
| 31 |
- gtk+ >= 2.4.0 (requires glib, atk, pango, iconv, etc) |
|---|
| 32 |
- gtkglext >= 1.0.0 (requires opengl) |
|---|
| 33 |
- libxml2 >= 2.0.0 |
|---|
| 34 |
- zlib >= 1.2.0 (for archivezip module) |
|---|
| 35 |
- libpng >= 1.2.0 (for imagepng module) |
|---|
| 36 |
- libmhash = 0.9.0 (for q3map2) |
|---|
| 37 |
|
|---|
| 38 |
build: |
|---|
| 39 |
Execute 'scons SETUP=0' in the directory containing SConscript |
|---|
| 40 |
|
|---|
| 41 |
install: |
|---|
| 42 |
run 'python ./GtkRadiant/install.py' |
|---|
| 43 |
note - this script should be run after each time you update from svn |
|---|
| 44 |
|
|---|
| 45 |
run: |
|---|
| 46 |
Execute './GtkRadiant/install/radiant.x86' (or './GtkRadiant/install/radiant.ppc' on osx) |
|---|
| 47 |
|
|---|
| 48 |
|
|---|
| 49 |
|
|---|
| 50 |
Win32 (2000, XP or Vista) |
|---|
| 51 |
================== |
|---|
| 52 |
|
|---|
| 53 |
environment: |
|---|
| 54 |
- visual studio 2005 |
|---|
| 55 |
- python 2.3.0 or later (some build steps use python) |
|---|
| 56 |
- subversion 1.1 or later (some build steps use svn) |
|---|
| 57 |
|
|---|
| 58 |
dependencies are prepackaged archives, extract them to the directory above GtkRadiant.sln: |
|---|
| 59 |
- http://zerowing.idsoftware.com/files/radiant/developer/1.5/gtkradiant-1.5-dependencies-1.0.zip |
|---|
| 60 |
|
|---|
| 61 |
build: |
|---|
| 62 |
Open GtkRadiant.sln. |
|---|
| 63 |
In tools > options > projects > VC++ Directories > executables, add the paths to python.exe (e.g. c:\python23\) and svn.exe (e.g. c:\svn\) |
|---|
| 64 |
Hit 'Build > Build Solution' (F7) |
|---|
| 65 |
|
|---|
| 66 |
install: |
|---|
| 67 |
run 'python ./GtkRadiant/install.py' |
|---|
| 68 |
note - this script should be run after each time you update from svn |
|---|
| 69 |
|
|---|
| 70 |
run: |
|---|
| 71 |
set Project > Properties > Debugging > Command to "$(SolutionDir)install/$(TargetFileName)" |
|---|
| 72 |
hit 'Debug > Start' (F5) |
|---|