compiling mitk-gem on Mac
I am trying to compile MITK-GEM on a new generation Mac and I am having troubles installing Qt5.5. Any advice on how I can get Qt5.5 specifically installed?
Hello, I try to compile mitk-gem on a mac.
I installed ITK and DCMTK via homebrew and installed Qt5.5.1.
(base) me@mac Documents % cd build
(base) me@mac build % cmake -DCMAKE_PREFIX_PATH="/Users/me/Qt/5.5.1/5.5/clang_64;/opt/homebrew/Cellar/itk/5.3.0_3;/opt/homebrew/Cellar/dcmtk/3.6.8" ../src
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- Setting build type to 'Debug' as none was specified.
-- The C compiler identification is AppleClang 16.0.0.16000026
-- The CXX compiler identification is AppleClang 16.0.0.16000026
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- WHITELIST VARIABLES ON EXTERNAL MITK LEVEL
-- WHITELIST: VCLab
-- MITK_WHITELISTS_EXTERNAL_PATH: /Users/me/.mitk/Whitelists
-- MITK_WHITELISTS_INTERNAL_PATH: /Users/me/Documents/src/CMake/Whitelists
-- WHITELIST VARIABLES ON SUPERBUILD LEVEL
-- WHITELIST: VCLab
-- MITK_WHITELISTS_EXTERNAL_PATH: /Users/me/.mitk/Whitelists
-- MITK_WHITELISTS_INTERNAL_PATH: /Users/me/Documents/src/CMake/Whitelists
-- MITK_WHITELISTS_INTERNAL_PATH_ABS: /Users/me/Documents/src/CMake/Whitelists
-- Configuring done (0.6s)
-- Generating done (0.0s)
-- Build files have been written to: /Users/me/Documents/build
(base) me@mac build % make -j 8
In am running into an error:
[ 63%] Completed 'DCMTK'
[ 63%] Built target DCMTK
make[3]: *** [all] Error 2
make[2]: *** [MITK-cmake/src/MITK-stamp/MITK-build] Error 2
make[1]: *** [CMakeFiles/MITK.dir/all] Error 2
make: *** [all] Error 2
Looks like a problem with DCMTK. Anyone an idea how to solve this?
MacOSx has always been the trickiest to compile and run MITK-GEM. Do you have the option to compile on Linux or Windows?
If I get a chance, I will try on a new Mac and let you know.
The mac installer works, however, it looks like the material mapping functionality is not included in that version. Is this the case? Can this be updated somehow?
Hmm, interesting. I am surprised the app still runs on M2 (Ventura).
I see in the Log view that the material mapping view cannot be loaded:
org_blueberry_ui_qt|BlueBerryLOG: Platform exception: Exception in berry::FolderLayout.AddView(const QString&): Part initialization error: View descriptor not found: org.mitk.views.materialmapping
So the plugin is there, but cannot be loaded. My guess is that it is related to the newer MacOSx version (as compared to the 2016 version it was compiled for) or some intel-M2 difference.
Maybe recompiling is the only option for Mac. If I get a chance I will try to recompile on my end.
I tried out the windows executable on Windows 10 Pro and it still works.