Locked History Attachments

SetupMitkQt4BlueBerry

Setup, compile and run MITK with BlueBerry and Qt4

This page has been updated to reflect the recent build-system changes (aka superbuild).

This page describes how to build MITK itself. If you want to start your own project based on MITK, please read "Setup A MITK Based Project" instead.

This tutorial is for Windows, but the steps are basically the same for Linux. 1. Prerequisites: You need git (http://git-scm.com/), CMake, a compiled version of Qt 4.x.

  1. Git clone the current source from http://git.mitk.org/MITK.git, e.g. in D:\home\MITK\source

  2. If you installed any previous version of Qt make sure to remove the path from your PATH-environment variable. Otherwise you might get errors during configuration

  3. Start "cmake-gui" and enter your source (e.g. D:\home\MITK\source) and binary directory (e.g. D:\mitk-superbuild).

  4. You have to press "Configure" two times more and then "Generate". Now all project files have been generated into your binary directory
  5. Close CMake and open "D:\mitk-superbuild\MITK-superbuild.sln" (replace the path accordingly). Your Visual Studio should appear and by pressing F7 you start the compilation

  6. After the superbuild compilation has finished, close the solution file and start the batch file "D:\mitk-superbuild\MITK-build\StartVS_debug.bat" (or _release.bat if you built MITK in Release mode) which opens the "D:\mitk-superbuild\MITK-build\MITK.sln" solution.
  7. Set the "ExtApp" project as start-up project (right click > "Set as StartUp Project") and press "F5" to start the MITK ExtApp.

=> Just opening MITK.sln from your explorer by double-cliking won`t allow you start or debug MITK applications because the required environment variables would be missing. Use the supplied batch files or set your PATH variable accordingly.