# .s4ext File gerenation problem

**URL:** <https://discourse.slicer.org/t/s4ext-file-gerenation-problem/13511>\
**Category:** Development\
**Tags:** extensions-manager, python\
**Created:** [September 16, 2020, 9:15pm UTC](https://discourse.slicer.org/t/s4ext-file-gerenation-problem/13511 "2020-09-16T21:15:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Viniciuscob](https://avatars.discourse-cdn.com/v4/letter/v/e0b2c6/32.png) [@Viniciuscob](https://discourse.slicer.org/u/Viniciuscob)\
**Post date:** [September 16, 2020, 9:15pm UTC](https://discourse.slicer.org/t/s4ext-file-gerenation-problem/13511/1 "2020-09-16T21:15:30Z")

</div>

Hello,

My extension has already been submitted on github. Now, we just need to update the .s4ext file on Slicer github. However, we are having a hard time in this .s4ext file step. Searching the discussion forum, i found this:

> [@ExtensionWizard not uploading my extension](https://discourse.slicer.org/t/extensionwizard-not-uploading-my-extension/829/15):
>
> @moselhy You can find it in the build tree. For example: $ git clone https://github.com/moselhy/SequenceRegistration $ mkdir SequenceRegistration-build $ cd SequenceRegistration-build/ $ cmake -DCMAKE\_BUILD\_TYPE:STRING=Release -DSlicer\_DIR:PATH=/home/jcfr/Projects/Slicer-2-build/Slicer-build/ ../SequenceRegistration $ make -j6 [...] -- Configuring Scripted module: Elastix4D -- Extension description has been written to: /tmp/SequenceRegistration-build/SequenceRegistration.s4ext \<------------…

The s4ext file is already generated, but is it not shown in the directory and this code will “find” it and provide me the file, or will this code generated the s4ext file from the CMakeLists?

Either way, i was able to run until the third command line of this code but something went wrong with the “cmake” command (fourth line). The GitBash is accessing the right folder but it is not finding the CMakeLists file or it is just accessing the wrong folder for some reason.

We don’t have much experience with GitHub, so it is being complicated to solve this…

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [September 17, 2020, 1:58am UTC](https://discourse.slicer.org/t/s4ext-file-gerenation-problem/13511/2 "2020-09-17T01:58:46Z")

</div>

Automatic generation of s4ext file requires you to build Slicer. If you just created Python scripted modules then it is easier to create a .s4ext file using a text editor. You can use [.s4ext files of existing extensions](https://github.com/Slicer/ExtensionsIndex/) as examples.
