Compiling and Installing GtkRadiant
GtkRadiant does not need graphics hardware acceleration (3D acceleration) to compile or run. However, it will run much better with graphics hardware acceleration. If you have an NVIDIA or ATI graphics card, you should install and configure the proprietary graphics driver for your card at this point (before compiling GtkRadiant). There are detailed instructions on how to do this on the Debian Wiki pages, both for NVIDIA and ATI cards.
Step A: Install Dependencies
The first step is to install some extra packages that are required to compile/run GtkRadiant. Each of the commands below may automatically install a number of additional packages in order to meet package dependencies.
As the root user, run the following commands:
root# apt-get install subversion
root# apt-get install git
root# apt-get install scons
root# apt-get install libxml2-dev
root# apt-get install libglib2.0-dev
root# apt-get install libgtk2.0-dev
root# apt-get install libgtkglext1-dev
root# apt-get install libjpeg62-dev
root# apt-get install zip
If these steps succeeded without errors, you can proceed to Step B.
You may have gotten the following problem when trying to install these packages:
If so, then you should open the file /etc/apt/sources.list as root and edit it. Completely delete the line that is the bold text below:
After removing that line, run the apt-get commands above again to install the extra packages.
If you have the proprietary NVIDIA driver installed using the "Debian package way", you may need to install one extra package to get GtkRadiant to compile. You can try compiling GtkRadiant without this extra package, but if it fails to compile you will need to return here and follow these instructions. (There will be a link taking you back here.) First, figure out which version of the NVIDIA drivers you have installed via Debian packages:
Then, install the corresponding -dev package. Execute only one of the commands below, depending on your version of nvidia-glx :
Step B: Compile GtkRadiant
All of the following steps should be executed as a normal user, not root.
Change directory to your home directory:
Next, we will get the source code for GtkRadiant:
Now the next step will download extra data needed to do mapping for specific games such as Urban Terror:
We are now ready to compile GtkRadiant! Execute the step below; this is the main build target to compile GtkRadiant:
If you have the proprietary NVIDIA driver installed and you get the following error when executing the build target above:
then you should install one of the nvidia-glx-dev* packages as mentioned above in Step A, then try to execute the main build target to compile GtkRadiant again.
If you get other errors, you may try asking for help in the GtkRadiant IRC channel, which is #radiant on QuakeNet (irc.quakenet.org).
Assuming the main compile target was successful, we can now relocate the install directory. While still in the ~/GtkRadiant-src directory, execute the following:
GtkRadiant is now installed in the GtkRadiant folder in your home directory. Now let's clean up the build directory:
You can also clean up the install directory by removing SVN-related files (from the game packs) that are no longer needed. These files just take up extra space and serve no further purpose:
Congratulations, you now have GtkRadiant installed! Let's wait until you complete the next section before launching GtkRadiant for the first time.
GtkRadiant depends on having write access to the install folder (in our case ~/GtkRadiant). Therefore, you should probably leave it in your home directory instead of trying to install it on a read-only system level.
Note: Resource: http://daffy.nerius.com/radiant/#urt-install