That message is saying that the ProvaReadPly project requires the openGL library, which it expects to find in <span style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">/usr/lib/libGL.so, and that it isn&#39;t there.</span><div>


<font color="#222222" face="arial, sans-serif"><span style="border-collapse:collapse"><br></span></font></div><div><font color="#222222" face="arial, sans-serif"><span style="border-collapse:collapse">Where does your VTK build think it is? </span></font><span style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif">grep GL ${YOURVTKBUILD}/CMakeCache to find out.</span></div>


<div><span style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif">Where does your ProvaReadPly build think it is?</span></div><div><font color="#222222" face="arial, sans-serif"><span style="border-collapse:collapse"><br>


</span></font></div><div><font color="#222222" face="arial, sans-serif"><span style="border-collapse:collapse">You may be able to set ProvaReadPly&#39;s to what VTK has and make it work. Or you may need to use synaptic to install GL on the machine first and point both builds to that first.</span></font></div>


<div><font color="#222222" face="arial, sans-serif"><span style="border-collapse:collapse"><br></span></font><div>David E DeMarle<br>Kitware, Inc.<br>R&amp;D Engineer<br>21 Corporate Drive<br>
Clifton Park, NY 12065-8662<br>Phone: <a href="tel:518-881-4909" value="+15188814909" target="_blank">518-881-4909</a><br>
<br><br><div class="gmail_quote">On Tue, Mar 6, 2012 at 4:01 AM, capagira87 <span dir="ltr">&lt;<a href="mailto:nacci.gaetano@alice.it" target="_blank">nacci.gaetano@alice.it</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


This is what is written in my CMakeLists.txt:<br>
<br>
cmake_minimum_required(VERSION 2.6)<br>
<br>
PROJECT(ProvaReadPly)<br>
<br>
find_package(VTK REQUIRED)<br>
include(${VTK_USE_FILE})<br>
<br>
<br>
add_executable(ProvaReadPly ProvaReadPly.cxx)<br>
<br>
if (VTK_LIBRARIES)<br>
target_link_libraries (ProvaReadPly (${VTK_LIBRARIES}))<br>
else ()<br>
target_link_libraries(ProvaReadPlY ITKBasicFilters ITKCommon ITKIO<br>
vtkRendering vtkGraphics vtkHybrid vtkImaging vtkIO vtkFiltering vtkCommon)<br>
endif ()<br>
<br>
Is there any problem for target_link_libraries?<br>
<br>
<br>
Bill Lorensen wrote<br>
<div>&gt;<br>
&gt; What does your CMakeLists.txt file look like?<br>
&gt;<br>
</div><div><div>&gt; On Mon, Mar 5, 2012 at 2:23 PM, capagira87 &amp;lt;nacci.gaetano@&amp;gt; wrote:<br>
&gt;&gt; Hi,<br>
&gt;&gt; i&#39;m just a newbie in Vtk. After having installed VTK on my laptop, which<br>
&gt;&gt; works with Ubuntu 11.10 - 32 bit, I had a problem, while I was compiling<br>
&gt;&gt; my<br>
&gt;&gt; code.<br>
&gt;&gt; After I typed the command* make *on my shell, I had this message of<br>
&gt;&gt; error:<br>
&gt;&gt;<br>
&gt;&gt; make[2]: *** No rule to make target `/usr/lib/libGL.so&#39;, needed by<br>
&gt;&gt; `ProvaReadPly&#39;.  Stop.<br>
&gt;&gt; make[1]: *** [CMakeFiles/ProvaReadPly.dir/all] Error 2<br>
&gt;&gt; make: *** [all] Error 2<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; How can I solve this problem?<br>
&gt;&gt;<br>
&gt;&gt; Regards<br>
&gt;&gt;<br>
&gt;&gt; Gaetano<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; View this message in context:<br>
&gt;&gt; <a href="http://vtk.1045678.n5.nabble.com/Problem-compiling-with-VTK-on-Ubuntu-11-10-tp5538591p5538591.html" target="_blank">http://vtk.1045678.n5.nabble.com/Problem-compiling-with-VTK-on-Ubuntu-11-10-tp5538591p5538591.html</a><br>



&gt;&gt; Sent from the VTK - Users mailing list archive at Nabble.com.<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;&gt;<br>
&gt;&gt; Visit other Kitware open-source projects at<br>
&gt;&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;&gt;<br>
&gt;&gt; Please keep messages on-topic and check the VTK FAQ at:<br>
&gt;&gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
&gt;&gt;<br>
&gt;&gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Unpaid intern in BillsBasement at noware dot com<br>
&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the VTK FAQ at:<br>
&gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt;<br>
<br>
--<br>
</div></div>View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Problem-compiling-with-VTK-on-Ubuntu-11-10-tp5538591p5540267.html" target="_blank">http://vtk.1045678.n5.nabble.com/Problem-compiling-with-VTK-on-Ubuntu-11-10-tp5538591p5540267.html</a><br>



<div><div>Sent from the VTK - Users mailing list archive at Nabble.com.<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>
</div></div></blockquote></div><br></div></div>