Module build type

Hello all.
I built my module by extension wizard in build type : debug of Slicer Master(S4D).
and I added my moudle(moduel build type:debug) (in S4D) and checked moudle done well.
but I coudn’t add my module to Slicer Release type so I tried to build my moudle for Release and build(release) is failed…
I want to add my module to stable released Slicer app , and when I’m making my module, I want to debug my module.
How Can I to do for this issue??

Binaries built in debug mode are incompatible with binaries build in release mode. You need to build Slicer and your module in the same mode.

There can be other incompatibilities (compilation flags, build options, C runtime library differences, etc.) between binaries built on different computers, so in general you cannot expect that the module that you build on your own computer will be compatible with the Slicer application built on the official Slicer build machines. Therefore, the recommended, officially supported options are:

  1. Build and package Slicer application and all extensions yourself. You can create a custom application (with custom name, logo, etc.). Bundling all extensions into your custom Slicer package is recommended because you probably don’t want to set up your own extension server.
  2. Use Slicer’s extension manager to distribute your extension.

Thansk you @lassoan for reply :slight_smile:
I understand your comment!
If I want to add my moudle to Commercial Slicer(usually download Slicer.exe) , I have to build a Release version of Slicer.
So I’ve decided to build and make in Release.

What I understand is that there is no problem with making my module based on the result of Slicer’s Segmentation Module (requires the Segmentato function). Is this right?

When you work on creating my module in a release environment, how do you debug?
I think of a way to use breakpoint without using debug option.

Thanks for your reading!

You often use a debug-mode build during development. When you are done with the debugging or want to test the application at full speed or distribute it to users then you build in release mode.

Most likely you don’t actually need to modify the Segmentations module. Customizing the Segment Editor module (clone it an make it more convenient for your use case) makes sense.

Thanks for reply! :slight_smile:

Okay I often build in debug type and when I want to test or distribute, I will work in release type!!


1 Like