Undefined reference to `glBindBuffer'

Questions, problems and discussion about compiling FreeOrion.

Moderator: Oberlus

Post Reply
Message
Author
stride
Space Floater
Posts: 31
Joined: Sun Sep 28, 2008 3:05 pm
Location: Horten, Norway

Undefined reference to `glBindBuffer'

#1 Post by stride »

I got the idea that I would try and get freeorion up and running on my rather ancient ubuntu dapper box, developing in MS Visual C++ is not my idea of having a good time. Managed to install most requirements from packages, but needed to install boost_1_37_0, devil-1.7.4 and log4cpp-1.0 from source. Freeorion compiles and all is well except some GL issues when linking.

GL on linux is new to me so I have little experience with this. Input would be appreciated.

Code: Select all

lspci|grep ATI
0000:01:00.0 VGA compatible controller: ATI Technologies Inc Radeon RV100 QY [Radeon 7000/VE]

Code: Select all

glxinfo
name of display: :0.0
display: :0  screen: 0
direct rendering: No
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
    GLX_ARB_multisample, GLX_EXT_visual_info, GLX_EXT_visual_rating,
    GLX_EXT_import_context, GLX_OML_swap_method, GLX_SGI_make_current_read,
    GLX_SGIS_multisample, GLX_SGIX_hyperpipe, GLX_SGIX_swap_barrier,
    GLX_SGIX_fbconfig
client glx vendor string: ATI
client glx version string: 1.3
client glx extensions:
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context,
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_ATI_pixel_format_float,
    GLX_ATI_render_texture
GLX version: 1.2
GLX extensions:
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context,
    GLX_ARB_multisample
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.2 (1.5 Mesa 6.4.1)
OpenGL extensions:
    GL_ARB_imaging, GL_ARB_multitexture, GL_ARB_texture_border_clamp,
    GL_ARB_texture_cube_map, GL_ARB_texture_env_add,
    GL_ARB_texture_env_combine, GL_ARB_texture_env_dot3,
    GL_ARB_transpose_matrix, GL_EXT_abgr, GL_EXT_blend_color,
    GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_texture_env_add,
    GL_EXT_texture_env_combine, GL_EXT_texture_env_dot3,
    GL_EXT_texture_lod_bias
glu version: 1.3
glu extensions:
    GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess

   visual  x  bf lv rg d st colorbuffer ax dp st accumbuffer  ms  cav
 id dep cl sp sz l  ci b ro  r  g  b  a bf th cl  r  g  b  a ns b eat
----------------------------------------------------------------------
0x23 24 tc  0 32  0 r  .  .  8  8  8  8  0 24  0  0  0  0  0  1 0 None
0x24 24 tc  0 32  0 r  .  .  8  8  8  8  0 24  8  0  0  0  0  1 0 None
0x25 24 tc  0 32  0 r  .  .  8  8  8  8  0 24  0 16 16 16 16  1 0 Slow
0x26 24 tc  0 32  0 r  .  .  8  8  8  8  0 24  8 16 16 16 16  1 0 Slow
0x27 24 tc  0 32  0 r  y  .  8  8  8  8  0 24  0  0  0  0  0  1 0 None
0x28 24 tc  0 32  0 r  y  .  8  8  8  8  0 24  8  0  0  0  0  1 0 None
0x29 24 tc  0 32  0 r  y  .  8  8  8  8  0 24  0 16 16 16 16  1 0 Slow
0x2a 24 tc  0 32  0 r  y  .  8  8  8  8  0 24  8 16 16 16 16  1 0 Slow
0x2b 24 dc  0 32  0 r  .  .  8  8  8  8  0 24  0  0  0  0  0  1 0 None
0x2c 24 dc  0 32  0 r  .  .  8  8  8  8  0 24  8  0  0  0  0  1 0 None
0x2d 24 dc  0 32  0 r  .  .  8  8  8  8  0 24  0 16 16 16 16  1 0 Slow
0x2e 24 dc  0 32  0 r  .  .  8  8  8  8  0 24  8 16 16 16 16  1 0 Slow
0x2f 24 dc  0 32  0 r  y  .  8  8  8  8  0 24  0  0  0  0  0  1 0 None
0x30 24 dc  0 32  0 r  y  .  8  8  8  8  0 24  8  0  0  0  0  1 0 None
0x31 24 dc  0 32  0 r  y  .  8  8  8  8  0 24  0 16 16 16 16  1 0 Slow
0x32 24 dc  0 32  0 r  y  .  8  8  8  8  0 24  8 16 16 16 16  1 0 Slow

Code: Select all

glewinfo
---------------------------
    GLEW Extension Info
---------------------------

GLEW version 1.3.1
Reporting capabilities of display :0.0, visual 0x27
Running on a Mesa GLX Indirect from Mesa project: www.mesa3d.org
OpenGL version 1.2 (1.5 Mesa 6.4.1) is supported

GL_VERSION_1_1:                                                OK 
---------------

GL_VERSION_1_2:                                                OK 
---------------
  glCopyTexSubImage3D:                                         OK
  glDrawRangeElements:                                         OK
  glTexImage3D:                                                OK
  glTexSubImage3D:                                             OK

GL_VERSION_1_3:                                                OK 
---------------
  glActiveTexture:                                             OK
  glClientActiveTexture:                                       OK
  glCompressedTexImage1D:                                      OK
  glCompressedTexImage2D:                                      OK
  glCompressedTexImage3D:                                      OK
  glCompressedTexSubImage1D:                                   OK
  glCompressedTexSubImage2D:                                   OK
  glCompressedTexSubImage3D:                                   OK
  glGetCompressedTexImage:                                     OK
  glLoadTransposeMatrixd:                                      OK
  glLoadTransposeMatrixf:                                      OK
  glMultTransposeMatrixd:                                      OK
  glMultTransposeMatrixf:                                      OK
  glMultiTexCoord1d:                                           OK
  glMultiTexCoord1dv:                                          OK
  glMultiTexCoord1f:                                           OK
  glMultiTexCoord1fv:                                          OK
  glMultiTexCoord1i:                                           OK
  glMultiTexCoord1iv:                                          OK
  glMultiTexCoord1s:                                           OK
  glMultiTexCoord1sv:                                          OK
  glMultiTexCoord2d:                                           OK
  glMultiTexCoord2dv:                                          OK
  glMultiTexCoord2f:                                           OK
  glMultiTexCoord2fv:                                          OK
  glMultiTexCoord2i:                                           OK
  glMultiTexCoord2iv:                                          OK
  glMultiTexCoord2s:                                           OK
  glMultiTexCoord2sv:                                          OK
  glMultiTexCoord3d:                                           OK
  glMultiTexCoord3dv:                                          OK
  glMultiTexCoord3f:                                           OK
  glMultiTexCoord3fv:                                          OK
  glMultiTexCoord3i:                                           OK
  glMultiTexCoord3iv:                                          OK
  glMultiTexCoord3s:                                           OK
  glMultiTexCoord3sv:                                          OK
  glMultiTexCoord4d:                                           OK
  glMultiTexCoord4dv:                                          OK
  glMultiTexCoord4f:                                           OK
  glMultiTexCoord4fv:                                          OK
  glMultiTexCoord4i:                                           OK
  glMultiTexCoord4iv:                                          OK
  glMultiTexCoord4s:                                           OK
  glMultiTexCoord4sv:                                          OK
  glSampleCoverage:                                            OK

GL_VERSION_1_4:                                                MISSING 
---------------
  glBlendColor:                                                OK
  glBlendEquation:                                             OK
  glBlendFuncSeparate:                                         MISSING
  glFogCoordPointer:                                           MISSING
  glFogCoordd:                                                 MISSING
  glFogCoorddv:                                                MISSING
  glFogCoordf:                                                 MISSING
  glFogCoordfv:                                                MISSING
  glMultiDrawArrays:                                           MISSING
  glMultiDrawElements:                                         MISSING
  glPointParameterf:                                           MISSING
  glPointParameterfv:                                          MISSING
  glSecondaryColor3b:                                          MISSING
  glSecondaryColor3bv:                                         MISSING
  glSecondaryColor3d:                                          MISSING
  glSecondaryColor3dv:                                         MISSING
  glSecondaryColor3f:                                          MISSING
  glSecondaryColor3fv:                                         MISSING
  glSecondaryColor3i:                                          MISSING
  glSecondaryColor3iv:                                         MISSING
  glSecondaryColor3s:                                          MISSING
  glSecondaryColor3sv:                                         MISSING
  glSecondaryColor3ub:                                         MISSING
  glSecondaryColor3ubv:                                        MISSING
  glSecondaryColor3ui:                                         MISSING
  glSecondaryColor3uiv:                                        MISSING
  glSecondaryColor3us:                                         MISSING
  glSecondaryColor3usv:                                        MISSING
  glSecondaryColorPointer:                                     MISSING
  glWindowPos2d:                                               MISSING
  glWindowPos2dv:                                              MISSING
  glWindowPos2f:                                               MISSING
  glWindowPos2fv:                                              MISSING
  glWindowPos2i:                                               MISSING
  glWindowPos2iv:                                              MISSING
  glWindowPos2s:                                               MISSING
  glWindowPos2sv:                                              MISSING
  glWindowPos3d:                                               MISSING
  glWindowPos3dv:                                              MISSING
  glWindowPos3f:                                               MISSING
  glWindowPos3fv:                                              MISSING
  glWindowPos3i:                                               MISSING
  glWindowPos3iv:                                              MISSING
  glWindowPos3s:                                               MISSING
  glWindowPos3sv:                                              MISSING

GL_VERSION_1_5:                                                MISSING 
---------------
  glBeginQuery:                                                MISSING
  glBindBuffer:                                                MISSING
  glBufferData:                                                MISSING
  glBufferSubData:                                             MISSING
  glDeleteBuffers:                                             MISSING
  glDeleteQueries:                                             MISSING
  glEndQuery:                                                  MISSING
  glGenBuffers:                                                MISSING
  glGenQueries:                                                MISSING
  glGetBufferParameteriv:                                      MISSING
  glGetBufferPointerv:                                         MISSING
  glGetBufferSubData:                                          MISSING
  glGetQueryObjectiv:                                          MISSING
  glGetQueryObjectuiv:                                         MISSING
  glGetQueryiv:                                                MISSING
  glIsBuffer:                                                  MISSING
  glIsQuery:                                                   MISSING
  glMapBuffer:                                                 MISSING
  glUnmapBuffer:                                               MISSING

GL_VERSION_2_0:                                                MISSING 
---------------
Have a lot more info but I hit the post size limit now. GLew looked like a nice library btw :)

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13587
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: Undefined reference to `glBindBuffer'

#2 Post by Geoff the Medio »

Looks like that machine doesn't support OpenGL 1.5, which is required. On Linux we might actually need 2.0, but I'm not sure of that.

Also: log4cpp was actually just removed as a dependency.

stride
Space Floater
Posts: 31
Joined: Sun Sep 28, 2008 3:05 pm
Location: Horten, Norway

Re: Undefined reference to `glBindBuffer'

#3 Post by stride »

Geoff the Medio wrote:Looks like that machine doesn't support OpenGL 1.5, which is required. On Linux we might actually need 2.0, but I'm not sure of that.
You're probably correct. Is it a hardware limitation or a software version problem? To me it kind of looks like both :(

User avatar
OndrejR
Space Dragon
Posts: 339
Joined: Thu Oct 02, 2008 11:00 pm
Location: Slovakia

Re: Undefined reference to `glBindBuffer'

#4 Post by OndrejR »

You need devil 1.6.8, not 1.7.4(API changed). Log4cpp is in svn, there is no more need to install. Boost 1.37 is also in Debian unstable repository.

User avatar
kroddn
Static Linker
Posts: 347
Joined: Thu Jun 28, 2007 10:28 am

Re: Undefined reference to `glBindBuffer'

#5 Post by kroddn »

stride wrote:
Geoff the Medio wrote:Looks like that machine doesn't support OpenGL 1.5, which is required. On Linux we might actually need 2.0, but I'm not sure of that.
You're probably correct. Is it a hardware limitation or a software version problem? To me it kind of looks like both :(
Its more a hardware problem, although it could be software. Your graphic card's chipset maybe does not support the openGL functions above 1.4. But this can also be the case if the drivers are not workung correctly. You may try to install ATI's fglrx drivers for your card, if there are available some.

Post Reply