Newbe dependency problems

Hi all!
I am trying to create my first snap to bring into the store an existing awesome free software game that is still not there.
It is also the first time I create a package at all.
I was able to create the package with snapcraft and also to install it.
But when I try to launch the program I get

/snap/simutrans/x1/sim: error while loading shared libraries: libpulsecommon-11.1.so: cannot open shared object file: No such file or directory

libpulse0 is installed and I have also the libpulsecommon, but in a different version. How should I proceed?

Pulseaudio is a bit whacky, and puts libs in /usr/lib/(arch)/pulseaudio rather than the commonly used /usr/lib/(arch). You can work around this thus:-

apps:
  foo:
    command: bin/foo
    environment:
      LD_LIBRARY_PATH: "$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pulseaudio:$LD_LIBRARY_PATH"

That should fix it.

2 Likes