X11/Xlib.h not found in Ubuntu

后端 未结 4 407
-上瘾入骨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:52

    A quick search using...

    apt search Xlib.h
    

    Turns up the package libx11-dev but you shouldn't need this for pure OpenGL programming. What tutorial are you using?

    You can add Xlib.h to your system by running the following...

    sudo apt install libx11-dev
    

提交回复
热议问题