Configuration

Supported builds system

QtDcm can be built and run on the following systems:

The dependencies

CMake

Install CMake
and choose the installer corresponding to your system. The minimum version required is 3.1 so on certain Linux it might not be availble, thus you'll have to build it on your own.

Qt

You can get the Qt development kit from the Qt website
Take the development kit corresponding to your system and at least install Qt 5.5.

DCMTK

Download the source code from the OFFIS website Use the following CMake options values:

BUILD_SHARED_LIBS: OFF CMAKE_BUILD_TYPE: RelWithDebInfo

The Insight Toolkit

Download the 4.6 version of the Insight Toolkit from here. Use the following CMake options values:

BUILD_EXAMPLES: OFF BUILD_SHARED_LIBS: ON BUILD_TESTING: OFF CMAKE_BUILD_TYPE: RelWithDebInfo

Configuring QtDcm with CMake

Make sure to have CMake 3.1 minimum and then go to your local QtDcm source directory. I recommend to configure an "out of source" build, so create a "build" directory and launch cmake from there:

$ cd $qtdcm_source_dir
$ mkdir build
$ cd build
$ cmake ..

Set the following CMake options values:

ITK_DIR : /path/to/your/itk/build/directory
DCMTK_DIR : /path/to/your/dcmtk/build/directory
DCMTK_SOURCE_DIR : /path/to/your/dcmtk/source/directory
CMAKE_BUILD_TYPE : RelWithDebInfo

If you want to play with the example or build this documentation, you can also set the following variables:

BUILD_EXAMPLE : ON
BUILD_DOCUMENTATION : ON

Then you are ready to compile the library.

Go to the Compilation step
Back to Getting the code step