How to Setup Radiant Compile Environment on Windows 7 with VS2010
mapmanxRequirements
- Get latest radiant/q3map2 and unzip.
- Get and install python 2.7.3 msi to somewhere like C:\Python27.
- Get and install scons-2.2.0-setup.exe.
- Get SVN command line: (last download on that page).
Instructions
-
cd to the folder where you unzipped radiant, then run:
C:\Python27\Scripts\scons.bat target=setup
That will grab the dependencies from SVN for you (i.e. missing libxml.h etc.) - Run vs2010 (and convert) or vs2008 (note: you still need at least vs2008 express to have 2008 debug dlls used by radiant / q3map2, otherwise you'll get winsxs side-by-side errors when you run your apps)
-
Compile, and you'll get:
Error 421 error C2084: function '__int64 abs(__int64)' already has a body.... \stl_cstdlib.h 158 1 image
-
So comment out this line, and compile again:
//inline STLP_LONG_LONG abs(_STLP_LONG_LONG __x) { return __x < 0 ? -_x : __x; } //line 158
- Done!
More help at: http://icculus.org/gtkradiant/documentation/windows_compile_guide/