Getting Started
Download tgt
Goto the download page and download the appropriate tgt source archive. Unzip.
Requirements
OpenGL support is required of course. At least one of the toolkits for window management and user interaction used by tgt is required – you will need either GLUT, SDL or Qt.
tgt uses the cmake build system.
Depending on the features you want to use, tgt will require
as well as at least one of the following GUI-Toolkits
and optionally
Windows
You should find a windows binary for each library following the respective link above.
Linux
Most Linux distributions have most of the software above in their package management system. The most simple is to install these packages. Except for cmake and OpenGL, be sure to have the Development Packages (most likely ending with ‘-dev’).
If the package management system is missing one of the above, follow the according link and follow instuctions found there to install.
Mac OS X
The easiest way to get the required libraries is to use a package management system for OS X such as Fink or MacPorts . The latter one has proven to work fine.
Though you are also free to download and install everything by hand.
Confingure
Windows
Start up the CMake Application and point it to the CMakeList.txt file in your tgt directory.
Linux
Open a shell, cd to the directory you unzipped the tgt archive to.
$ mkdir build; cd build; ccmake ..
will create a project directory and throw up a simple graphical interface to customize your tgt compilation settings.
Mac OS X
Configuration is the same as with Linux. Start the Terminal Application and cd to the tgt directory.
$ mkdir makefile; cd makefile; ccmake ..
will do the very same as under linux. Additionally CMake is able to build XCode Projects:
$ mkdir build; cd build; ccmake .. -GXcode
After configuring your build, the project file for XCode will be “tgt/build/tgt.xcodeproj”.
Compiling
Windows & Visual Studio
Start Visual Studio and open the project named ‘…’ generated by cmake. … build project …
Linux
$ make
Mac OS X
Either use the Unix method by entering
$ make
in the your makefile build directory or simply use XCode to build tgt.
Installation
Linux, Mac OS X
$ make install
Windows
There is no automated install mechanism yet.


