# How to package Slicer built with a loadable module?

**URL:** <https://discourse.slicer.org/t/how-to-package-slicer-built-with-a-loadable-module/44964>\
**Category:** Support\
**Tags:** package, loadable-module\
**Created:** [November 5, 2025, 5:27am UTC](https://discourse.slicer.org/t/how-to-package-slicer-built-with-a-loadable-module/44964 "2025-11-05T05:27:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Suhaim](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/suhaim/32/81421_2.png) [@Suhaim](https://discourse.slicer.org/u/Suhaim)\
**Post date:** [November 5, 2025, 5:27am UTC](https://discourse.slicer.org/t/how-to-package-slicer-built-with-a-loadable-module/44964/1 "2025-11-05T05:27:58Z")

</div>

Hi everyone,  
I am creating this post as a reference for anyone who was wondering on how to package slicer built with a custom loadable module. I was not able to find any documentation on this, please correct me if I am wrong.

---

<div class="post-metadata">

**Author:** ![Suhaim](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/suhaim/32/81421_2.png) [@Suhaim](https://discourse.slicer.org/u/Suhaim)\
**Post date:** [November 5, 2025, 5:35am UTC](https://discourse.slicer.org/t/how-to-package-slicer-built-with-a-loadable-module/44964/2 "2025-11-05T05:35:26Z")

</div>

There are a few steps to do this for **linux** (I only did this on linux) :-

1. Package slicer built from source as mentioned in the [build instructions](https://slicer.readthedocs.io/en/latest/developer_guide/build_instructions/index.html).

2. Extract the compressed file that was generated in some directory.

3. Inside the build directory containing slicer built with the loadable module, run

4. Extract the contents of the compressed file in another folder.

5. Merge the three folders of the packaged extension with the same folders inside entire packaged slicer.

The packaged slicer executable will now have your loadable module as well. You just included it’s headers and compiled binaries into the packaged slicer. Hope this was useful to someone. Please correct me if anything is wrong.
