# Slicer-SuperBuild-Debug

**URL:** <https://discourse.slicer.org/t/slicer-superbuild-debug/31148>\
**Category:** Support\
**Created:** [August 15, 2023, 9:18am UTC](https://discourse.slicer.org/t/slicer-superbuild-debug/31148 "2023-08-15T09:18:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kening\_Zhang](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/kening_zhang/32/65641_2.png) [@Kening\_Zhang](https://discourse.slicer.org/u/Kening_Zhang)\
**Post date:** [August 15, 2023, 9:18am UTC](https://discourse.slicer.org/t/slicer-superbuild-debug/31148/1 "2023-08-15T09:18:52Z")

</div>

```auto
$ mkdir MyExtension-debug
$ cd MyExtension-debug
$ cmake -DCMAKE_BUILD_TYPE:STRING=Debug -DSlicer_DIR:PATH=/path/to/Slicer-SuperBuild-Debug/Slicer-build ../MyExtension
$ make

```

Here I cannot find `Slicer-SuperBuild-Debug` in my Slicer package, I just downloaded Slicer before, should I build it? If so, is there some tutorial?  
Best wishes,  
Zhang Kening

---

<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 15, 2023, 4:32pm UTC](https://discourse.slicer.org/t/slicer-superbuild-debug/31148/2 "2023-08-15T16:32:59Z")

</div>

To build any extension with C++ code you need to also have built Slicer on your machine (not just downloaded a binary).

[https://slicer.readthedocs.io/en/latest/developer\_guide/build\_instructions/index.html](https://slicer.readthedocs.io/en/latest/developer_guide/build_instructions/index.html)

---

<div class="post-metadata">

**Author:** ![Kening\_Zhang](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/kening_zhang/32/65641_2.png) [@Kening\_Zhang](https://discourse.slicer.org/u/Kening_Zhang)\
**Post date:** [August 15, 2023, 6:26pm UTC](https://discourse.slicer.org/t/slicer-superbuild-debug/31148/3 "2023-08-15T18:26:03Z")

</div>

Sorry I only use Python to form my extension, does that means I also nedd C++?

---

<div class="post-metadata">

**Author:** ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Post date:** [August 15, 2023, 8:33pm UTC](https://discourse.slicer.org/t/slicer-superbuild-debug/31148/4 "2023-08-15T20:33:12Z")

</div>

> Sorry I only use Python to form my extension, does that means I also nedd C++?

To elaborate on @pieper answer, it is not required to build Slicer if you intend to only write a Slicer module using Python.

Reading the [Extensions / Create an extension](https://slicer.readthedocs.io/en/latest/developer_guide/extensions.html#extensions) page should be informative.

It will lead you to use the [ExtensionWizard](https://slicer.readthedocs.io/en/latest/user_guide/modules/extensionwizard.html#extension-wizard) available in the Slicer package you download from [https://download.slicer.org](https://download.slicer.org)

When adding a module, simply select `scripted` and start developing 🚀

---

<div class="post-metadata">

**Author:** ![Kening\_Zhang](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/kening_zhang/32/65641_2.png) [@Kening\_Zhang](https://discourse.slicer.org/u/Kening_Zhang)\
**Post date:** [August 15, 2023, 8:38pm UTC](https://discourse.slicer.org/t/slicer-superbuild-debug/31148/5 "2023-08-15T20:38:07Z")

</div>

I already use Wizard to create a extension, but now I want to try it by extension manager, may be try it offline first, which step I should move to confuses me a lot. Thank u very much.
