FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We have started the migration process.
This community is now in READ ONLY mode.
Read more: Important
information on the platform change.
08-14-2023 11:49 AM
I link third part library in my sdk projrct, and configurate the path in CMakelist and Snapcraft.yaml file, after pack it to snap package and run it, it could not call the function in lib, and dispaly error in log:
What is the correct step to configure the use of third-party libraries in CMakeList and Snapcraft.yaml file?
Solved! Go to Solution.
08-15-2023 09:59 PM
Hello,
This will be difficult to troubleshoot without more information or source code. Is there any error in the CMake or snap build process?
I would first try to run this on your local machine rather than the CORE. Below is a good example with many imported libraries.
08-16-2023 05:31 PM
Hey,
It seems your executable couldn't find the lib 'libMvCameraControl.so' . You can configure the PATH of your library in 'snapcraft.yaml' by creating a custom environment variable or use system env variable such as 'LD_LIBRARY_PATH' to dynamically link executables.
E.g.
...
apps:
backend:
command: boschRexroth
# interfaces to connect to https://snapcraft.io/docs/supported-interfaces
environment:
LD_LIBRARY_PATH: $LD_LIBRARY_PATH:/path/to/your/library.so
plugs:
- network
daemon: simple
...