Cannot link to third party Library

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Cannot link to third party Library

639 Views
dzk-chh
Contributor I

The development board is embedded okmx8mq of forlinx and uses linux5.4.3. When using Basler's pylon library, I can't link to it.

1.  I have configured the environment variables.

root@imx8mqvk:/opt# source ./pylon6/bin/pylon-setup-env.sh pylon6

2.  Error reporting during operation

root@imx8mqvk:/opt/pylon6/bin# ./pylonviewer

./pylonviewer:error while loading shared libraries:libPluginCore.so.1:cannot open shared object file:no such file or directory

3.  The library file(libPluginCore.so.1) exists, but the dynamic library is not linked to

4.  I added the shared library to the system default library and modified the file----/etc/ls.so.conf,but the error still exist.

email: 2176630989@qq.com         dingzhike

                                               thanks

 

Labels (1)
0 Kudos
2 Replies

626 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

你试试把库路径放到pylon-setup-env.sh 里

614 Views
dzk-chh
Contributor I

问题已解决,非常感谢!  灵感来源于pylon-setup-env.sh的提示。

我把/opt/pylon_6.2.******的路径(文件夹)修改为  /opt/pylon ,然后配置好环境变量,把依赖的库复制到/usr/lib下边就,我自己的qt程序就成功了。

0 Kudos