My question is how best to troubleshoot this, and of course how to fix it.
The library libpulsecommon-16.1.so exists in the created snap.
When I usquash it is here:
\wsl.localhost\Ubuntu\home\adsiltia\space-nerds-in-space\squashfs-root\usr\lib\x86_64-linux-gnu\pulseaudio
When I:
snap run snis
I get:
/snap/snis/x1/bin/snis_client: error while loading shared libraries: libpulsecommon-16.1.so: cannot open shared object file: No such file or directory
It was created with command line:
sudo snap install --dangerous --devmode snis_1.0.8_amd64.snap
And yaml:
name: snis
base: core24
version: 1.0.8
summary: Space bridge simulator
description: |
Space bridge simulator
My question is how best to troubleshoot this, and of course how to fix it.
The library libpulsecommon-16.1.so exists in the created snap.
When I usquash it is here:
\\wsl.localhost\Ubuntu\home\adsiltia\space-nerds-in-space\squashfs-root\usr\lib\x86_64-linux-gnu\pulseaudio
When I:
snap run snis
I get:
/snap/snis/x1/bin/snis_client: error while loading shared libraries: libpulsecommon-16.1.so: cannot open shared object file: No such file or directory
It was created with command line:
sudo snap install --dangerous --devmode snis_1.0.8_amd64.snap
And yaml:
name: snis
base: core24
version: 1.0.8
summary: Space bridge simulator
description: |
Space bridge simulator
grade: devel
confinement: devmode
parts:
snis:
source: https://github.com/smcameron/space-nerds-in-space.git
plugin: make
make-parameters:
- PREFIX= #must clear default . in makefile or will mangle command path
- DOWNLOAD_OPUS=no
#- WITHVOICECHAT=yes
# override-build: |
# make WITHVOICECHAT=yes
#DOWNLOAD_OPUS=yes
stage-packages:
- pkg-config
- portaudio19-dev
- pulseaudio
- libvorbis-dev
- libsdl2-dev
- libsdl2-2.0-0
- liblua5.2-dev # .3 fails?
- libglew-dev
- libttspico-utils
- libssl-dev
- libcrypt-dev
- libcurl4-gnutls-dev
- libopus0
- libopus-dev
- libubsan1
- libpulse-dev
- libpulse0
build-packages:
- libpng-dev
apps:
snis:
command: bin/snis_client
plugs:
- system-observe
Please add three backticks ``` in the line before and after pasted code to put into posts, else it becomes unreadable and the formatting gets lost which, especially for yaml is rather essential…
To your apps section to extend the library search path of the snap, sadly lib pulse puts itself in a subdir that isn’t in the standard path added to snap applications
No, snapcraft replaces it with the correct triplet at build time and puts it into the resulting snap.yaml in your snap, it isn’t a runtime variable but important to make your snap run on different architectures…
(Though I think in newer snapcraft it got slightly renamed, you should see a suggestion to update it to the new format during build)