Install
  1. Linux
    1. Requirements
    2. Known working configurations
    3. Install from sources
  2. Windows
    1. Requirements
    2. Known working configurations
    3. Steps
  3. CMake build options

Linux

Requirements

Known working configurations

  - gcc:
        4.0.2 20051125 (Red Hat 4.0.2-8)
        4.1.1 20070105 (Red Hat 4.1.1-51)
        4.1.2 20070626 (Red Hat 4.1.2-13)
        4.2.0 (OpenSuse 10.3)
   - cmake:
        2.4-patch 6
   - wxGTK-devel:
        2.6.3
        2.8
   - InsightToolkit:
        2.8.1-5
        3.2
        3.4
   - vtk:
        5.0.3-1

Install from sources

    Uncompress the archive or checkout the source from the cvs repository (see Download page).
    In the parent folder of the bbtk sources type :
    > mkdir bbtkbin; cd bbtkbin
    > ccmake ../bbtk
    Check the desired options. See CMake build options for a description.
    Type 'c' many times then 'g'.
    > make
    > make install
   Enjoy !


Windows

Requirements

Mandatory

Optional

Known working configurations

Steps

1. Uninstall previous versions of CMake (if any)
2. Double clic on the installation file cmake-2.4.6-win32-x86.exe
1. Decompress in C:\Creatis\VTK5.0.3, each one in a separate folder, the files
   - vtkdata-5.0.3.tar.gz
   - vtkDocHtml-5.0.3.tar.gz
   - basic-miktex-2.6.2742.exe.

2. Create the project of VTK5.0.3 in CMake with:
   - Binary folder C:\Creatis\VTK5.0.3Bin
   - Configuration:
     BUILD_SHARED_LIBS --> ON
     If you want to compile the examples set: BUILD_EXAMPLES  --> ON
   - Check that the VTK_DATA_ROOT variable at CMake is C:\Creatis\VTK5.0.3\VTKData
   - Clic configure once again and create (ok) the project
3. Open the created VTK project at C:\Creatis\VTK5.0.3Bin\VTK.sln and build the entire solution
Enjoy !

CMake build options

The options in grey only appear if the last non grey option is set to ON (e.g. itk_IMAGE_DIM_2 and the following ones in grey only appear if BUILD_PACKAGE_itk is ON).
Advanced options are not shown here...

Option
Explaination
Default
ALL_BUILD
Set to ON to build all the components of the toolkit
OFF
BBTK_DATA_ROOT
Enter the path to the bbtk_data folder (will be written in the default bbtk_config.xml file)
-
BUILD_APPLICATIONS
Set to ON to build bbtk applications : interpreter (bbi), xml to C++ code (bbfy), package documentation (bbdoc) ON
   BUILD_bbi_GRAPHICAL
Set to ON to build bbi in graphical mode allowing to use widget boxes (requires wxWidgets)
OFF
BUILD_EXAMPLES
Set to ON to build the C++ examples OFF
BUILD_PACKAGE_itk
Set to ON to build the package itk (requires the InsightToolkit installed)
OFF
   itk_IMAGE_DIM_2
Set to ON to compile itk images of dimension 2
ON
   itk_IMAGE_DIM_3 Set to ON to compile itk images of dimension 3
ON
   itk_IMAGE_DIM_4 Set to ON to compile itk images of dimension 4
ON
   itk_IMAGE_TYPE_CHAR
Set to ON to compile itk images of type char
ON
   itk_IMAGE_TYPE_DOUBLE Set to ON to compile itk images of type double
ON
   itk_IMAGE_TYPE_FLOAT
Set to ON to compile itk images of type float
ON
   itk_IMAGE_TYPE_INT
Set to ON to compile itk images of type int
ON
   itk_IMAGE_TYPE_SHORT
Set to ON to compile itk images of type short
ON
   itk_IMAGE_TYPE_UCHAR
Set to ON to compile itk images of type unsigned char
ON
   itk_IMAGE_TYPE_UINT
Set to ON to compile itk images of type unsigned int
ON
   itk_IMAGE_TYPE_USHORT
Set to ON to compile itk images of type unsigned short
ON
BUILD_PACKAGE_itkvtk
Set to ON to build the package itkvtk (requires the InsightToolkit and VTK installed) OFF
BUILD_PACKAGE_std
Set to ON to build the package std
ON
BUILD_PACKAGE_vtk
Set to ON to build the package vtk (requires VTK installed) OFF
BUILD_PACKAGE_wx
Set to ON to build the package wx (requires wxWidgets installed) OFF
BUILD_PACKAGE_wxvtk
Set to ON to build the package wxvtk (requires VTK and wxWidgets installed) OFF
BUILD_SHARED_LIBS
Set to ON to build bbtk as a shared library (.so/.dll) - Remark that packages as always build as such
ON
BUILD_bbtk_DOC
Set to ON to build documentations
OFF
   BUILD_bbtk_DOC_DOXYGEN
Set to ON to build doxygen documentation of bbtk and of the selected packages
ON
   BUILD_bbtk_DOC_GUIDES_HTML
Set to ON to build bbtk Users' guide, Package developers' guide and Developers' guide in html format (requires LaTeX and tth)
ON
   BUILD_bbtk_DOC_GUIDES_PDF
Set to ON to build bbtk Users' guide, Package developers' guide and Developers' guide in pdf format (requires LaTeX) ON
   BUILD_bbtk_DOC_PACKAGE
Set to ON to generate the packages html doc with bbdoc
ON
CMAKE_BUILD_TYPE
Set to "Debug" or "Release"
-
CMAKE_INSTALL_PREFIX
Set the install location
/usr/local
GENERATE_RPMBUILD_SPEC
Set to ON to create a .spec file to generate a rpm with rpmbuild
OFF
USE_CONFIGURATION_FILE
Set to ON to use the configuration file (bbtk_config.xml) in bbtk
OFF
VERBOSE_MAKEFILE
Set to ON to generate a verbose makefile which echos the commands issued
OFF
bbtk_COMPILE_DEBUG_MESSAGES
Set to ON to compile debug messages in bbtk OFF
bbtk_COMPILE_ERROR_MESSAGES
Set to ON to compile error messages in bbtk ON
bbtk_COMPILE_MESSAGES
Set to ON to compile normal messages in bbtk ON
bbtk_COMPILE_WARNING_MESSAGES
Set to ON to compile warning messages in bbtk
ON