<div>Hi David,</div>The value of <meta http-equiv="content-type" content="text/html; charset=utf-8">OPENGL_gl_LIBRARY is: /usr/lib/libGL.so<div><br></div><div>Looking at the system: </div><div><div>ls -l /usr/lib/libGL.so</div>
<div>lrwxrwxrwx 1 root root 13 2011-04-29 09:14 /usr/lib/libGL.so -> mesa/libGL.so</div><div><div><br></div><div>ls -l /usr/lib/mesa</div><div>total 496</div><div>-rw-r--r-- 1 root root 30 2011-04-19 20:49 ld.so.conf</div>
<div>lrwxrwxrwx 1 root root 10 2011-04-29 09:14 libGL.so -> libGL.so.1</div><div>lrwxrwxrwx 1 root root 12 2011-04-29 09:14 libGL.so.1 -> libGL.so.1.2</div><div>-rw-r--r-- 1 root root 502016 2011-04-19 20:50 libGL.so.1.2</div>
</div><div><br></div><div><div>ls -l /usr/lib/libGLU.so</div><div>lrwxrwxrwx 1 root root 11 2011-04-29 09:15 /usr/lib/libGLU.so -> libGLU.so.1</div></div><div><br></div><div>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.</div>
<div><br></div><meta http-equiv="content-type" content="text/html; charset=utf-8">Regards<div> Andrew</div><div><br><div class="gmail_quote">On Sun, May 1, 2011 at 2:56 AM, David Gobbi <span dir="ltr"><<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Andrew,<br>
<br>
I'd guess that CMake is unable to configure itself properly on natty.<br>
In Rendering/CMakeLists.txt, there is this rule for vtkXOpenGLRenderWindow:<br>
<br>
IF (VTK_USE_X AND OPENGL_gl_LIBRARY)<br>
SET(KitOpenGL_SRCS ${KitOpenGL_SRCS} vtkXOpenGLRenderWindow.cxx)<br>
SET (KIT_LIBS ${KIT_LIBS} ${OPENGL_gl_LIBRARY} )<br>
ELSE (VTK_USE_X AND OPENGL_gl_LIBRARY)<br>
<br>
and later there is this rule for Tcl + X11:<br>
<br>
IF(VTK_USE_X)<br>
SET(KitTCL_SRCS ${KitTCL_SRCS} vtkXRenderWindowTclInteractor.cxx)<br>
SET(KIT_TCL_LIBS ${KIT_TCL_LIBS} ${X11_LIBRARIES})<br>
ENDIF(VTK_USE_X)<br>
<br>
What is the value of OPENGL_gl_LIBRARY in your CMakeCache.txt?<br>
<font color="#888888"><br>
- David<br>
</font><div><div></div><div class="h5"><br>
<br>
On Sat, Apr 30, 2011 at 1:28 AM, Andrew Maclean<br>
<<a href="mailto:andrew.amaclean@gmail.com">andrew.amaclean@gmail.com</a>> wrote:<br>
> I just transitioned my Ubuntu installation 11.04 (Natty Narwhal):<br>
><br>
> And I get the following error:<br>
> [ 95%] Built target vtkChartsTCL<br>
> Linking CXX executable ../../bin/vtk<br>
> ../../bin/libvtkRenderingTCL.so.5.9.0: undefined reference to<br>
> `vtkXOpenGLRenderWindow::SetDisplayId(_XDisplay*)'<br>
> ../../bin/libvtkRenderingTCL.so.5.9.0: undefined reference to<br>
> `vtkXOpenGLRenderWindow::SetParentId(unsigned long)'<br>
> ../../bin/libvtkRenderingTCL.so.5.9.0: undefined reference to<br>
> `vtkXOpenGLRenderWindow::GetWindowId()'<br>
> collect2: ld returned 1 exit status<br>
> when building VTK.<br>
> This was sucessfuly building under Ubuntu 10.10 (Maverick Meerkat).<br>
> As far as I can see I have all the needed libraries.<br>
> Any ideas?<br>
> Of course there may be a related issue in ParaView:<br>
> [ 44%] Built target XdmfTestHDFRoundtrip<br>
> Linking CXX executable ../../../../../bin/XdmfTestVTKIO<br>
> ../../../../../bin/libvtkXdmf.so: undefined reference to `typeinfo for<br>
> vtkXRenderWindowInteractor'<br>
> ../../../../../bin/libvtkXdmf.so: undefined reference to<br>
> `vtkXRenderWindowInteractor::~vtkXRenderWindowInteractor()'<br>
> ../../../../../bin/libvtkXdmf.so: undefined reference to<br>
> `vtkXRenderWindowInteractor::PrintSelf(std::basic_ostream<char,<br>
> std::char_traits<char> >&, vtkIndent)'<br>
> ....<br>
> Regards<br>
> Andrew<br>
> --<br>
> ___________________________________________<br>
> Andrew J. P. Maclean<br>
> Australian Centre for Field Robotics (ACFR)<br>
> The Rose Street Building J04<br>
> The University of Sydney 2006 NSW<br>
> AUSTRALIA<br>
> Ph: <a href="tel:%2B61%202%209351%203283" value="+61293513283">+61 2 9351 3283</a><br>
> Fax: <a href="tel:%2B61%202%209351%207474" value="+61293517474">+61 2 9351 7474</a><br>
> URL: <a href="http://www.acfr.usyd.edu.au/" target="_blank">http://www.acfr.usyd.edu.au/</a><br>
> ___________________________________________<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>___________________________________________<br>Andrew J. P. Maclean<br>Australian Centre for Field Robotics (ACFR)<br>The Rose Street Building J04<br>The University of Sydney 2006 NSW<br>
AUSTRALIA<br>Ph: +61 2 9351 3283<br>Fax: +61 2 9351 7474<br>URL: <a href="http://www.acfr.usyd.edu.au/" target="_blank">http://www.acfr.usyd.edu.au/</a><br>___________________________________________<br>
</div></div>