Hi MITK community,
 
I am struggeling with the latest changes of mitkBaseApplication.
I have restructured my application main to:
 
imgx_main.cpp:
...
mitk::BaseApplication my_app(argc, argv);
my_app.setApplicationName("ImageExplorer");
my_app.setOrganizationName("My Company");
QStringList preload_libs;
preload_libs << "liborg_mitk_gui_qt_ext";
preload_libs << "myCompany.infrastructure"; // a lib that needs to be preloaded
my_app.setPreloadLibraries(preload_libs);
my_app.setProperty(mitk::BaseApplication::PROP_PRODUCT, "com.mycompany.imageexplorer_app");
try {
    return my_app.run();
}
catch (std::exception& e) {
    std::cout << "error during start procedure: " << e.what();
    return false;
}
... plugin.xml listed below
 
 
I get the error that the product com.mycompany.imageexplorer_app is not found.
As I saw that there was a change in this direction adding intro binding to the product [1]. 
 
Debugging into the plugin loading mechanism showed that there is only one extension available which is the mitk workbench but not my custom applicat.
 
-> Could somebody point me to the place where the extension points are registered so I can debug why my app plugin isn't registered? I'm currently lost! ;)
Does anybody else have this problem?
 
By the way, I had to do a minor change to get preloading of multiple libraries to work. See bug [2] for further description.
 
 
Have a nice day everybody and many thanks for the great features of the new release,
Ingmar
 
 
[1] SHA from commit a1b251f34d53732cf4b3df3d7d5144cd5f91dd46
[2] http://bugs.mitk.org/show_bug.cgi?id=19140
 
 
 
---------------------------------
plugin.xml:
 
<?xml version="1.0" encoding="UTF-8"?>
<plugin>
  <extension point="org.blueberry.osgi.applications">
    <application id="com.mycompany.imageexplorer_app">
      <run class="ImgexApp_C"/>
    </application>
  </extension>
  <extension point="org.blueberry.ui.perspectives">
    <perspective
      id="com.mycompany.research_perspective"
      name="MyCompany Research"
      class="ResearchPerspective_C"
      icon="resources/research_perspective_icon.png">
    </perspective>
  </extension>
</plugin>
 
------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to