glmark2 packages are missing dependencies on GL libraries

Bug #2025684 reported by Aki Ketolainen
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
glmark2 (Ubuntu)
Triaged
Low
Unassigned

Bug Description

After install of glmark2, trying to run it in WSL 2/Ubuntu 22.04 results in this error message:

$ glmark2
Error: Failed to load libGL

The missing dependency is libgl1

$ glmark2-wayland
Error: Error loading EGL library

The missing dependency is libegl1

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: glmark2 2021.02-0ubuntu1
Uname: Linux 5.15.90.2-microsoft-standard-WSL2 x86_64
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckResult: unknown
Date: Tue Jul 4 01:50:35 2023
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=C.UTF-8
 SHELL=/bin/bash
SourcePackage: glmark2
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Aki Ketolainen (akik) wrote :
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Sounds like the disk image lacks OpenGL support? Also try running:

  sudo apt install mesa-utils
  es2_info

  sudo apt install weston
  weston-simple-egl

description: updated
Changed in glmark2 (Ubuntu):
status: New → Incomplete
Revision history for this message
Aki Ketolainen (akik) wrote :

I meant that installing libgl1 and libegl1 manually makes glmark2 and glmark2-wayland work. Those packages just aren't installed as dependencies to glmark2.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

While that sounds sensible, I would focus on bug 1951402 first. That may automatically solve this.

Also I wonder what other apps might be broken by basic OpenGL libraries missing in WSL.

Revision history for this message
Aki Ketolainen (akik) wrote :

> Also I wonder what other apps might be broken by basic OpenGL libraries missing in WSL.

When you install Ubuntu-22.04 as a WSL 2 distro, it contains a certain package set.
But after it's installed, and you start using apt-get, you'll start use the normal
Ubuntu repos. So everything after the initial install comes from the Ubuntu repos.
WSL 2 Ubuntu-22.04 image is not a static kind of setup you can't change.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I can see how this happened. The packaging automatically creates dependencies on the build-time shared libraries, but glmark2 doesn't choose its GL libraries until runtime. So the binary package dependencies are wrong. And it looks like the same mistake persists in the newer upstream version: https://tracker.debian.org/pkg/glmark2

So waiting for bug 1951402 probably won't fix this, but it's still something I would recommend happens first.

Changed in glmark2 (Ubuntu):
importance: Undecided → Low
status: Incomplete → Triaged
summary: - glmark2 fails to start in WSL 2/Ubuntu 22.04 after install
+ glmark2 packages are missing dependencies on GL libraries
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.