Page MenuHomePhabricator

Embed interaction xml files in a plugin: working example missing
Closed, WontfixPublic

Description

As interactions are often related to the UI it should be possible to use the interaction xml files in a plugin. Unfortunately there is no working example in MITK for this use case at the moment (only modules are using the interaction XML files). Some documentation on using a special macro to embed xml files in a plugin can be found here:

https://www.mail-archive.com/mitk-users@lists.sourceforge.net/msg05238.html

http://mitk.org/wiki/MITK_ReleaseNotes_2014.10#Breaking_Changes

... however I didn't get it working until now in my plugin where it formerly worked with this code in the Files.cmake:

usFunctionEmbedResources(CPP_FILES

LIBRARY_NAME "liborg_mbi_gui_qt_usnavigation"
ROOT_DIR resources
FILES Interactions/USPointMarkInteractions.xml
      Interactions/USZoneInteractions.xml
      Interactions/USZoneInteractionsHold.xml

)

... adapted this macro this way:

usFunctionAddResources(TARGET USNavigationPlugin

MODULE_NAME liborg_mitk_gui_qt_usnavigation
WORKING_DIRECTORY resources
FILES Interactions/USPointMarkInteractions.xml
      Interactions/USZoneInteractions.xml
      Interactions/USZoneInteractionsHold.xml

)

and moved it to the CMakeLists.txt. However, the plugin is not loaded at runtime because the xml files are missing.

Event Timeline

kislinsk claimed this task.
kislinsk added a subscriber: kislinsk.
This task was automatically closed because it wasn't updated at least since July 2016 (over 2 years). Please re-open this task if you think that it is still relevant. This most probably means that you will resolve it.