[vtkusers] link error of vtk application

Yixun Liu enjoywm at cs.wm.edu
Tue Feb 17 16:24:32 EST 2009


Hi,
I developed an application based on VTK. The CMakelist file is like the
following,

#FIND_PACKAGE(VTK REQUIRED)
#INCLUDE(${VTK_USE_FILE})

...

  TARGET_LINK_LIBRARIES(TetrahedrisationNG
    Basics
    Graphics2DNG
    Graphics3DNG
    vtkIO
    vtkCommon
        )

The error is
/usr/lib64/gcc/x86_64-suse-linux/4.2.1/../../../../x86_64-suse-linux/bin/ld:
cannot find -lvtkIO

Thanks.

Yixun



More information about the vtkusers mailing list