56
votes
Compile OpenGL Program (Missing GL/gl.h)
For GL/gl.h use:
sudo apt install mesa-common-dev
You may also find these helpful, for, say, GL/glu.h:
sudo apt install libglu1-mesa-dev freeglut3-dev
- 1,297
45
votes
Accepted
Flickering in KDE Plasma 5.4
I was having the same issue but with a different graphics card and a different OS (Fedora 22 KDE spin). I just came across this:
https://ask.fedoraproject.org/en/question/69542/fedora-22-full-screen-...
- 566
22
votes
How to install OpenGL/GLUT libraries
To install OpenGL libraries:
sudo apt-get install mesa-utils
To install freeGlut:
sudo apt-get install freeglut3-dev
- 967
22
votes
Win10 linux subsystem libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: swrast
Add LIBGL_ALWAYS_INDIRECT variable to /etc/bash.bashrc solved my error.
export LIBGL_ALWAYS_INDIRECT=1
Don't know what's the actual usage. But maybe useful, because XLauch confg says it requires this....
- 321
19
votes
Qt can't find GL/gl.h but libGL.so exists
Regarding to for Qt doc:
The Qt installers for Linux assume that a C++ compiler, debugger, make, and other development tools are provided by the host operating system. In addition, building graphical ...
- 329
17
votes
Accepted
Qt can't find GL/gl.h but libGL.so exists
Ah, as @steeldriver points out, headers and libraries are different things, and doing the following fixed the issue:
sudo apt-get install mesa-common-dev
This installs the required headers.
- 401
16
votes
Accepted
fatal error: SDL/SDL.h: No such file or directory
Probably you have already installed the libraries, I show the steps but again for the reason of completeness.
SDL2
sudo apt-get install libsdl2-dev
SDL1
sudo apt-get install libsdl1.2-dev
Start ...
- 88.1k
16
votes
Ubuntu 20.04 no driver loaded for Intel Iris Xe Graphics
I just got a new Asus Zenbook (UX425EA) yesterday which comes with 11th Gen i7 Processor + Intel Iris Xe Graphics, and I was facing the same problem too. After hours of google and scrolling through ...
- 261
14
votes
Accepted
How to update to latest OpenGL version on Virtualbox Ubuntu Linux machine?
The OpenGL drivers in the VirtualBox Guest Additions are limited to OpenGL 2.1. Despite many requests for improved OpenGL capability in the VBox user forums I've seen no mention of the VBox developers ...
- 521
13
votes
Accepted
Dota 2 Error in Ubuntu 17.04: Required OpenGL extension "GL_EXT_texture_compression_s3tc" is not supported. Please update your OpenGL driver
sudo apt-get install libtxc-dxtn-s2tc0
Fixed my openGL error for DOTA on ubuntu 17.4 Intel CPU
- 154
12
votes
ubuntu 16.04 gives "X Error of failed request: BadValue (integer parameter out of range for operation)" when running OpenGL programs
Solved, I have setup what I want. I posted the answer shown below at GitHub.
Remove all Nvidia packages and reinstall xorg packages.
sudo apt-get purge nvidia*
sudo apt-get install --...
- 561
11
votes
How do I get EGL and OpenGLES libraries for Ubuntu running on VirtualBox?
GLFW, Mesa, Ubuntu 16.04 AMD64
I haven't tried it inside of Virtual Box, but this should work regardless since Mesa has a software implementation.
sudo apt-get install libglfw3-dev libgles2-mesa-dev
...
11
votes
Accepted
Launcher, menubar and window borders disappeared in Ubuntu 16.04
I found the answer from this thread (https://askubuntu.com/a/717860/25131)
Alt + F10 and then open terminal from the menu
that appears
then type ccsm in to the terminal.
in there search for unity ...
- 726
10
votes
10
votes
Accepted
How to enable indirect GLX contexts (+iglx) in Ubuntu 14.04 LTS with nvidia gfx-cards
I had a similar issue when running some GL applications via 'ssh -X' and solved it by adding "+iglx" to xserver-command in /usr/share/lightdm/lightdm.conf.d/50-xserver-command.conf.
[SeatDefaults]
# ...
- 116
10
votes
Accepted
How can I be sure OpenGL is working?
Execute the following command in a Terminal:
glxinfo | grep '^direct rendering:'
If in the result shows Yes, then you have 3D acceleration, and hence OpenGL.
If glxinfo is not installed in your ...
- 2,913
9
votes
Problems with libGl, fbConfigs, swrast through each update?
Got same problem on ubuntu 18. This happened basically only with 32bit apps. So my idea was to install 32bit nvidia something, as my /usr/lib/i386-linux-gnu/ folder was suspiciously empty.
After very ...
- 91
9
votes
How to update OpenGL Driver on Ubuntu 14.04 LTS
Be careful when using Charles Green's advice.
On the sudo apt-get upgrade step, you might see:
sudo add-apt-repository ppa:oibaf/graphics-drivers
sudo apt-get update
sudo apt-get upgrade
Reading ...
- 191
9
votes
MATLAB com.jogamp.opengl.GLException: X11GLXDrawableFactory error
In Linux command line, type matlab -softwareopengl, it will start Matlab with normality. To make this default, inside Matlab command line, type opengl('save','software').
It works with Matlab R2019b ...
- 754
8
votes
Accepted
The imported target "Qt5::Gui" references the file "/usr/lib/x86_64-linux-gnu/libEGL.so" but this file does not exist.
Anyway let me sum up the story..
$ ls /usr/lib/x86_64-linux-gnu | grep -i libegl
libEGL.so
libEGL.so.1
libEGL.so.346.59
ls -l /usr/lib/x86_64-linux-gnu/libEGL.so
lrwxrwxrwx 1 root root 18 mar 30 ...
- 521
7
votes
How to enable indirect GLX contexts (+iglx) in Ubuntu 14.04 LTS with nvidia gfx-cards
An alternative (and display-manager-independent) way to add the options is to add the following section to /etc/X11/xorg.conf:
Section "ServerFlags"
Option "IndirectGLX" "on"
EndSection
- 71
7
votes
Steam doesn't work after update to Ubuntu 19.04
Steam uses 32 bits libraries (i386) and you don't have them. In my case, I have nvidia 390 driver, so I installed libnvidia-gl-390:i386 package and it solved the problem. In your case, since you have ...
- 789
7
votes
libGL error: failed to load drivers iris and swrast in Ubuntu 20.04
I just had same issue with Kiwix on Linux Mint and found your question. I was able to solve my issue reading: https://github.com/kiwix/kiwix-desktop/issues/393. The issue I understood is that iris ...
- 532
6
votes
Accepted
Making sense of glxinfo OpenGL versions
OpenGL ES is a subset of the original OpenGL specification and is designed for embedded systems such as smart phones. I'm not 100% sure why the version numbers do not correspond, but they don't. The ...
- 1,380
6
votes
ubuntu 16.04 gives "X Error of failed request: BadValue (integer parameter out of range for operation)" when running OpenGL programs
For anyone arriving at this question trying to use OpenGL on a headless server: you might also get this message if you have NVIDIA GLX drivers installed but don't actually have an NVIDIA card in your ...
- 160
6
votes
Accepted
Which package to install to get header file glad.h?
Thanks to @dc37 for the comment on the webservice! Here is what I did: Go to the webservice and download the required files:
Check the "local files" option and click on the "Generate&...
- 3,763
6
votes
Enabling OpenGL in Windows 10 Guest VM in QEMU
There is currently no such thing like OpenGL in Windows guests in Qemu. Rumors to the contrary often stem from QXL forgotten in the configuration, combined with a performance placebo effect1. OpenGL ...
- 221
6
votes
Enabling OpenGL in Windows 10 Guest VM in QEMU
Full credit to this post by Thomas Schwery. You could just follow the instructions there but I will summarize below. This should get you a more recent version of OpenGL (for me that was 3.1) running ...
- 161
6
votes
Accepted
Black screen at CSGO
It starts just black, or it play a cinematic and then it goes black?
I had a similar problem where the game launchs and play a cinematic, but I couldn't see more than a black screen like yours. The ...
- 76
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
opengl × 620drivers × 167
graphics × 149
nvidia × 140
mesa × 70
steam × 59
intel-graphics × 54
amd-graphics × 48
games × 44
xorg × 40
14.04 × 37
12.04 × 31
wine × 24
16.04 × 23
18.04 × 23
unity × 18
intel × 17
kubuntu × 16
compiling × 16
radeon × 16
c++ × 16
virtualbox × 15
compiz × 15
20.04 × 13
libraries × 12