Skip to content

Commit d1203dc

Browse files
Merge pull request RoboStack#64 from traversaro/patch-8
FAQ: Update OpenGL FAQs to mention the modern `libgl-devel` package instead of CDTs
2 parents 7500ee9 + 31b38e2 commit d1203dc

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

docs/FAQ.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,17 @@ If you still encounter issues, you will also need to set `cmake_minimum_required
5252

5353
### What to do if my conda environment C++ compiler is unable to find GL/gl.h?
5454

55-
For OpenGL and related packages, conda-forge relies on the system version for loading libraries at run-time. But when compiling C/C++ code that includes those headers, it expects the cdt packages to be installed.
55+
If you are using Windows or macOS, you do not need any additional package to find `GL/gl.h` and use `OpenGL`.
56+
57+
Instead for using `OpenGL` on Linux, conda-forge packages the [`libglvnd`](https://gitlab.freedesktop.org/glvnd/libglvnd) OpenGL loader that contains the library required to link OpenGL, and you can install it with:
5658

57-
On an x86-64 Linux platform you can install these with:
5859
~~~
59-
mamba install -c conda-forge mesa-libgl-devel-cos7-x86_64 mesa-dri-drivers-cos7-x86_64 libselinux-cos7-x86_64 libxxf86vm-cos7-x86_64
60+
mamba install -c conda-forge libgl-devel
6061
~~~
62+
63+
For actually running OpenGL-applications on Linux, you also need to make sure that your distribution has installed the packages containing the OpenGL drivers for you GPU.
64+
In most cases those should be already installed in your system, but in case they are not (tipically for headless systems or barebone containers) you can tipically add them with:
65+
66+
- Debian/Ubuntu-based distributions: `sudo apt-get install libgl1-mesa-dri libglx-mesa0 libegl-mesa0`
67+
- Fedora-based distributions: `sudo dnf install mesa-libGL mesa-libEGL mesa-dri-drivers`
68+

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy