# Error while building SlicerSALT

**URL:** <https://discourse.slicer.org/t/error-while-building-slicersalt/7926>\
**Category:** SlicerSALT\
**Created:** [August 7, 2019, 8:17pm UTC](https://discourse.slicer.org/t/error-while-building-slicersalt/7926 "2019-08-07T20:17:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lbumbolo](https://avatars.discourse-cdn.com/v4/letter/l/9fc29f/32.png) [@lbumbolo](https://discourse.slicer.org/u/lbumbolo)\
**Post date:** [August 7, 2019, 8:17pm UTC](https://discourse.slicer.org/t/error-while-building-slicersalt/7926/1 "2019-08-07T20:17:47Z")

</div>

Hi,  
I try to build SlicerSALT by myself but after the

> make -j 6

I receive this error:

```
CMake Error at CMake/ctkMacroGenerateMocs.cmake:30 (QT5_CREATE_MOC_COMMAND):
  QT5_CREATE_MOC_COMMAND Function invoked with incorrect arguments for
  function named: QT5_CREATE_MOC_COMMAND
Call Stack (most recent call first):
  CMake/ctkMacroBuildLib.cmake:121 (QT4_GENERATE_MOCS)
  Libs/Widgets/CMakeLists.txt:448 (ctkMacroBuildLib)

CMake Error at CMake/ctkMacroGenerateMocs.cmake:30 (QT5_CREATE_MOC_COMMAND):
  QT5_CREATE_MOC_COMMAND Function invoked with incorrect arguments for
  function named: QT5_CREATE_MOC_COMMAND
Call Stack (most recent call first):
  CMake/ctkMacroBuildLib.cmake:121 (QT4_GENERATE_MOCS)
  Libs/Widgets/CMakeLists.txt:448 (ctkMacroBuildLib)

```

Does anyone know how to fix this error?

Thank you for your help  
Louis.

---

<div class="post-metadata">

**Author:** ![bpaniagua](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/bpaniagua/32/20_2.png) [@bpaniagua](https://discourse.slicer.org/u/bpaniagua)\
**Post date:** [August 15, 2019, 6:16pm UTC](https://discourse.slicer.org/t/error-while-building-slicersalt/7926/2 "2019-08-15T18:16:17Z")

</div>

Hi Louis,

On what OS are you building SALT?
