[vtkusers] Building vtk underUbuntu 11.04 (Natty Narwhal)

David Gobbi david.gobbi at gmail.com
Sat Apr 30 12:56:05 EDT 2011


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/
> ___________________________________________



More information about the vtkusers mailing list