[vtkusers] libraries VTK 6.X +

Marc-Michel Rohé marc-michel.rohe at inria.fr
Wed Oct 12 11:40:29 EDT 2016


Hello,

I am working on a project which was initially built using VTK 5.X with 
the following command using CMake:

   FIND_PACKAGE(VTK)
   IF(VTK_FOUND)
     INCLUDE(${VTK_USE_FILE})
   ELSE(VTK_FOUND)
     MESSAGE(FATAL_ERROR "VTK not found. Please set VTK_DIR.")
   ENDIF(VTK_FOUND)

TARGET_LINK_LIBRARIES(project
     vtkCommon
     vtkFiltering
     vtkGraphics
     vtkIO
)

I tried to now use VTK6.X version for the code but it seems that the 
libraries libvtkFiltering.so, libvtkCommon.so, libvtkIO.so, 
libvtkGraphics.so are not built anymore in the VTK folders bin so that 
when I try to compile my projects I get the error:

[ 32%] Linking CXX shared library ../../../lib/libproject.so
/usr/bin/ld: cannot find -lvtkCommon
/usr/bin/ld: cannot find -lvtkFiltering
/usr/bin/ld: cannot find -lvtkGraphics
/usr/bin/ld: cannot find -lvtkIO

Is there a special option to check during the VTK compilation so that I 
get these libraries ? I used the same option that for VTK 5.X so I don't 
understand...

Thx




More information about the vtkusers mailing list