UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

取消
显示结果 
搜索替代 
您的意思是: 
Observer zwl6600233
Observer
702 次查看
注册日期: ‎10-30-2018

SDSoC矩阵乘法例子,板子上报错 error while loading shared libraries: libsds_lib.so: cannot open shared object file: No such file or directory

转到解答

使用pynq-z1 在sdsoc中设置自定义环境,配置petalinux内核后,运行SDSoC矩阵乘法例子。

运行时报错:

./mult_add.elf: error while loading shared libraries: libsds_lib.so: cannot open shared object file: No such file or directory

 

查看/usr 目录下没有local目录

/usr/lib目录下只有以下库文件

root@pynq_linux:/usr/lib# ls
libcrypto.so.1.0.2     libkmod.so.2.3.2       libsocketcan.so.2.2.1
libelf-0.170.so        libpci.so.3            libssl.so.1.0.2
libelf.so.1            libpci.so.3.5.5        opkg
libkmod.so.2           libsocketcan.so.2

 

想问我该如何配置内核,才能加载上  libsds_lib.so  这个库文件。

 

0 项奖励
1 个已接受解答

已接受的解答
Moderator
Moderator
522 次查看
注册日期: ‎05-23-2018

回复: SDSoC矩阵乘法例子,板子上报错 error while loading shared libraries: libsds_lib.so: cannot open shared object file: No such file or directory

转到解答

Hi, @zwl6600233

libsds_lib.so是在SDSoC工具链下由libsds_lib.a文件编译而来的,这个库的位置在<SDX_Install_Dir>/target/<architecture>-linux/lib文件夹下。关于如何在petalinux rootfs下包含已有库,可以参考UG114 Ch7 Including Prebuilt Libraries这一节。

-------------------------------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------------------------------
如果提供的信息能解决您的问题,请标记为“接受为解决方案”。
如果您认为帖子有帮助,请点击“奖励”。谢谢!
-------------------------------------------------------------------------------------------------
10 条回复10
Scholar xilinxacct
Scholar
679 次查看
注册日期: ‎10-23-2018

回复: SDSoC矩阵乘法例子,板子上报错 error while loading shared libraries: libsds_lib.so: cannot open shared object file: No such file or directory

转到解答

@zwl6600233

Is the LD_LIBRARY_PATH environment variable set in the shell?

Observer zwl6600233
Observer
674 次查看
注册日期: ‎10-30-2018

回复: SDSoC矩阵乘法例子,板子上报错 error while loading shared libraries: libsds_lib.so: cannot open shared object file: No such file or directory

转到解答

@xilinxacct  已写:

@zwl6600233

Is the LD_LIBRARY_PATH environment variable set in the shell?



where to set the environment variable?

the board? or my computer?

or i must compile the kernel in some way?

 

 

0 项奖励
Scholar xilinxacct
Scholar
666 次查看
注册日期: ‎10-23-2018

回复: SDSoC矩阵乘法例子,板子上报错 error while loading shared libraries: libsds_lib.so: cannot open shared object file: No such file or directory

转到解答

@zwl6600233

No kernel compile needed..

to see if it is already set.... in the command shell on your computer... echo $LD_LIBRARY_PATH

If it is not there, you can temporarily append to a path like this ... export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/path/to/dir 

to permanently set it... edit the .bashrc file in your home directory, and so the same (of course, set the correct path, not /path/to/dir)

Hope that helps

0 项奖励
Moderator
Moderator
655 次查看
注册日期: ‎05-23-2018

回复: SDSoC矩阵乘法例子,板子上报错 error while loading shared libraries: libsds_lib.so: cannot open shared object file: No such file or directory

转到解答

Hi, @zwl6600233

直接把你在SDSoC下build工程时链接的库文件拷贝到pynq下的相关目录里就好了。

-------------------------------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------------------------------
如果提供的信息能解决您的问题,请标记为“接受为解决方案”。
如果您认为帖子有帮助,请点击“奖励”。谢谢!
-------------------------------------------------------------------------------------------------
0 项奖励
Observer zwl6600233
Observer
649 次查看
注册日期: ‎10-30-2018

回复: SDSoC矩阵乘法例子,板子上报错 error while loading shared libraries: libsds_lib.so: cannot open shared object file: No such file or directory

转到解答

ok,thinks ...i will try and reply you.

0 项奖励
Highlighted
Observer zwl6600233
Observer
647 次查看
注册日期: ‎10-30-2018

回复: SDSoC矩阵乘法例子,板子上报错 error while loading shared libraries: libsds_lib.so: cannot open shared object file: No such file or directory

转到解答

好的,我试试。

我在sdsoc里为这个pynq建了个 platform。

如果这样可以的话,我该怎么做才能让每次从这个平台创建的工程 ,都可以带这些库,而不用我每次都 把相关的库拷过去呢。

多谢指导。


@weiyil  已写:

Hi, @zwl6600233

直接把你在SDSoC下build工程时链接的库文件拷贝到pynq下的相关目录里就好了。


 

0 项奖励
Scholar xilinxacct
Scholar
645 次查看
注册日期: ‎10-23-2018

回复: SDSoC矩阵乘法例子,板子上报错 error while loading shared libraries: libsds_lib.so: cannot open shared object file: No such file or directory

转到解答

Copying the files should 'function' as 'work-around'... but copying the files to multiple locations 'may' cause issues in the future after updates (since you will be referencing the 'old' library, sometimes, and the maybe new library sometimes...)

Just something to consider.

0 项奖励
Moderator
Moderator
553 次查看
注册日期: ‎05-23-2018

回复: SDSoC矩阵乘法例子,板子上报错 error while loading shared libraries: libsds_lib.so: cannot open shared object file: No such file or directory

转到解答

Hi, @zwl6600233

SDSoC中建立的platform为kernel space的,其中只包含有linux kernel相关的文件。而你所缺失的动态链接库是属于user space的,如果你需要保证在板卡上运行程序时这些库都存在,您可以对rootfs重新进行编译,并将这些库添加进去。

-------------------------------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------------------------------
如果提供的信息能解决您的问题,请标记为“接受为解决方案”。
如果您认为帖子有帮助,请点击“奖励”。谢谢!
-------------------------------------------------------------------------------------------------
0 项奖励
Observer zwl6600233
Observer
545 次查看
注册日期: ‎10-30-2018

回复: SDSoC矩阵乘法例子,板子上报错 error while loading shared libraries: libsds_lib.so: cannot open shared object file: No such file or directory

转到解答

我在rootfs里面找过,libs中没发现这个  libsds_lib

应该选中哪个

 

企业微信截图_15460517241553.png
0 项奖励
Moderator
Moderator
523 次查看
注册日期: ‎05-23-2018

回复: SDSoC矩阵乘法例子,板子上报错 error while loading shared libraries: libsds_lib.so: cannot open shared object file: No such file or directory

转到解答

Hi, @zwl6600233

libsds_lib.so是在SDSoC工具链下由libsds_lib.a文件编译而来的,这个库的位置在<SDX_Install_Dir>/target/<architecture>-linux/lib文件夹下。关于如何在petalinux rootfs下包含已有库,可以参考UG114 Ch7 Including Prebuilt Libraries这一节。

-------------------------------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------------------------------
如果提供的信息能解决您的问题,请标记为“接受为解决方案”。
如果您认为帖子有帮助,请点击“奖励”。谢谢!
-------------------------------------------------------------------------------------------------