SuperBuild
From FarsightWiki
Revision as of 20:57, 22 May 2012 by Matt McCormick (Talk | contribs)
Contents |
Prerequisites
- Install subversion
- Checkout Farsight source code from https://farsight-svn.ee.uh.edu/repos/farsight/trunk
- Install CMake 2.8.5 or newer: http://cmake.org/cmake/resources/software.html
Configure
Use cmake-gui or ccmake to configure the SuperBuild
- For Source Directory, specify <farsight-trunk>/SuperBuild
- Your Build Directory can be wherever you wish. Note that in addition to the FARSIGHT binaries, your build directory will also contain all the source code & binaries for VTK, VXL, and (except on Windows) ITK.
- If you have Qt installed on your system, enable the USE_SYSTEM_QT option and set QT_QMAKE_EXECUTABLE to the location of qmake. This will prevent the SuperBuild from downloading & building Qt, saving you considerable time.
- Visual Studio requires ITK to have a relatively short path to the source code. On Windows, you can set ITK_BASE_DIR to where you'd like to download & build ITK. The default option of C:/ITK is known to be short enough.
- Once you're happy with the configuration settings, tell CMake to generate the build files.
Build
Use your compiler or IDE of choice to build the FARSIGHT project.
Visual Studio
Navigate to the binary folder, open the FarsightSuperBuild.sln file and push F7 on your keyboard.
Makefiles
Navigate to the binary folder
cd /home/user/farsight/farsight-bin
Take a break after you execute this in the binary folder
make -j9 (or 16, 2*number_of_cores is usually a safe bet)