Mangohud Linking issue
❯ mangohud glxgears
ERROR: ld.so: object '/usr/$LIB/mangohud/libMangoHud_opengl.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
Running synchronized to the vertical refresh. The framerate should be
approximately the same as the monitor refresh rate
As it can’t find libmangohud_opengl.so
Snapcraft.yml
name: mangohud
base: core22
adopt-info: mangohud
summary: Vulkan/OpenGL overlay for monitoring FPS, temperatures, CPU/GPU load and more
description: |
A modification of the Mesa Vulkan overlay, including GUI improvements with HUD
configuration, temperature reporting, and logging capabilities. Includes a
script (mangohud) to start it on any OpenGL or Vulkan application.
grade: stable
confinement: classic
compression: lzo
apps:
mangohud:
command: usr/bin/mangohud
environment:
LD_LIBRARY_PATH: '$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/mangohud'
parts:
mangohud:
source: https://github.com/flightlessmango/MangoHud.git
source-tag: v0.7.0
plugin: meson
build-environment:
- PATH: "$CRAFT_PART_BUILD/bin:$PATH"
meson-parameters:
- --prefix=/usr
override-pull: |
craftctl default
VER="$(git tag | tail -1)"
craftctl set version=$VER
override-build: |
wget https://github.com/KhronosGroup/glslang/releases/download/master-tot/glslang-master-linux-Release.zip
unzip glslang-master-linux-Release.zip bin/glslangValidator
rm glslang-master-linux-Release.zip
craftctl default
build-attributes:
- enable-patchelf
build-packages:
- gcc
- g++
- gcc-multilib
- g++-multilib
- libx11-dev
- libxnvctrl-dev
- libdbus-1-dev
- mesa-common-dev
- meson
- ninja-build
- python3-mako
- python3-pip
- python3-setuptools
- python3-wheel
- pkg-config
- unzip
- wget
Also is it possible to enable bash auto-completion like you have on system app, because when i type mangohud (app isn’t detected itself by auto-completion) and is there a way to run it without classic confinment?