Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Linker issue

  1. #1
    Newbie Newbie
    Join Date
    Aug 2013
    Posts
    1

    Linker issue

    Hello There,

    I try to compile a small application and I get a number of errors like:
    Code :
    /usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../lib64/libGL.so: undefined reference to `xcb_glx_set_client_info_arb'
    /usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../lib64/libGL.so: undefined reference to `xcb_glx_create_context_attribs_arb_checked'
    /usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../lib64/libGL.so: undefined reference to `xcb_glx_set_client_info_2arb'
    /usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../lib64/libGL.so: undefined reference to `_XGetRequest'

    I have CentOS 6.0 running gstreamer 0.10.29 and mesaGL 1.2.0. And I have no idea how to fix this even after quite a few years of coding (mainly on Windows anyway).

    Thanks

  2. #2
    Member Regular Contributor
    Join Date
    Jun 2013
    Posts
    474
    Quote Originally Posted by sanyibacsi View Post
    I try to compile a small application and I get a number of errors like:
    Code :
    /usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../lib64/libGL.so: undefined reference to `xcb_glx_set_client_info_arb'
    These are all defined in libxcb-glx.so. That library should be a dependency of libGL.so, and get linked automatically. You can try adding -lxcb-glx to the linker flags as a workaround, but the fact that this doesn't work out of the box suggests that there are other factors involved. Did you get any other error messages prior to those? Did you try to install OpenGL (or any related components) other than using the normal package installation mechanism?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •