Hints for Students, How to download and setup third-party libraries
QT
Download QT from Trolltech (LGPL Version) and extract it to its final directory. Note that you should not move this directory later on, since the subsequent configuration processes depend on qmake, which needs to remain in the directory it was built. You can remove the demos and examples directory if you want.Do not download the MINGW version, which automatically pops up to download. Download the source-code version! Open the Visual Studio command prompt (not cmd!) and change to the folder containing your Qt.
- > configure.exe
- wait... the thing compiles various things
- errors? try: qconfigure msvc2005 (e.g. for Visual Studio 2005)
- all configured? qmake was built? no errors?
- > nmake sub-src sub-tools
Qt is now building!
You can set QT_DIR, QT_ROOT or similar as environment variable pointing to the root directory of Qt. Do not forget to add the [QT_ROOT]/bin folder to the Path environment variable.
CMake
Get the Windows binary from the CMake Project Website and install it.
IcgCMakeModules
svn co https://svn.icg.tugraz.at/svn/IcgCMakeModules/trunk
either check it out into [CMakeInstallPath]\share\cmake-2.6\Modules or check out anywhere and set CMAKE_MODULE_PATH pointing to that folder as environment variable.
ITK
Download ITK from here (e.g. InsightToolkit-3.12.0.zip), extract it to the desired directory. Open a Visual Studio command prompt. Go into the ITK directory (e.g. c:\libraries\Insight) and create a directory called 'build'. Execute CMakeSetup.exe. Now enter the source and the build directory of the ITK in the according boxes. Use 'Visual Studio 2005 solution' as build environment. Switch off the BUID_TESTING and BUILD_EXAMPLES to save time and hard drive space. Use Release as the build type. Switch on BUILD_SHARED_LIBS.Click on Configure as long as the OK Button appears to be ready.
Finish the cmake setup program by clicking on 'OK', this generates the sln files.
Open the solution file in the build directory with Visual Studio. Build ITK with all build configurations.
Have some coffee...
Coin
Download the current release version of Coin from the sim website. At the time of this writing this was version 2.5.0. Take the zip file that is marked as "Windows binaries, no installer (VC8)".Extract the binary release into the final directory, e.g. c:\Libraries\coin. Set the environment variable COINDIR to point to the install directory. Put the bin directory of COINDIR into the system path. Do the same with SoQt and SimVolean if you need them for your project.
Quarter
check out the current version from the sim mercurial repo -> use tortoise Git (clone):hg clone http://hg.sim.no/Quarter
Do not use the Quarter 1.0.0 Version wich you can download on the sim website!
Build it with CMake. Open CMakeSetup.exe. Insert the Quater directory as build directory. Optionally use a different directory as build directory or use the same directory as Quater was checked out in. Configure until OK appears. Click OK. Open the solution and build all configurations. You can install Quarter with teh INSTALL project. The necessary files will be copied in the directory you have pointed out in the CMake configuration process. (Default C:\Program Files\Quarter)
Cuda
Download an install Cuda from the Nvidia website (Install Driver, Toolkit and SDK; maybe use the same directory for both).
CudaTemplates
Checkout fromsvn co https://cudatemplates.svn.sourceforge.net/svnroot/cudatemplates
Configure either cudatemplates/trunk if you use Cuda 2.0 or branches/cuda-2.2 if you use Cuda 2.2
Optionally build the tests (cudatemplates.sln). some might not compile. This does not matter.
Do not forget to set an Environment variable CudaTemplates_DIR to the correct version of cudatemplates (depending of your Cuda version), or point them out explicitly in an CMake configuration where CudaTemplates are required.
Boost
Use the boost installer.
select everything.
Set BOOST_ROOT, BOOST_DIR if the installer does not.
PNG library zlib and similar GNU stuff for Win32
Download and install the packages you need from the GNUWin32 Website. Install them at a location where you find them again. Either set environment variables like ZLIB_INCLUDE_DIR for all packages, or fill them in explicitly in each CMake configuration where you need them.
CMake tells you what is missing. These things are called Error Message during the configuration process. If you read them carefully, you will be able to answer the question "Why is my project not correctly built?"
