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.
There are a few steps to do this for linux(I only did this on linux) :-
-
Package slicer built from source as mentioned in the build instructions.
-
Extract the compressed file that was generated in some directory.
-
Inside the build directory containing slicer built with the loadable module, run
make package -
Extract the contents of the compressed file in another folder.
- On linux, three folders will be generate for the packaged extension(include, lib, share).
-
Merge the three folders of the packaged extension with the same folders inside entire packaged slicer.
- Merge the extension’s include, lib, share with the directories of same name but inside packaged slicer’s directory.
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.
1 Like