Symbolic link in snapcraft cleanbuild

Hello,

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/libvtkproj4.so.5.10 /usr/lib/x86_64-linux-gnu/libvtkproj4.so 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