# 3D slicer build error

**URL:** <https://discourse.slicer.org/t/3d-slicer-build-error/28447>\
**Category:** Development\
**Created:** [March 19, 2023, 12:01pm UTC](https://discourse.slicer.org/t/3d-slicer-build-error/28447 "2023-03-19T12:01:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anjalimukundan](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@Anjalimukundan](https://discourse.slicer.org/u/Anjalimukundan)\
**Post date:** [March 19, 2023, 12:01pm UTC](https://discourse.slicer.org/t/3d-slicer-build-error/28447/1 "2023-03-19T12:01:53Z")

</div>

Hello Everyone,

I am trying to use slicer modules any create an application.

The compilation of the slicer is done, but I am unable to find the installed folder for header, lib and dll files.

Can we use the slicer modules as library and build a separate application?

Any suggestion will be appreciated.

Regards,  
Anjali

---

<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:** [March 19, 2023, 5:08pm UTC](https://discourse.slicer.org/t/3d-slicer-build-error/28447/2 "2023-03-19T17:08:39Z")

</div>

You can use the built code from the slicer source to build new libraries and even full executables and applications. This is essentially what the Extension build system does so just using CMake you should be able to add anything you need.

Another option could be to create a custom application [as discussed here](https://discourse.slicer.org/t/creating-a-custom-3d-slicer/21245).

---

<div class="post-metadata">

**Author:** ![Anjalimukundan](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@Anjalimukundan](https://discourse.slicer.org/u/Anjalimukundan)\
**Post date:** [March 26, 2023, 7:51am UTC](https://discourse.slicer.org/t/3d-slicer-build-error/28447/3 "2023-03-26T07:51:13Z")

</div>

Thank you for your kind reply, but I would like to know if there is any documentation regarding how to use the slicer files to create my own application.

---

<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:** [March 26, 2023, 1:35pm UTC](https://discourse.slicer.org/t/3d-slicer-build-error/28447/4 "2023-03-26T13:35:44Z")

</div>

You can use 3D Slicer files any way you want. You can copy whole files or code snippets, but of course we cannot help you with that. If you plan to reuse a major component of the application, such as using MRML as data model then we may be able to help (we are planning to gradually move out some Slicer core components to standalone packages that can be used in C++ and pip-installed in Python), but this requires quite significant software engineering effort on both your and our side.

The simplest, most efficient and least risky solution is build on the experience that we gathered during the past 20 years - by building your application by extending and customizing Slicer core. Slicer was designed for this purpose and several companies use this approach successfully for their product development. We even have a [template](https://github.com/KitwareMedical/SlicerCAT) that makes it easy to get started. It allows you to develop your extensions/customizations independently yet making possible to benefit from new Slicer core developments by separating your custom code from the application platform code.

---

<div class="post-metadata">

**Author:** ![Anjalimukundan](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@Anjalimukundan](https://discourse.slicer.org/u/Anjalimukundan)\
**Post date:** [April 10, 2023, 11:04am UTC](https://discourse.slicer.org/t/3d-slicer-build-error/28447/5 "2023-04-10T11:04:45Z")

</div>

Thank u for your reply . I was able to build successfully.
