Menu

Linux build: GL/glx.h not found

Problems
2014-08-16
2014-08-16
  • Felipe Punto

    Felipe Punto - 2014-08-16

    I downloaded glsdk_0_5_2 and tried to build the OpenGL SDK libraries.
    On Linux, here is what I do: (premake4 version 4.3)

    > premake4 gmake
    > make config=debug
    ==== Building glload (debug) ====
    gl_load.c
    source/gl_load.c:92:26: fatal error: GL/glx.h: No such file or directory
    compilation terminated.
    make[1]: *** [Debug/gl_load.o] Error 1
    make: *** [glload] Error 2
    

    I also cannot find glx.h anywhere.
    Any idea what I need to do? Is there a dependency on another distribution which I need to download separately?

     
  • Felipe Punto

    Felipe Punto - 2014-08-16

    After quite some searching on the Internet I finally found a solution: I had to install some other libraries first. I'm on Linux Ubuntu and used the following line:

    sudo apt-get install libglu1-mesa-dev freeglut3-dev mesa-common-dev
    

    I don't know which one of these packages containd the missing GL/glx.h header file, and where it was installed. But afterwards, the "make config=debug" command worked fine and the library .a files are built without error.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.