library file cannot be found on core(opencv, pylon)

  • The packaged snap file is downloaded to the physical ctrlX X2 core, but the log file shows that the corresponding libraries are not found.
    • It is possible to run amd64 framework opencv in the virtual environment for image processing, but using the physical core should need to use the ARM framework libraries.
    • The opencv and pylon libraries for the ARM aarch64 framework required by the physical core have been cross-compiled in the virtual environment linked by ssh.

As we can see,in the packaged snap file,there are library files i need

but when i downloaded it into the physical core,the log file told me that it could not fing the lib files☹️

Hope to get some advice 
thanks in advance

Good luck!

Best reply by nickH

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 original
6 replies