Installation issues: macOS Mojave 10.14.6

Hello everyone,

I’ve tried to locally install and compile Slicer to use its modules for an extension, on which I will be working on.
However, I’m struggling with some issues and would appreciate some help.

My setup is the following:

  • macOS: Mojave 10.14.6
  • Xcode: 10.3
  • cmake: 3.15.1
  • qt: 5.13.0
  • wget: 1.20.3
  • gcc: clang 1001.0.46.4

I followed the instructions on the nightly build:

% checkout
cd $HOME/PycharmProjects
git clone git://
cd Slicer

% build
mkdir Slicer-SuperBuild
cd Slicer-SuperBuild
cmake -DQt5_DIR:PATH=/usr/local/opt/qt/bin -DSlicer_USE_PYTHONQT_WITH_OPENSSL:BOOL=ON ../Slicer

% compile
SDKROOT=/Applications/ make -j4

During compilation, the following fatal error occurs and stops the process:

[ 38%] No install step for 'DCMTK'
[ 38%] Completed 'DCMTK'
[ 38%] Built target DCMTK
make: *** [all] Error 2

Thank you in advance for any help or suggestions!

When you use the -j option of make you won’t typically see the error message so run make without -j to see where it actually errors out.

Also, for a recent mac build I ended up using this cmake line:

cmake \
  -DQt5_DIR:FILEPATH=/usr/local/opt/qt5/lib/cmake/Qt5 \
  -DQt5Core_DIR:FILEPATH=/usr/local/opt/qt5/lib/cmake/Qt5Core \
  -DSlicer_USE_SimpleITK:BOOL=OFF \
  -DSlicer_USE_QtTesting:BOOL=OFF \

Hi @pieper,

Thank you so much for your input, after long hours of trial and error, I finally managed to build Slicer with the solution you proposed!

1 Like