Fork me on GitHub
Welcome, Guest
Username: Password: Remember me

TOPIC: Plugins loading OK but they does not work

Plugins loading OK but they does not work 6 years 4 months ago #219

  • JZheng
  • JZheng's Avatar
To whom it may concern,

I have successfully compiled a 64 bit MedInria 2.0 and all related plugins from the source code on a PC with Windows 7 using Visual Studio 2010. The application can be run without problem at beginning and can load almost all plugins except two plugins that I have compiled. More specifically, the application successfully loads following plugins:
  • ITKProcessExamplePlugin 2.0.0
  • exampleProcessImageFilterPlugin
  • itkDataDiffusionGradientListPlugin 2.0.0
  • itkDataImagePlugin 2.0.0
  • itkDataImageReaderPlugin 2.0.1
  • itkDataImageWriterPlugin 2.0.1
  • itkDataTensorImagePlugin 2.0.0
  • itkDataTensorImageReaderPlugin 2.0.0
  • itkDataTensorImageWriterPlugin 2.0.0
  • itkFiltersPlugin
  • itkProcessRegistrationDiffeomorphicDemonsPlugin 2.0.1
  • medCompositeDataSetsPlugin
  • mseg::Plugin 2.0.0
  • undoRedoRegistrationPlugin 2.0.1
  • v3dDataPlugin 2.0.0
  • v3dViewPlugin 2.0.1
  • vtkDataMeshPlugin 2.0.0
  • vtkDataMeshReaderPlugin 2.0.0
  • vtkDataMeshWriterPlugin 2.0.0

The two plugins that the application fails to load are:

  • qtdcmDataSourcePlugin.dll
  • itkDCMTKDataImageReaderPlugin.dll

Furthermore, when I checked the loaded types,

Under Category "Data", I only found "mset::medSeedPointAnnotationData"
Under Category "Processeses", none is found
Under Category "Readers", none is found
Under Category "Views", none is found
Under Category "Writers", none is found

Although the application runs normally at beginning, I cannot load any data with this application. When I try to open a Meta image, I got following error messages from the console:

DEBUG : entering medMainWindow::load
medDatabaseNonPersistentImporter created with uuid: "{ea4835df-b9e0-4beb-8323-3093d57fa3a8}"
No suitable reader found for file: "D:/myData/data.nii" . Unable to import!
Reader was unable to read: "D:/myData/data.nii"

Could someone tell me what is the problem and how I can fix it in order to load data successfully?

Your kind help will be highly appreciated.

Best,
John Zheng

ps: to help you diagnose the problem, I attached two screenshots about the loaded plugins and the loaded types.
Attachments:
The administrator has disabled public write access.

Re: Plugins loading OK but they does not work 6 years 4 months ago #223

  • HFadil
  • HFadil's Avatar
Hi,

Sorry for the late reply.

An update of the superBuild has been done. You need to git pull and then you should be able to load the qtdcm plugin after configuration of your superbuild via cmake.

As for the other issue, I will look into it.

Did all the dependencies compile with 0 error ?

Furthermore, can you please paste the output of the visual studio console when the plugin are being loaded ?

Best regards,

Hakim
Last Edit: 6 years 4 months ago by HFadil.
The administrator has disabled public write access.

Re: Plugins loading OK but they do not work 6 years 4 months ago #224

  • JZheng
  • JZheng's Avatar
Dear Hakim,

Thanks a lot for your reply.

Following your suggestion, I re-clone the complete project. Now I can successfully compile the complete project and all plugins that I have compiled seem to work with some minor changes.

One of the change that I made is to "plugin()" function of the class "medFilteringAbstractToolBox".

I have to change it from (in the head file of the class)

virtual dtkPlugin* plugin() = 0;

to

virtual dtkPlugin* plugin() { return NULL; }

Otherwise I cannot complete the project successfully. The compiler keeps telling me that this is an abstract class and no object is allowed to be instantiated. Is this a bug?

Best,
John
The administrator has disabled public write access.

Re: Plugins loading OK but they do not work 6 years 4 months ago #225

  • HFadil
  • HFadil's Avatar
Hi,

I am currently working with the same version of medinria, and I dont have this compilation error.
In order to understand the problem, could you please paste the log ?

Best regards,

Hakim
Last Edit: 6 years 4 months ago by HFadil.
The administrator has disabled public write access.

Re: Plugins loading OK but they do not work 6 years 4 months ago #226

  • JZheng
  • JZheng's Avatar
Here are the error message during the compilation:

D:/medinria-superproject/medInria/src/medGui/factories\medToolBoxFactory.h(142): error C2259: 'ITKProcessExampleToolBox' : cannot instantiate abstract class
due to following members:
'dtkPlugin *medFilteringAbstractToolBox::plugin(void)' : is abstract
D:/medinria-superproject/medInria/src/medGui/toolboxes\medFilteringAbstractToolBox.h(35) : see declaration of 'medFilteringAbstractToolBox::plugin'
D:/medinria-superproject/medInria/src/medGui/factories\medToolBoxFactory.h(77) : see reference to function template instantiation 'medToolBox *medToolBoxFactory::create<toolboxType>(QWidget *)' being compiled
with
[
toolboxType=ITKProcessExampleToolBox
]
..\..\..\medInria\src-plugins\ITKProcessExample\ITKProcessExampleToolBox.cpp(105) : see reference to function template instantiation 'bool medToolBoxFactory::registerToolBox<ITKProcessExampleToolBox>(QString,QString,QString,QStringList)' being compiled


I hope that above error message will help you to fix the problem.

Best,
John
The administrator has disabled public write access.

Re: Plugins loading OK but they do not work 6 years 4 months ago #227

  • rdebroiz
  • rdebroiz's Avatar
Hello John,

Indeed this is a bug from our side, we will correct it ASAP. Thank you for your feedback.
Meanwhile you can keep your patch, it will not interfer with the application, or you can just not compile the example plugins.

Thank you for your interest.
René-paul, for the medInria team.
The administrator has disabled public write access.
Time to create page: 0.160 seconds