# Packaging error for custom markups module

**URL:** <https://discourse.slicer.org/t/packaging-error-for-custom-markups-module/23523>\
**Category:** Development\
**Created:** [May 22, 2022, 9:39am UTC](https://discourse.slicer.org/t/packaging-error-for-custom-markups-module/23523 "2022-05-22T09:39:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Post date:** [May 22, 2022, 9:39am UTC](https://discourse.slicer.org/t/packaging-error-for-custom-markups-module/23523/1 "2022-05-22T09:39:51Z")

</div>

Hi,

One library is missing during packaging while building a custom markups module, which fails to show when installed with the extensions manager pointing to a local \*.gz package.

The build directory _lib/Slicer-5.1/qt-loadable-modules/_ contains 9 files, while only 8 files are included in the _lib/Slicer-5.1/qt-loadable-modules/_ directory of the package.

The missing library is _libqSlicer${MODULE\_NAME}Module.so_.

I can manage using --additional-module-paths pointing to the build tree. Reporting as I suppose it may need a fix.

Thank you.

---

<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:** [May 23, 2022, 2:57am UTC](https://discourse.slicer.org/t/packaging-error-for-custom-markups-module/23523/2 "2022-05-23T02:57:00Z")

</div>

Please compare your code to how a custom NURBS surface markup is implemented in the [SurfaceMarkup extension](https://github.com/SlicerHeart/SlicerSurfaceMarkup). For example, make sure you remove `NO_INSTALL` from the CMakeLists.txt.

---

<div class="post-metadata">

**Author:** ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Post date:** [May 23, 2022, 7:45am UTC](https://discourse.slicer.org/t/packaging-error-for-custom-markups-module/23523/3 "2022-05-23T07:45:39Z")

</div>

> [@lassoan](#):
>
> remove `NO_INSTALL` from the CMakeLists.txt

Yes this solves the issue.

I had a quick glance at the SurfaceMarkup extension, I noted that the NURBS algorithm allows to create concave surfaces in particular. This is highly interesting, and I’m wondering if something similar can be achieved with a tube or a sphere primitive, rather than a plane. I’ll delve into that as time permits.

Thank you very much.

P.S : I could not find a way to change the title of this discussion, it’s obviously not a packaging error.
