X11/Xlib.h not found in Ubuntu

后端 未结 4 405
-上瘾入骨i
-上瘾入骨i 2021-01-30 06:09

I\'m trying to write a rather trivial program using open gl on linux, but at a compile time it says:

Compile thumb : egl <= cuberenderer.c In file i

4条回答
  •  清酒与你
    2021-01-30 06:45

    Presume he's using the tutorial from http://www.arcsynthesis.org/gltut/ along with premake4.3 :-)

    sudo apt-get install libx11-dev ................. for X11/Xlib.h
    sudo apt-get install mesa-common-dev........ for GL/glx.h
    sudo apt-get install libglu1-mesa-dev ..... for GL/glu.h
    sudo apt-get install libxrandr-dev ........... for X11/extensions/Xrandr.h
    sudo apt-get install libxi-dev ................... for X11/extensions/XInput.h

    After which I could build glsdk_0.4.4 and examples without further issue.

提交回复
热议问题