[vtkusers] Building vtk underUbuntu 11.04 (Natty Narwhal)

Andrew Maclean andrew.amaclean at gmail.com
Sat Apr 30 18:06:41 EDT 2011


Hi David,
The value of OPENGL_gl_LIBRARY is: /usr/lib/libGL.so

Looking at the system:
ls -l /usr/lib/libGL.so
lrwxrwxrwx 1 root root 13 2011-04-29 09:14 /usr/lib/libGL.so ->
mesa/libGL.so

ls -l /usr/lib/mesa
total 496
-rw-r--r-- 1 root root     30 2011-04-19 20:49 ld.so.conf
lrwxrwxrwx 1 root root     10 2011-04-29 09:14 libGL.so -> libGL.so.1
lrwxrwxrwx 1 root root     12 2011-04-29 09:14 libGL.so.1 -> libGL.so.1.2
-rw-r--r-- 1 root root 502016 2011-04-19 20:50 libGL.so.1.2

ls -l /usr/lib/libGLU.so
lrwxrwxrwx 1 root root 11 2011-04-29 09:15 /usr/lib/libGLU.so -> libGLU.so.1

However the variable: VTK_OPENGL_HAS_OSMESA is ON which means that
neither  OPENGL_gl_LIBRARY nor MangledMesa were found according to the help.
Switching this off has no effect. In fact when CMake runs again it is
switched on.

Regards
   Andrew

On Sun, May 1, 2011 at 2:56 AM, David Gobbi <david.gobbi at gmail.com> wrote:

> Hi Andrew,
>
> I'd guess that CMake is unable to configure itself properly on natty.
> In Rendering/CMakeLists.txt, there is this rule for vtkXOpenGLRenderWindow:
>
>    IF (VTK_USE_X AND OPENGL_gl_LIBRARY)
>      SET(KitOpenGL_SRCS ${KitOpenGL_SRCS} vtkXOpenGLRenderWindow.cxx)
>      SET (KIT_LIBS ${KIT_LIBS} ${OPENGL_gl_LIBRARY} )
>    ELSE (VTK_USE_X AND OPENGL_gl_LIBRARY)
>
> and later there is this rule for Tcl + X11:
>
>  IF(VTK_USE_X)
>    SET(KitTCL_SRCS ${KitTCL_SRCS} vtkXRenderWindowTclInteractor.cxx)
>    SET(KIT_TCL_LIBS ${KIT_TCL_LIBS} ${X11_LIBRARIES})
>  ENDIF(VTK_USE_X)
>
> What is the value of OPENGL_gl_LIBRARY in your CMakeCache.txt?
>
>  - David
>
>
> On Sat, Apr 30, 2011 at 1:28 AM, Andrew Maclean
> <andrew.amaclean at gmail.com> wrote:
> > I just transitioned my Ubuntu installation 11.04 (Natty Narwhal):
> >
> > And I get the following error:
> > [ 95%] Built target vtkChartsTCL
> > Linking CXX executable ../../bin/vtk
> > ../../bin/libvtkRenderingTCL.so.5.9.0: undefined reference to
> > `vtkXOpenGLRenderWindow::SetDisplayId(_XDisplay*)'
> > ../../bin/libvtkRenderingTCL.so.5.9.0: undefined reference to
> > `vtkXOpenGLRenderWindow::SetParentId(unsigned long)'
> > ../../bin/libvtkRenderingTCL.so.5.9.0: undefined reference to
> > `vtkXOpenGLRenderWindow::GetWindowId()'
> > collect2: ld returned 1 exit status
> > when building VTK.
> > This was sucessfuly building under Ubuntu 10.10 (Maverick Meerkat).
> > As far as I can see I have all the needed libraries.
> > Any ideas?
> > Of course there may be a related issue in ParaView:
> > [ 44%] Built target XdmfTestHDFRoundtrip
> > Linking CXX executable ../../../../../bin/XdmfTestVTKIO
> > ../../../../../bin/libvtkXdmf.so: undefined reference to `typeinfo for
> > vtkXRenderWindowInteractor'
> > ../../../../../bin/libvtkXdmf.so: undefined reference to
> > `vtkXRenderWindowInteractor::~vtkXRenderWindowInteractor()'
> > ../../../../../bin/libvtkXdmf.so: undefined reference to
> > `vtkXRenderWindowInteractor::PrintSelf(std::basic_ostream<char,
> > std::char_traits<char> >&, vtkIndent)'
> > ....
> > Regards
> >    Andrew
> > --
> > ___________________________________________
> > Andrew J. P. Maclean
> > Australian Centre for Field Robotics (ACFR)
> > The Rose Street Building J04
> > The University of Sydney  2006  NSW
> > AUSTRALIA
> > Ph: +61 2 9351 3283
> > Fax: +61 2 9351 7474
> > URL: http://www.acfr.usyd.edu.au/
> > ___________________________________________
>



-- 
___________________________________________
Andrew J. P. Maclean
Australian Centre for Field Robotics (ACFR)
The Rose Street Building J04
The University of Sydney  2006  NSW
AUSTRALIA
Ph: +61 2 9351 3283
Fax: +61 2 9351 7474
URL: http://www.acfr.usyd.edu.au/
___________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110501/94825ddb/attachment.htm>


More information about the vtkusers mailing list