<div dir="ltr">Hi Aaron, <div><br></div><div style>What about using directly the variable VTK_LIBRARIES.</div><div style><br></div><div style>Instead of:</div><div style><br></div><div style><div style="font-size:14.399999618530273px">

<font face="courier new, monospace">find_package(VTK REQUIRED)</font></div><div style="font-size:14.399999618530273px"><font face="courier new, monospace">include(${VTK_USE_FILE})</font></div><div style="font-size:14.399999618530273px">

<font face="courier new, monospace">set(LIBS ${LIBS} QVTKWidgetPlugin vtkRenderingFreeTypeOpenGL vtkRenderingVolumeOpenGL vtkInteractionStyle vtkChartsCore )</font></div><div style="font-family:Calibri,sans-serif;font-size:14.399999618530273px">

<br></div><div style="font-family:Calibri,sans-serif;font-size:14.399999618530273px">try:</div><div style="font-family:Calibri,sans-serif;font-size:14.399999618530273px"><br></div><div style="font-size:14.399999618530273px">

<div><font face="courier new, monospace">find_package(VTK REQUIRED)</font></div><div><font face="courier new, monospace">include(${VTK_USE_FILE})</font></div><div><font face="courier new, monospace">list(APPEND LIBS ${VTK_LIBRARIES})</font></div>

<div><font face="courier new, monospace"><br></font></div><div style><div style="font-family:Calibri,sans-serif">Hth</div><div style="font-family:Calibri,sans-serif">Jc</div></div></div></div></div><div class="gmail_extra">

<br><br><div class="gmail_quote">On Thu, Jan 24, 2013 at 2:51 PM, Aaron Knoll <span dir="ltr"><<a href="mailto:knolla@tacc.utexas.edu" target="_blank">knolla@tacc.utexas.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word">
<div>
<div>This is odd, and I suspect it has to do with some Cmake settings. </div>
<div><br>
</div>
<div>I'm compiling a project that depends on QVTKWidgetPlugin. In CMakeLists I have the following:</div>
<div><br>
</div>
<div>
<div>find_package(VTK REQUIRED)</div>
<div>include(${VTK_USE_FILE})</div>
<div>set(LIBS ${LIBS} QVTKWidgetPlugin vtkRenderingFreeTypeOpenGL vtkRenderingVolumeOpenGL vtkInteractionStyle vtkChartsCore )</div>
</div>
<div><br>
</div>
<div>ld: library not found for -lQVTKWidgetPlugin</div>
<div>clang: error: linker command failed with exit code 1 (use -v to see invocation)</div>
</div>
<div><br>
</div>
<div>The only difference I've noticed is in VTK/lib, all other libraries have version numbering, e.g.</div>
<div><br>
</div>
<div>
<div>libvtkzlib-6.0.1.dylib</div>
<div>libvtkzlib-6.0.dylib</div>
</div>
<div><br>
</div>
<div>And QVTKWidgetPlugin does not:</div>
<div><br>
</div>
<div>libQVTKWidgetPlugin.dylib</div>
<div><br>
</div>
<div>But even when I manually create symbolic links, linking fails with exactly the same error!</div>
<div><br>
</div>
<div>Any ideas? Thanks!</div><span class="HOEnZb"><font color="#888888">
<div><br>
</div>
<div>-Aaron</div>
</font></span></div>

<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>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>+1 919 869 8849<br>
</div>