LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   X11 requires OpenGL support. (https://www.linuxquestions.org/questions/linux-software-2/x11-requires-opengl-support-4175564361/)

siery 01-19-2016 08:35 AM

X11 requires OpenGL support.
 
Hey!

I been compiling Allegro 5 graphical library at Debian Jessie. Then i got this error:

Code:

CMake Error at CMakeLists.txt:559 (message):
  X11 support currently requires OpenGL support.

looking for libopengl i find two packages: libopengl-image-perl, libopengl-perl. With one should i install to be working with X11?

My secondary question is: can someone explain me what X11 library really does and why it depends at OpenGL?

Thanks, Siery.

TobiSGD 01-19-2016 09:18 AM

The correct name for that library is not libopengl, but libGL, which is usually provided by your graphics driver. You also may have misunderstood that error message, it doesn't tell you that X11 (your graphics subsystem) needs OpenGL (it doesn't), but that Allegro needs to be compiled with OpenGL support when you want to compile it with X11 support.

siery 01-19-2016 09:25 AM

Hm, yes thank you. But whats the name of the package? libgl1-mesa-dev?

TobiSGD 01-19-2016 10:14 AM

Depends on which graphics driver you use. If you use the open source drivers then yes, libgl1-mesa-dev should be the right one.


All times are GMT -5. The time now is 03:02 PM.