Symbolic link in snapcraft cleanbuild


I am trying to build my snap using cleanbuild but keep getting an error when building which is /usr/bin/ld: cannot find -lvtkproj4

As I am using the debug flag after it fails I can run the command to reproduce the error. If I run sudo ln -s /usr/lib/ /usr/lib/x86_64-linux-gnu/ and then rebuild the error is gone.

Is there a way I can setup my .yaml or something similar to do this before it fails?

make sure to add libvtk5.10 to your build-packages and the link should be there automatically …

1 Like