Setup CamiTK 4 Development Environment on Windows 7¶
Start from a fresh
Windows 7 install
The CamiTK team recommends
Visual Studio 2015 IDE.
Install Qt 5.6.1, Visual Studio 2015, CMake and git:
CamiTK development environment¶
You will need
imp (the CamiTK workbench application),
actionstatemachine (the protocol player) and all the libraries and tools, all of this will be bundled in this package:
This installer will install the following libraries on your computer, in the
C:\dev (64 bit) directory :
* CamiTK 4.1.2 and its source code with these required libraries :
* VTK 6.3
* GDCM 2.6.3
* Some additional libraries
Set environment variables¶
After the installation step, some environment variables need to be set. You have to modify the system variable
We recommend the installation of
Rapid Environment Editor to help you do that.
Rapid Environment Editor with the administrator rights and edit the system wide
%PATH% variable in order to add the path to all the dependencies:
- for example for a 64-bit system, add the following to the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
C:\dev\CamiTK-4.1.2\install; C:\dev\CamiTK-4.1.2\install\bin; C:\dev\Qt5.6\5.6\msvc2015_64\bin; C:\dev\Qt5.6\5.6\msvc2015_64\lib; C:\dev\xerces-c\3.1.1; C:\dev\xerces-c\3.1.1\bin; C:\dev\xerces-c\3.1.1\lib; C:\dev\XSD\3.3.0; C:\dev\XSD\3.3.0\bin; C:\dev\XSD\3.3.0\include; C:\dev\gdcm\2.6.3; C:\dev\gdcm\2.6.3\bin; C:\dev\gdcm\2.6.3\lib; C:\dev\gdcm\2.6.3\include; C:\dev\ITK\4.9; C:\dev\ITK\4.9\bin; C:\dev\VTK\6.3; C:\dev\VTK\6.3\bin;
- The Qt path depends on where you installed Qt
- The prefix
C:\dev\..also depends on where you installed the CamiTK developer package
We only support CamiTK installation on Windows for 64 bits using Visual Studio 2015. Visual Studio 2017 is known to work. If you decide to install another version of Visual Studio, do it at your own risk! You may ask for help on the forum but unfortunately we do not have a lot of free time to help developer with non officially supported configuration.
Configuring, generating and compiling CamiTK 4¶
As you just install and set your environment for CamiTK, you can now launch the CMake generation and Visual compilation of CamiTK.
configure and generate files to build¶
First run CMake GUI to be able to configure your project for compilation :
- In CMake GUI set the build and source directories
configure, choose the correct compiler and check options you want. For future installation you can check the
CMAKE_INSTALL_PREFIX to the directory where you want CamiTK 4 binaries will be installed. In
c:\dev\camitk\install for instance.
- After that click again
configure until red highlights are removed and you satisfied with the choices you made
generate to obtain Visual Studio files in your build directory
Go to the build directory and look for camitkopensource.sln file to open CamiTK Visual Studio solution to build. Then, compile the ALL_BUILD project.
To install CamiTK you can just compile the INSTALL target.
Try to run CamiTK from your build¶
After the compilation you can use CamiTK, here is how to do with initial values for environment variables, adapt this with the choices you have made :
- As a simple user:
binary executables are located in c:\dev\Camitk\install\bin and launch camitk-imp.exe.
- As a developer:
According to your Visual Studio configuration (debug or release), configure the camitkopensource solution property (right click: ALL BUILD\Properties\Configuration Properties\Debugging\Command) and add
Check the installation¶
Type in a command shell:
You should get details information about CamiTK version, where CamiTK is looking for extensions, and the default installed extensions.
You're ready to run