COMPILING 2.9 KB

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