Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compiling mitk-gem on Mac #55

Open
thsmit opened this issue Sep 12, 2024 · 4 comments
Open

compiling mitk-gem on Mac #55

thsmit opened this issue Sep 12, 2024 · 4 comments

Comments

@thsmit
Copy link

thsmit commented Sep 12, 2024

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?

@thsmit thsmit changed the title Qt5.5 on new generation Mac compiling mitk-gem on Mac Sep 25, 2024
@thsmit
Copy link
Author

thsmit commented Sep 25, 2024

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?

@ypauchard
Copy link
Collaborator

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.

@thsmit
Copy link
Author

thsmit commented Sep 27, 2024

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?

@ypauchard
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants