58
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
24
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....
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
18
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 ...
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 ...
13
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
...
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
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 --...
12
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 ...
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 ...
11
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 ...
11
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 ...
11
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 ...
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]
# ...
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 ...
9
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&...
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
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 ...
6
votes
How to enable/get OpenGL 3.1?
well maybe your hardware does not support OpenGL 3.1+, but there is a workaround. You can use Software Rendering (LLVMpipe). In order to do that you have to run:
LIBGL_ALWAYS_SOFTWARE=1 *command*
...
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 ...
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 ...
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 ...
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 ...
5
votes
Problems with libGl, fbConfigs, swrast through each update?
I had the same issue on Ubuntu 16.10 with the nvidia-340 drivers and none of the solutions here worked for me.
Turns out the 32-bit libraries were not on the library path.
This one liner worked for ...
5
votes
Sketchup was unable to initialize OpenGL
I had this problem too: You can find the key by doing this:
In the dash, type 'wine' and amongst others it shows the icon for the winetricks program.
If you start that, you can then choose 'sketchup'...
5
votes
How can I know if my GPU card driver supports Vulkan?
a Simple way is to look the unofficial vulkan gpu database https://vulkan.gpuinfo.org
The best way is to install vulkaninfo utility from your repository manager, like apt-get install vulkaninfo, ...
5
votes
HELP! How do I set mesa 3.3 as my opengl version string
You should be able to force the OpenGL version string to 3.3 using the following prefix prior to the command used to launch your game:
MESA_GL_VERSION_OVERRIDE=3.3 command
For steam, you should be ...
5
votes
Win10 linux subsystem libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: swrast
Again, apologies for answering my own question, but this seems to be the only way to put up an answer to the problem, as I detailed in my question.
On my Win10 Linux Ubuntu subsystem, the mesa ...
5
votes
Accepted
How to get the MuPDF OpenGL viewer on Ubuntu 18.04?
TL;DR
It is a Ubuntu packaging bug, it was already reported to launchpad as bug 1740105.
Compilation or installation from source
What do you need
The analysis of the PKGBUILD file from ArchLinux shows ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
opengl × 627drivers × 173
graphics × 152
nvidia × 145
mesa × 71
steam × 61
intel-graphics × 54
amd-graphics × 49
games × 45
xorg × 44
14.04 × 36
12.04 × 31
16.04 × 23
18.04 × 23
wine × 23
intel × 19
unity × 18
kubuntu × 16
radeon × 16
virtualbox × 15
compiz × 15
c++ × 15
compiling × 14
20.04 × 13
libraries × 12