[vtkusers] Problem compiling with VTK on Ubuntu 11.10

David E DeMarle dave.demarle at kitware.com
Thu Mar 8 08:45:14 EST 2012


That message is saying that the ProvaReadPly project requires the openGL
library, which it expects to find in /usr/lib/libGL.so, and that it isn't
there.

Where does your VTK build think it is? grep GL ${YOURVTKBUILD}/CMakeCache
to find out.
Where does your ProvaReadPly build think it is?

You may be able to set ProvaReadPly'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.

David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909


On Tue, Mar 6, 2012 at 4:01 AM, capagira87 <nacci.gaetano at alice.it> wrote:

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


More information about the vtkusers mailing list