# Installation issues: macOS Mojave 10.14.6

**URL:** <https://discourse.slicer.org/t/installation-issues-macos-mojave-10-14-6/7950>\
**Category:** Support\
**Created:** [August 8, 2019, 9:42pm UTC](https://discourse.slicer.org/t/installation-issues-macos-mojave-10-14-6/7950 "2019-08-08T21:42:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![unnmdnwb3](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/unnmdnwb3/32/4527_2.png) [@unnmdnwb3](https://discourse.slicer.org/u/unnmdnwb3)\
**Post date:** [August 8, 2019, 9:42pm UTC](https://discourse.slicer.org/t/installation-issues-macos-mojave-10-14-6/7950/1 "2019-08-08T21:42:56Z")

</div>

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](https://www.slicer.org/wiki/Documentation/Nightly/Developers/Build_Instructions#Mac_OSX_10.14_.28Mojave.29):

```auto
% checkout
cd $HOME/PycharmProjects
git clone git://github.com/Slicer/Slicer.git
cd Slicer
./Utilities/SetupForDevelopment.sh

% 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/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk make -j4

```

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

```auto
[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!

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [August 9, 2019, 12:03am UTC](https://discourse.slicer.org/t/installation-issues-macos-mojave-10-14-6/7950/2 "2019-08-09T00:03:26Z")

</div>

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:

```auto
cmake \
  -DCMAKE_BUILD_TYPE:STRING=Debug \
  -DQt5_VERSION:STRING=5.12 \
  -DQt5_DIR:FILEPATH=/usr/local/opt/qt5/lib/cmake/Qt5 \
  -DQt5Core_DIR:FILEPATH=/usr/local/opt/qt5/lib/cmake/Qt5Core \
  -DCMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.14 \
  -DSlicer_USE_SimpleITK:BOOL=OFF \
  -DSlicer_USE_QtTesting:BOOL=OFF \
  ~/slicer4/latest/Slicer

```

---

<div class="post-metadata">

**Author:** ![unnmdnwb3](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/unnmdnwb3/32/4527_2.png) [@unnmdnwb3](https://discourse.slicer.org/u/unnmdnwb3)\
**Post date:** [August 9, 2019, 11:32am UTC](https://discourse.slicer.org/t/installation-issues-macos-mojave-10-14-6/7950/3 "2019-08-09T11:32:20Z")

</div>

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!
