Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use libgl-devel to install OpenGL loader on Linux instead of CDTs #57

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

traversaro
Copy link
Contributor

This should be part of a much bigger cleanup of all the places in which we use OpenGL-related CDTs in ami-iit and robotology, but let's start from somewhere.

In a nutshell, now conda-forge packages the so-called libglvnd library, that is the loader library linked by the programs and that then loads the OpenGL libraries, so it is now sufficient to just install libgl-devel (or libegl-devel or other similar packages, depending on the library you actually use) instead of installing a lot of CDTs to compile a library that uses OpenGL.

Note that libgl-devel only install the GL loader library used to compile and link the library that uses OpenGL. To actually run a program that loads OpenGL, you need to install the OpenGL drivers, that are not packaged by conda-forge, and should instead be installed with the system package manager, for example:

  • Debian/Ubuntu: sudo apt-get install libgl1-mesa-dri libglx-mesa0 libegl-mesa0
  • Fedora/RHEL: sudo dnf install mesa-libGL mesa-libEGL mesa-dri-drivers

Related docs:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants