Admin Uniapp
2017-03-07 17:30:39 UTC
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
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