Skip to content
Julien Lamy edited this page Feb 20, 2017 · 7 revisions
  • Install Homebrew

  • Install a few Homebrew packages:

      brew install boost boost-python dcmtk icu4c jsoncpp log4cpp ninja pkg-config python
    
  • Fetch the latest stable version, unzip it

  • From the source directory:

      mkdir build
      cd build
      export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/local/opt/icu4c/lib/pkgconfig
      cmake -G Ninja \
          -D PYTHON_LIBRARY=/usr/local/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.dylib \
          ..
      ninja
    
  • Make sure everything compiled correctly:

      ../tests/run.sh
    
Clone this wiki locally