|
Medical Imaging Interaction Toolkit
2025.12.99-499a58d9
Medical Imaging Interaction Toolkit
|
MITK uses a CMake-based superbuild system. The superbuild downloads and builds almost all required third-party libraries before building MITK itself.
This page explains how to configure and use the MITK superbuild.
You need the following software:
On Linux, install the following packages including Git, Doxygen, and GraphViz as mentioned above (example for Ubuntu using APT):
On Windows, install Visual Studio 2022 with the Desktop development with C++ workload.
You also need an OpenSSL version that matches the OpenSSL dependency of MITK’s Python package. Currently, this is OpenSSL 3.5. We recommend using the builds provided by Shining Light Productions.
On macOS, install the Command Line Tools (they provide the required compilers and SDKs):
Then install the following packages, for example via Homebrew:
Note: Because of known incompatibilities, OpenMP is disabled on macOS when MITK_USE_Python3 is enabled (default), though.
MITK does not provide Qt as part of its superbuild. You must install Qt manually. The Qt Group provides installers for all supported platforms:
We highly recommend installing Qt to the default location, so CMake can find it automatically.
In the Qt installer, make sure to select the following additional libraries:
Note: Starting with Qt 6.8, Qt WebEngine is no longer listed under "Additional Libraries". It is now located under "Extensions > Qt WebEngine".
With all prerequisites installed and using standard/default settings, building MITK with CMake is straightforward.
Linux or macOS:
Windows:
The MITK superbuild has the major advantage that most of MITK’s dependencies are built automatically and do not need to be provided manually. The trade-off is that it requires a short introduction to understand how the superbuild concept works.
The superbuild compiles not only all dependencies, but also MITK itself as the final step.
When developing with MITK, and as long as no dependencies are changed or updated, it is sufficient to continuously build only MITK. There is no need to run the superbuild again and again.
Here is the crucial point from a CMake perspective: Both the superbuild and the MITK build share the same source directory. The only difference is the build directory, for example:
/path/to/MITK-superbuild/path/to/MITK-superbuild/MITK-buildOnce the superbuild has finished, you usually switch the build directory in CMake to the MITK-build directory. This reveals an entirely different set of CMake options, now specific to building MITK itself.