SuperBuild

From FarsightWiki
(Difference between revisions)
Jump to: navigation, search
(Prerequisites)
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
 
== Prerequisites ==
 
== Prerequisites ==
*Install subversion
+
*Install subversion from http://subversion.apache.org/packages.html
 
*Checkout Farsight source code from https://farsight-svn.ee.uh.edu/repos/farsight/trunk
 
*Checkout Farsight source code from https://farsight-svn.ee.uh.edu/repos/farsight/trunk
*Install CMake 2.8.4 or newer: http://cmake.org/cmake/resources/software.html
+
*Install CMake 2.8.5 or newer: http://cmake.org/cmake/resources/software.html
  
 
== Configure ==
 
== Configure ==

Latest revision as of 15:14, 24 May 2013

Contents

Prerequisites

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)

Let us know if it doesn't work for you!

Personal tools