[Insight-users] ITK in Paraview Plugin
Christian Werner
christian.werner at rwth-aachen.de
Wed Feb 24 13:38:06 EST 2010
Hello!
I wrote a nice VTK filter that incorporates ITK filters. It works fine
in a VTK-only environment. I was able to compile it as a ParaView plugin
but when I want to use it, I get an error messages which seems to
indicate some missing ITK library or something:
Attempting to load /home/christian/.paraview-plugins/libSampleImageFilter.so
> Failed to load the shared library.
> /home/christian/.paraview-plugins/libSampleImageFilter.so: undefined symbol:
> _ZN3itk11LightObject6DeleteEv
I attached my CMakeList.txt. There's no
TARGET_LINK_LIBRARIES(
ITKCommon ITKIO
vtkCommon vtkIO
)
or such in my CMakeList, but that does not seem to be a problem anyway.
Everthing is compiled and linked just fine.
Anyway, I tried
TARGET_LINK_LIBRARIES(
vtkITKImageBox #my library
ITKBasicFilters
)
or similar. But that turned into a cmake error:
CMake Error at CMakeLists.txt:16 (TARGET_LINK_LIBRARIES):
Cannot specify link libraries for target "vtkITKImageBox" which is not
built by this project.
whereas ommitting one of the above libraries, e.g. writing:
TARGET_LINK_LIBRARIES(
vtkITKImageBox
)
works just fine. On the other hand it seems to be totally unnecessary to
do anything like that, because always everything compiles just fine, as
long as cmake ran succesful. When I compile for VTK-only it won't
compile if I do not add my library that I actually need for this filter...
What do I have do write into my CMakeList??
Best regards,
Christian
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CMakeLists.txt
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100224/5fcbaf67/attachment.txt>
More information about the Insight-users
mailing list