Skip to content
Julien Lamy edited this page Mar 1, 2016 · 11 revisions
  • Install Odil. From the source directory, run

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

      brew tap homebrew/versions
      brew install qt v8-315
    
  • 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="-std=c++11 -I /usr/local/include" \
        -D CMAKE_SHARED_LINKER_FLAGS="-L /usr/local/lib" \
        -D CMAKE_EXE_LINKER_FLAGS="-L /usr/local/lib" \
        -D V8_INCLUDE_DIR=/usr/local/Cellar/v8-315/3.15.11/include/ \
        -D V8_LIBRARY=/usr/local/Cellar/v8-315/3.15.11/lib/libv8.dylib 
        -D Odil_INCLUDE_DIR=${ODIL_ROOT}/src \
        -D Odil_LIBRARY=${ODIL_ROOT}/build/src/libodil.dylib \
        ..
      ninja
    
  • Make sure everything compiled correctly:

      ../tests/run.sh
    
  • From the build directory, run:

      export DICOMIFIER_JS_PATH=${PWD}/../src/js
    
  • The GUI is located in src/appli/dicomifier, the command-line applications are located in src/appli/bruker2dicom and src/appli/dicom2nifti

Clone this wiki locally