[vtkusers] link error of vtk application

Amy Squillacote amylists at gmail.com
Thu Feb 19 13:39:02 EST 2009


Do you have code in your CMakeLists.txt file to find the vtkIO library? It
looks like the code to do that is commented out (using "#"), unless you're
doing it somewhere else in your CMakeLists.txt file that you didn't copy
here. If the code to find the vtkIO library is there, is it set to the
correct value when you run CMake?

- Amy

On Tue, Feb 17, 2009 at 3:24 PM, Yixun Liu <enjoywm at cs.wm.edu> wrote:

> 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
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090219/eb88ca39/attachment.htm>


More information about the vtkusers mailing list