From a source tallball of a release
You can download llvm from llvm's website or use your distribution package, and you can download OpenGTL here.
LLVM 2.4/2.5 for 32bits
tar -xzf llvm-2.5.tar.gz
cd llvm-2.5
./configure --disable-pic --disable-asserts
make
make install
LLVM 2.4/2.5 for x86-64
tar -xzf llvm-2.5.tar.gz
cd llvm-2.5
./configure --enable-pic --with-pic --disable-asserts
make
make install
Build OpenGTL
tar -xjv OpenGTL-0.9.10.tar.bz2
cd OpenGTL-0.9.10
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX:PATH=$OPENGTL_PREFIX
make
make install
Set OPENGTL_PREFIX to wherever you want to install OpenGTL. An example of a CMake test to check for the availability of OpenGTL can be found in the QtCTL package.
The latest developement tree
You can access the development version:
hg clone https://bitbucket.org/opengtl/opengtl/
Then you can build it the same way as from a source tarball.
On Windows (with MSVC 2008)
The first step is to download cmake. Then you can download the latest llvm from llvm's website, and follow the instruction on getting started with LLVM with Visual Studio.
Then download OpenGTL, and launch the CMake GUI interface, set LLVM_INST_DIR to the directory that countains LLVM.
To get png, I used the KDE windows installer, then I set CMAKE_SYSTEM_INCLUDE_PATH and CMAKE_LIBRARY_PATH to countains the include directory and library of the KDE install.





