Thanks, this was indeed the problem. I thought I copied the libraries from usr
to lib
but it turns out that I removed all the libraries before copying them.
It would still be useful if snapcraft could tell me at the end that a linked library is not inside the snap