<div dir="ltr">Hi Marc-Michel,<div><br></div><div>VTK 6 libraries changed substantially from VTK 5 with a finer-grained modularization of classes into a larger number of libraries. The easiest solution is to change</div><div><br></div><div><span style="font-size:12.8px">TARGET_LINK_LIBRARIES(project</span><br style="font-size:12.8px"><span style="font-size:12.8px">    vtkCommon</span><br style="font-size:12.8px"><span style="font-size:12.8px">    vtkFiltering</span><br style="font-size:12.8px"><span style="font-size:12.8px">    vtkGraphics</span><br style="font-size:12.8px"><span style="font-size:12.8px">    vtkIO</span><br style="font-size:12.8px"><span style="font-size:12.8px">)</span><br></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">to</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">TARGET_LINK_LIBRARIES(${VTK_LIBRARIES})</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">HTH,</span></div><div><span style="font-size:12.8px">Cory</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 12, 2016 at 11:40 AM, Marc-Michel Rohé <span dir="ltr"><<a href="mailto:marc-michel.rohe@inria.fr" target="_blank">marc-michel.rohe@inria.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I am working on a project which was initially built using VTK 5.X with the following command using CMake:<br>
<br>
  FIND_PACKAGE(VTK)<br>
  IF(VTK_FOUND)<br>
    INCLUDE(${VTK_USE_FILE})<br>
  ELSE(VTK_FOUND)<br>
    MESSAGE(FATAL_ERROR "VTK not found. Please set VTK_DIR.")<br>
  ENDIF(VTK_FOUND)<br>
<br>
TARGET_LINK_LIBRARIES(project<br>
    vtkCommon<br>
    vtkFiltering<br>
    vtkGraphics<br>
    vtkIO<br>
)<br>
<br>
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:<br>
<br>
[ 32%] Linking CXX shared library ../../../lib/libproject.so<br>
/usr/bin/ld: cannot find -lvtkCommon<br>
/usr/bin/ld: cannot find -lvtkFiltering<br>
/usr/bin/ld: cannot find -lvtkGraphics<br>
/usr/bin/ld: cannot find -lvtkIO<br>
<br>
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...<br>
<br>
Thx<br>
<br>
<br>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensou<wbr>rce/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" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FA<wbr>Q</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/vtkusers</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Cory Quammen<br>Staff R&D Engineer<br>Kitware, Inc.</div>
</div>