Difference between revisions of "IGT:ToolKit/Build-IGSTK-Windows"

From NAMIC Wiki
Jump to: navigation, search
(Created page with '===Build IGSTK=== Create directory '''IGSTK-build''', then configure the project using CMake 2.6 or hiher. Here is an example of how IGSTK is configured: BUILD_DOCUMENTATION ...')
 
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
===Build IGSTK===
 
===Build IGSTK===
  
Create directory '''IGSTK-build''', then configure the project using CMake 2.6 or hiher. Here is an example of how IGSTK is configured:
+
*Create directory '''IGSTK-build''', then configure the project using CMake 2.6 or higher. Here is an example of how IGSTK is configured:
 +
[[Image:Igstk_cmake_options.jpg|300px|thumb|IGSTK cmake options]]
  
BUILD_DOCUMENTATION              OFF
+
*Bring up Visual Studio, open the project in IGSTK-build and build everything there.
BUILD_TESTING                    ON
 
CMAKE_BACKWARDS_COMPATIBILITY    2.4
 
CMAKE_BUILD_TYPE
 
CMAKE_INSTALL_PREFIX            /usr/local
 
DART_ROOT                        DART_ROOT-NOTFOUND
 
EXECUTABLE_OUTPUT_PATH          /home/hliu/projects/igstk/IGSTK-build/bin
 
IGSTK_BUILD_EXAMPLES            ON
 
IGSTK_BUILD_TESTING              ON
 
IGSTK_DEVELOPMENT_VERSION        ON
 
IGSTK_TEST_AURORA_ATTACHED      ON
 
IGSTK_TEST_AURORA_PORT_NUMBER    0
 
IGSTK_TEST_LOOPBACK_ATTACHED    OFF
 
IGSTK_TEST_LOOPBACK_PORT_NUMBE  1
 
IGSTK_TEST_POLARIS_ATTACHED      OFF
 
IGSTK_TEST_POLARIS_PORT_NUMBER  0
 
IGSTK_USE_FLTK                  OFF
 
IGSTK_USE_MicronTracker          OFF
 
IGSTK_USE_Qt                    OFF
 
ITK_DIR                          /home/hliu/projects/Slicer3-lib/Insight-build
 
LIBRARY_OUTPUT_PATH              /home/hliu/projects/igstk/IGSTK-build/bin
 
VTK_DIR                          /home/hliu/projects/Slicer3-lib/VTK-build
 
 
 
If the previous command has completed without error, you can start building
 
  $ make
 
  
 
===Build IGSTKSandbox===
 
===Build IGSTKSandbox===
cd to your '''igt-tutorial''' folder, then
 
 
  $ mkdir IGSTKSandbox-build
 
  $ cd IGSTKSandbox-build
 
  $ ccmake ../IGSTKSandbox
 
 
Configure using CMake 2.6.  You need ITK, VTK and IGSTK for this configuration.  ITK and VTK can be found in your '''Slicer3-lib''' folder after Slicer3 has been built.  IGSTK was built in the previous step.  Here is an example of how IGSTK is configured (note that you should refer to the IGSTK folder and not the IGSTK-build folder):
 
  
BUILD_SHARED                    ON
+
*Create directory '''IGSTKSandbox-build''', then configure the project using CMake 2.6 or higher. Here is an example of how IGSTKSandbox is configured:
BUILD_TESTING                    ON
+
[[Image:Igstksandbox_cmake_options_1.jpg|300px|thumb|IGSTKSandbox cmake options (part 1)]]
CMAKE_BACKWARDS_COMPATIBILITY    2.4
+
[[Image:Igstksandbox_cmake_options_2.jpg|300px|thumb|IGSTKSandbox cmake options (part 2)]]
CMAKE_BUILD_TYPE
 
CMAKE_INSTALL_PREFIX            /usr/local
 
DART_ROOT                        DART_ROOT-NOTFOUND
 
DOT                              DOT-NOTFOUND
 
EXECUTABLE_OUTPUT_PATH          /home/hliu/projects/igstk/IGSTKSandbox-build/bin
 
FLTK_DIR                        FLTK_DIR-NOTFOUND
 
IGSTKSandbox_BUILD_EXAMPLES      ON
 
IGSTKSandbox_BUILD_SUPERVISED_  OFF
 
IGSTKSandbox_BUILD_TESTING      ON
 
IGSTKSandbox_SEND_TRANSFORMS_T  ON
 
IGSTKSandbox_TEST_AURORA_ATTAC  ON
 
IGSTKSandbox_TEST_AURORA_PORT_  0
 
IGSTKSandbox_TEST_FLOCKOFBIRD_  OFF
 
IGSTKSandbox_TEST_FLOCKOFBIRD_  1
 
IGSTKSandbox_TEST_LOOPBACK_ATT  OFF
 
IGSTKSandbox_TEST_LOOPBACK_POR  1
 
IGSTKSandbox_TEST_POLARIS_ATTA  OFF
 
IGSTKSandbox_TEST_POLARIS_PORT  0
 
IGSTKSandbox_USE_FLTK            OFF
 
IGSTKSandbox_USE_MicronTracker  OFF
 
IGSTKSandbox_USE_OpenIGTLink    ON
 
IGSTKSandbox_USE_Qt              OFF
 
IGSTKSandbox_USE_vtkKWImage      ON
 
IGSTK_SOURCE_DIR                /home/hliu/projects/igstk/IGSTK
 
IGSTK_USE_COORDINATE_REFERENCE  ON
 
ITK_DIR                          /home/hliu/projects/Slicer3-lib/Insight-build
 
LIBRARY_OUTPUT_PATH              /home/hliu/projects/igstk/IGSTKSandbox-build/bin
 
VTK_DIR                          /home/hliu/projects/Slicer3-lib/VTK-build
 
  
If the previous command has completed without error, you can start building
+
*Bring up Visual Studio, open the project in IGSTKSandbox-build and build everything there.
  $ make
 

Latest revision as of 01:22, 21 May 2009

Home < IGT:ToolKit < Build-IGSTK-Windows

Build IGSTK

  • Create directory IGSTK-build, then configure the project using CMake 2.6 or higher. Here is an example of how IGSTK is configured:
IGSTK cmake options
  • Bring up Visual Studio, open the project in IGSTK-build and build everything there.

Build IGSTKSandbox

  • Create directory IGSTKSandbox-build, then configure the project using CMake 2.6 or higher. Here is an example of how IGSTKSandbox is configured:
IGSTKSandbox cmake options (part 1)
IGSTKSandbox cmake options (part 2)
  • Bring up Visual Studio, open the project in IGSTKSandbox-build and build everything there.