You have to pack all your dependencies inside your snap. I would say, you allready did this, thats why you can see them in the unzip .snap file. When you install the snap on your ctrlX CORE everything inside of your snap will be availble at $SNAP. The directory where the snap is mounted. This is where all the files in your snap are visible in the filesystem (e.g. /snap/sdk-cpp-helloworld/current/). See also this documentation from snapcraft: https://snapcraft.io/docs/environment-variables#heading--snap
You can see from the other cpp-samples in the SDK, that we are using the stage-package mechanism from snapcraft to pack our dependencies into our snap. Here for example the Data Layer client: stage-packages in the snapcraft.yaml
If you do it with stage packages it looks like this (screenshot from the unziped sdk-cpp-client-arm.snap):
I think you should probably try it the same way.
Best regards,
Nick
... View more