Cannot link to third party Library

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Cannot link to third party Library

1,402件の閲覧回数
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,389件の閲覧回数
Zhiming_Liu
NXP TechSupport
NXP TechSupport

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

1,377件の閲覧回数
dzk-chh
Contributor I

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

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

0 件の賞賛
返信