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 3 of 3

Thread: glx linking problems... please help !

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2002
    Posts
    1

    glx linking problems... please help !

    I'am building a small application using GLUT, SDL (yes both... I only use 3D primitives from GLUT)and i'am having this rare linking error :

    "liglut.so : undefined reference to 'glxQueryExtension'
    liglut.so : undefined reference to 'glxMaxCurrent'..."

    and so on, all error are about GLX, but when i try to link it myself (using -lglx option) more error appear about XFree86.

    I've installed the GLX and Driver Rpm from NVIDIA 's site and glxinfo command says me that it is well installed.

    I had this problem after updating my Mandrake 8.0 distrib.

    To compil I use the following options :

    -lX11 -lXmu -lXext -lXt -lXi -lm -lGL -lGLU -lglut -lSDL -lpthread

    it used to work, but now I can only launch the old executable but I can't compile the all project.

    Any help on this ?

    regards

    [This message has been edited by Monseigneur (edited 04-08-2002).]

  2. #2
    Guest

    Re: glx linking problems... please help !

    You can try to move -lglut before the other libraries. I think that your idea to mix GLUT and SDL is bad. GLUT is not made for this. How do you get GLUT to draw the teapot on a SDL window?

  3. #3
    Intern Contributor
    Join Date
    Mar 2002
    Posts
    61

    Re: glx linking problems... please help !

    I build the OpenGL window/context with SDL (with the OGL flag) and int the rendering function I use GLUT's primitives like teapot or sphere and this is it.

    I'm gone try what you've just write thanks.

Posting Permissions

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