I am missing several libraries in my snap. It builds just fine, but when I run it, it outputs the following:
error while loading shared libraries: liblapack.so.3: cannot open shared object file: No such file or directory
I have both
liblapack3 in my stage-packages. I checked the folder
/usr/lib/x86_64-linux-gnu/ in my VM, which includes
liblapack.a, liblapack.so as well as
liblapack.so.3. I assume that $SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET` is added automatically to the LD_LIBRARY_PATH, right? Therefore, I’m wondering why these can’t be found. The error message unfortunately doesn’t tell me where it is looking for this library. I’m using the catkin-tools plugin and ROS, if this is relevant.
The second suspicious warnings arise after the build:
This part is missing libraries that cannot be satisfied with any available stage-packages known to snapcraft: - usr/lib/x86_64-linux-gnu/libpsm_infinipath.so.1 These dependencies can be satisfied via additional parts or content sharing. Consider validating configured filesets if this dependency was built.
I checked the folder
/usr/lib/x86_64-linux-gnu/ as well and it contains
libpsm_infinipath.so.1. It obviously works for all other stage-packages except these 2.