Hi Dora,

do you use the mitk_create_plugin() macro? - Then just add a PACKAGE_DEPENDS 
VMTK to the call. See other plugin CMakeLists.txt files for examples, like [1].


Best,
Stefan


[1] 
https://github.com/MITK/MITK/blob/master/Plugins/org.mitk.gui.qt.diffusionimaging/CMakeLists.txt#L7?


________________________________
Von: Admin Uniapp <[email protected]>
Gesendet: Dienstag, 7. März 2017 18:30
An: MITK
Betreff: [mitk-users] add VMTK to project

Dear all,

I managed to change the MITK cmakes to include VMTK in the build directory, and 
rebuild MITK. It all turned out to be OK and compiled fine. I then tried to use 
the VMTK headers in my custom plugin, the headers can be included and are found 
fine but as soons as I try to use them I can't compile my project anymore. For 
example:


// VMTK

#include <vmtk/vtkvmtkPolyDataCenterlines.h>


vtkSmartPointer<vtkvmtkPolyDataCenterlines> ctrLine = 
vtkSmartPointer<vtkvmtkPolyDataCenterlines>::New();


This would give me:


error: undefined reference to `vtkvmtkPolyDataCenterlines::New()'


at build time. I checked the ep directory and I can see vmtk libraries have 
been built but I think

there is a linking problem between ep of MITK and my plugin.


This is driving me crazy :) any help is highly appreciated.


Many thanks

Dora

------------------------------------------------------------------------------
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to