Score:0

Which packages for OpenGL?

us flag

sorry for the simple question: Which packages do I need to install to get OpenGL working (including building a program which uses OpenGL)?

(I use Ubuntu 20.04 LTS. There is no such package as opengl, openGL or mesa.)

hu flag
It depends on the specific hardware in use, and more often then not, there is no need to install anything.
Score:1
hr flag

I believe that for 20.04 the development package (required for building a program which uses OpenGL) is libgl-dev:

$ apt show libgl-dev
Package: libgl-dev
Version: 1.3.2-1~ubuntu0.20.04.1
Priority: optional
Section: libs
Source: libglvnd
Origin: Ubuntu
Maintainer: Ubuntu Developers <[email protected]>
Original-Maintainer: Debian X Strike Force <[email protected]>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 1389 kB
Depends: libgl1 (= 1.3.2-1~ubuntu0.20.04.1), libglx-dev
Breaks: libgl1-mesa-dev (<< 20.0.8-0ubuntu1~20.04), libglvnd-dev (<< 1.3.0-1), mesa-common-dev (<< 20.0.8-0ubuntu1~20.04)
Replaces: libgl1-mesa-dev (<< 20.0.8-0ubuntu1~20.04), libglvnd-dev (<< 1.3.0-1), mesa-common-dev (<< 20.0.8-0ubuntu1~20.04)
Homepage: https://gitlab.freedesktop.org/glvnd/libglvnd
Download-Size: 97.8 kB
APT-Sources: http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
Description: Vendor neutral GL dispatch library -- GL development files
 This is an implementation of the vendor-neutral dispatch layer for
 arbitrating OpenGL API calls between multiple vendors on a per-screen basis.
 .
 This package provides the development environment for compiling programs
 against the GL library.

Previous versions used the Mesa implementation explicitly, i.e. libgl1-mesa-dev.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.