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 &quot;#&quot;), unless you&#39;re doing it somewhere else in your CMakeLists.txt file that you didn&#39;t copy here. If the code to find the vtkIO library is there, is it set to the correct value when you run CMake?<br>
<br>- Amy<br><br><div class="gmail_quote">On Tue, Feb 17, 2009 at 3:24 PM, Yixun Liu <span dir="ltr">&lt;<a href="mailto:enjoywm@cs.wm.edu">enjoywm@cs.wm.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
I developed an application based on VTK. The CMakelist file is like the<br>
following,<br>
<br>
#FIND_PACKAGE(VTK REQUIRED)<br>
#INCLUDE(${VTK_USE_FILE})<br>
<br>
...<br>
<br>
 &nbsp;TARGET_LINK_LIBRARIES(TetrahedrisationNG<br>
 &nbsp; &nbsp;Basics<br>
 &nbsp; &nbsp;Graphics2DNG<br>
 &nbsp; &nbsp;Graphics3DNG<br>
 &nbsp; &nbsp;vtkIO<br>
 &nbsp; &nbsp;vtkCommon<br>
 &nbsp; &nbsp; &nbsp; &nbsp;)<br>
<br>
The error is<br>
/usr/lib64/gcc/x86_64-suse-linux/4.2.1/../../../../x86_64-suse-linux/bin/ld:<br>
cannot find -lvtkIO<br>
<br>
Thanks.<br>
<br>
Yixun<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br>