Getting the Source Code
This project's SourceForge.net Subversion repository can be checked out through SVN with the following instruction set:
svn co https://xreal.svn.sourceforge.net/svnroot/xreal/trunk/xreal XreaL
If your on Windows, you'll need TortoiseSVN, which can be found at: http://tortoisesvn.tigris.org
In order to check out the repository via TortoiseSVN simply "right click" in your XreaL target folder and select "Check Out" Use the following settings in the dialog:
URL of repository: https://xreal.svn.sourceforge.net/svnroot/xreal/trunk/xreal Revision: HEAD revision
Compiling the Source Code
COMPILING ON WIN32 WITH VISUAL C++ 2008 EXPRESS EDITION
1. Download and install the Visual C++ 2008 Express Edition.
2. Download libSDL from http://libsdl.org/release/SDL-devel-1.2.13-VC8.zip
and extract it to C:\libSDL-1.2.13.
3. Download and install the OpenAL SDK from http://www.openal.org.
4. Download libcURL from http://curl.hoxt.com/download/libcurl-7.15.5-win32-msvc.zip
and extract it to C:\libcURL
5. Download and install Gtk+ 2.10.11 development environment from http://gladewin32.sourceforge.net/.
6. Download http://xreal.varcache.org/STLport-5.1.5.7z and extract it to XreaL/code/.
7. Add necessary include Directories in VC9 under Tools -> Options... -> Project and Solutions -> VC++ Directories:
example:
C:\libSDL-1.2.13\include
C:\Program Files\OpenAL 1.1 SDK\include
C:\libcURL\include
C:\GTK\include
C:\GTK\include\libxml2
C:\GTK\include\glib-2.0
C:\GTK\lib\glib-2.0\include
C:\GTK\include\gtk-2.0
C:\GTK\lib\gtk-2.0\include
C:\GTK\include\cairo
C:\GTK\include\pango-1.0
C:\GTK\include\atk-1.0
C:\GTK\include\gtkglext-1.0
C:\GTK\lib\gtkglext-1.0\include
8. Add necessary lib Directories in VC9 under Tools -> Options... -> Project and Solutions -> VC++ Directories:
example:
C:\libSDL-1.2.13\lib
C:\Program Files\OpenAL 1.1 SDK\lib\Win32
C:\libcURL
C:\GTK\lib
9. Use the VC9 / Visual C++ 2008 solutions to compile what you need:
XreaL/code/xreal.sln
XreaL/code/gtkradiant/GtkRadiant.sln
XreaL/code/xmap/xmap.sln
COMPILING ON GNU/LINUX
You need the following dependencies in order to compile XreaL with all features:
SDL >= 1.2
OpenAL >= 0.0.8 (if compiled with scons openal=1)
libcURL >= 7.15.5 (if compiled with scons curl=1)
GTK+ >= 2.4.0 (if compiled with scons mapping=1, requires glib, atk, pango, iconv, etc)
gtkglext >= 1.0.0 (if compiled with scons mapping=1)
libxml2 >= 2.0.0 (if compiled with scons mapping=1)
zlib >= 1.2.0 (if compiled with scons mapping=1)
Compile XreaL for x86 processers:
>scons arch=linux-i386
Compile XreaL for x86_64 processers:
>scons arch=linux-x86_64
Type scons -h for more compile options.
COMPILING ON MAC OS X
NOTE
: currently not supported
