macOS Build - 3dct/open_iA GitHub Wiki

Up to Build Environment.

The easiest way to set up a working build environment for open_iA in an automated fashion is through our superbuild. As we haven't had much opportunity to test our superbuild on macOS, we would be glad to hear your feedback, if you try it!

We currently are building open_iA occasionally on macOS 14.0 (Sonoma). Please refer to the Linux build instructions as they should apply here as well, except for:

  • Selection of XCode as generator
  • We recommend using the pre-built binaries from the Qt project.
  • OpenCL will work for open_iA, but not in ITK -> do not enable ITK_USE_GPU, as it leads to build errors.
  • open_iA also requires OpenMP, which under mac OS requires separate installation, e.g. via homebrew.
    • For installation, run:
    $ brew install libomp
    
    • check which version was installed:
    $ ls /usr/local/Cellar/libomp
    
    Example output:
    17.0.2
    
    Take note of that version (and replace the references to "17.0.2" with the version number you get in the rest of this section, in case you have a different one)
    • Create a link to simplify including omp.h:
    $ ln -s /usr/local/Cellar/libomp/17.0.2/include/omp.h /usr/local/include/omp.h
    
    • You will have to adapt some open_iA configuration in CMake as well:
      • Set OpenMP_CXX_FLAGS to -Xclang -fopenmp
      • Set OpenMP_CXX_INCLUDE_DIR to /usr/local/include (you may have to create this variable with type "PATH")
      • Set OpenMP_libomp_LIBRARY to /usr/local/Cellar/libomp/17.0.2/lib/libomp.dylib
  • For the Remote module, you can also install nodejs / npm via homebrew:
    brew install node
    
  • For OpenVR and OpenXR, no pre-built binaries are available as far as we know, we therefore haven't yet built the ImNDT / XVRA modules on mac OS so far.
  • The HDF5 library seems to have trouble building zlib and aec at least through our superbuild, so we haven't tested HDF5 support yet.
  • We also do not support AstraToolbox (CUDA) or AI (onnx runtime).