# Custom build Slicer failed

**URL:** <https://discourse.slicer.org/t/custom-build-slicer-failed/6523>\
**Category:** Development\
**Tags:** build\
**Created:** [April 17, 2019, 9:50am UTC](https://discourse.slicer.org/t/custom-build-slicer-failed/6523 "2019-04-17T09:50:00Z")\
**Posts on this page:** 1\
**Showing post:** 19

<div class="post-metadata">

**Author:** ![jhlegarreta](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jhlegarreta/32/66542_2.png) [@jhlegarreta](https://discourse.slicer.org/u/jhlegarreta)\
**Post date:** [July 30, 2023, 1:18am UTC](https://discourse.slicer.org/t/custom-build-slicer-failed/6523/19 "2023-07-30T01:18:30Z")

</div>

> [@jhlegarreta](#):
>
> Thus, I assume Python if necessary to build Slicer. Am I right?

Removing `-DSlicer_USE_PYTHONQT=OFF` made the build past that point, so Python is necessary to build Slicer.

Past that point I run into

```auto
CMake Error at Libs/vtkTeem/CMakeLists.txt:151 (vtkMacroKitPythonWrap):
  Unknown CMake command "vtkMacroKitPythonWrap".

```

at: [ENH: Add GitHub actions build, test workflow file for CI · jhlegarreta/SlicerDMRI@a20943a · GitHub](https://github.com/jhlegarreta/SlicerDMRI/actions/runs/5701134575/job/15451559662#step:6:43108)

Which was solved following:  
[Unknown CMake command "vtkMacroKitPythonWrap" in snapshot release for vtkTeem - #4 by cpinter](https://discourse.slicer.org/t/unknown-cmake-command-vtkmacrokitpythonwrap-in-snapshot-release-for-vtkteem/13838/4)

Slicer looks to be building now:  
[ENH: Add GitHub actions build, test workflow file for CI · jhlegarreta/SlicerDMRI@35e3b27 · GitHub](https://github.com/jhlegarreta/SlicerDMRI/actions/runs/5701565727/job/15452403081#step:6:1)

---

_[View the full topic](https://discourse.slicer.org/t/custom-build-slicer-failed/6523)._
