Skip to content
Julien Lamy edited this page Jan 12, 2017 · 11 revisions
  • Install Odil. From the source directory, run

      export ODIL_ROOT=${PWD}/..
    
  • Install a few Homebrew packages:

      brew install niftilib python boost-python qt
    
  • Install numpy

  • Fetch the latest stable version, unzip it

  • From the source directory:

      mkdir build
      cd build
      export PKG_CONFIG_PATH=/usr/local/lib
      cmake -G Ninja \
        -D CMAKE_CXX_FLAGS="-I/usr/local/lib/python2.7/site-packages/numpy/core/include" \
        -D CMAKE_INSTALL_PREFIX=install \
        -D PYTHON_LIBRARY=/usr/local/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.dylib \
        -D Odil_INCLUDE_DIR=${ODIL_ROOT}/src \
        -D Odil_LIBRARY=${ODIL_ROOT}/build/src/libodil.dylib \
        -D "EXTRA_BUNDLE_DIRS=${PWD}/install/lib;/usr/local/opt/icu4c/lib" \
        ..
      ninja
    
  • Make sure everything compiled correctly:

      ../tests/run_tests.sh
    
  • Build the bundle:

      ninja install
    
  • Build the DMG:

      mkdir dmg
      cp -r install/dicomifier.app dmg
      ln -s /Applications dmg
      hdiutil create -fs HFS+ -srcfolder dmg -volname "Dicomifier 0.5.5" "Dicomifier 0.5.5.dmg"
    
Clone this wiki locally