Cannot link to third party Library

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Cannot link to third party Library

1,393 次查看
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

 

标签 (1)
0 项奖励
回复
2 回复数

1,380 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

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

1,368 次查看
dzk-chh
Contributor I

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

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

0 项奖励
回复