The following issues came up when I tried to install vtk to an Ubuntu box,<br><br>Linking CXX executable ../../../bin/GraphicsCxxTests<br>/opt/Vtk/src/bin/libvtkRendering.a(vtkGLSLShaderProgram.o): In function `printOglError(char*, int)':<br>
vtkGLSLShaderProgram.cxx:(.text+0x162e): undefined reference to `glGetError'<br>vtkGLSLShaderProgram.cxx:(.text+0x1663): undefined reference to `glGetError'<br>/opt/Vtk/src/bin/libvtkRendering.a(vtkOpenGLExtensionManager.o): In function `vtkOpenGLExtensionManager::ExtensionSupported(char const*)':<br>
vtkOpenGLExtensionManager.cxx:(.text+0x4551): undefined reference to `glGetString'<br>/opt/Vtk/src/bin/libvtkRendering.a(vtkGLSLShader.o): In function `vtkGLSLShader::SetUniformParameter(char const*, int, float const*)':<br>
vtkGLSLShader.cxx:(.text+0xe5d): undefined reference to `glGetError'<br>vtkGLSLShader.cxx:(.text+0x1266): undefined reference to `glGetError'<br>/opt/Vtk/src/bin/libvtkRendering.a(vtkGLSLShader.o): In function `vtkGLSLShader::SetUniformParameter(char const*, int, int const*)':<br>
vtkGLSLShader.cxx:(.text+0x140b): undefined reference to `glGetError'<br>vtkGLSLShader.cxx:(.text+0x181a): undefined reference to `glGetError'<br>/opt/Vtk/src/bin/libvtkRendering.a(vtkGLSLShader.o): In function `GLSLprintOglError(char const*, int)':<br>
vtkGLSLShader.cxx:(.text+0x1840): undefined reference to `glGetError'<br>/opt/Vtk/src/bin/libvtkRendering.a(vtkGLSLShader.o):vtkGLSLShader.cxx:(.text+0x1875): more undefined references to `glGetError' follow<br>/opt/Vtk/src/bin/libvtkRendering.a(vtkCompositePainter.o): In function `vtkCompositePainter::RenderInternal(vtkRenderer*, vtkActor*, unsigned long, bool)':<br>
vtkCompositePainter.cxx:(.text+0x562): undefined reference to `glMaterialfv'<br>vtkCompositePainter.cxx:(.text+0x57d): undefined reference to `glMaterialfv'<br>vtkCompositePainter.cxx:(.text+0x598): undefined reference to `glMaterialfv'<br>
/opt/Vtk/src/bin/libvtkftgl.a(FTGLPixmapFontRenderOpenGL.o): In function `FTGLPixmapFont::RenderOpenGL(wchar_t const*, FTGLRenderContext const*)':<br>FTGLPixmapFontRenderOpenGL.cpp:(.text+0xe): undefined reference to `glPushClientAttrib'<br>
FTGLPixmapFontRenderOpenGL.cpp:(.text+0x1a): undefined reference to `glPushAttrib'<br>FTGLPixmapFontRenderOpenGL.cpp:(.text+0x2e): undefined reference to `glPixelStorei'<br>FTGLPixmapFontRenderOpenGL.cpp:(.text+0x3a): undefined reference to `glEnable'<br>
FTGLPixmapFontRenderOpenGL.cpp:(.text+0x4e): undefined reference to `glBlendFunc'<br>FTGLPixmapFontRenderOpenGL.cpp:(.text+0x5a): undefined reference to `glDisable'<br>FTGLPixmapFontRenderOpenGL.cpp:(.text+0x78): undefined reference to `glPopAttrib'<br>
FTGLPixmapFontRenderOpenGL.cpp:(.text+0x7d): undefined reference to `glPopClientAttrib'<br>/opt/Vtk/src/bin/libvtkftgl.a(FTGLPixmapFontRenderOpenGL.o): In function `FTGLPixmapFont::RenderOpenGL(char const*, FTGLRenderContext const*)':<br>
FTGLPixmapFontRenderOpenGL.cpp:(.text+0x92): undefined reference to `glPushClientAttrib'<br>FTGLPixmapFontRenderOpenGL.cpp:(.text+0x9e): undefined reference to `glPushAttrib'<br>FTGLPixmapFontRenderOpenGL.cpp:(.text+0xb2): undefined reference to `glPixelStorei'<br>
FTGLPixmapFontRenderOpenGL.cpp:(.text+0xbe): undefined reference to `glEnable'<br>FTGLPixmapFontRenderOpenGL.cpp:(.text+0xd2): undefined reference to `glBlendFunc'<br>FTGLPixmapFontRenderOpenGL.cpp:(.text+0xde): undefined reference to `glDisable'<br>
FTGLPixmapFontRenderOpenGL.cpp:(.text+0xfc): undefined reference to `glPopAttrib'<br>FTGLPixmapFontRenderOpenGL.cpp:(.text+0x101): undefined reference to `glPopClientAttrib'<br>/opt/Vtk/src/bin/libvtkftgl.a(FTPixmapGlyphRenderOpenGL.o): In function `FTPixmapGlyph::RenderOpenGL(FT_Vector_ const&, FTGLRenderContext const*)':<br>
FTPixmapGlyphRenderOpenGL.cpp:(.text+0x6a): undefined reference to `glBitmap'<br>FTPixmapGlyphRenderOpenGL.cpp:(.text+0x9c): undefined reference to `glDrawPixels'<br>FTPixmapGlyphRenderOpenGL.cpp:(.text+0x10b): undefined reference to `glBitmap'<br>
/opt/Vtk/src/bin/libvtkftgl.a(FTPixmapGlyphRenderOpenGL.o): In function `FTPixmapGlyph::GetCurrentColorOpenGL(float*, FTGLRenderContext const*)':<br>FTPixmapGlyphRenderOpenGL.cpp:(.text+0x127): undefined reference to `glGetFloatv'<br>
collect2: ld returned 1 exit status<br>make[2]: *** [bin/GraphicsCxxTests] Error 1<br>make[1]: *** [Graphics/Testing/Cxx/CMakeFiles/GraphicsCxxTests.dir/all] Error 2<br>make: *** [all] Error 2<br><br>Any helps will be appreciated!<br>