Skip to content

Commit 5feaad9

Browse files
committed
BUG: Fix loading of module when built against Slicer 5.x and Qt 5.15
This commit fixes the following runtime error: Failed to extract plugin meta data from '/path/to/lib/Slicer-5.1/qt-loadable-modules/libqSlicerCameraPathModule.so' References: * https://www.slicer.org/wiki/Documentation/Nightly/Developers/Tutorials/MigrationGuide#Qt5:_Update_loadable_modules_to_use_new_plugin_macros * https://wiki.qt.io/Transition_from_Qt_4.x_to_Qt5#Plugin_loading
1 parent faf512a commit 5feaad9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Modules/Loadable/CameraPath/qSlicerCameraPathModule.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ qSlicerCameraPathModule
3131
: public qSlicerLoadableModule
3232
{
3333
Q_OBJECT
34+
Q_PLUGIN_METADATA(IID "org.slicer.modules.loadable.qSlicerLoadableModule/1.0");
3435
Q_INTERFACES(qSlicerLoadableModule);
3536

3637
public:

0 commit comments

Comments
 (0)