-
Notifications
You must be signed in to change notification settings - Fork 7
Compiling on OS X
Julien Lamy edited this page Mar 25, 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 \ -D CMAKE_INSTALL_PREFIX=install \ -D "EXTRA_BUNDLE_DIRS=${PWD}/install/lib;/usr/local/opt/icu4c/lib" .. 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 insrc/appli/bruker2dicom
andsrc/appli/dicom2nifti