cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Adventurer
Adventurer
5,405 Views
Registered: ‎09-28-2016

how can I add libstdc++.so.6 to rootfs

Jump to solution

Hi,all

 

my board is zc706

 

when I run c++ application on board, it print "error while shared libstdc++.so.6", there is no libstdc++.so.6 under /lib, so how can I add libstdc++.so.6 to my rootfs?

 

 

Tom

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Adventurer
Adventurer
8,823 Views
Registered: ‎09-28-2016

I copy libstdc++.so.6 from corss toolchain directory to my rootfs lib, and that worked!!!

View solution in original post

0 Kudos
4 Replies
Highlighted
Xilinx Employee
Xilinx Employee
5,395 Views
Registered: ‎08-01-2008

check this post hopefully you will get answer for your query
https://forums.xilinx.com/t5/Embedded-Linux/problem-with-libstdc-so-6-Petalinux-2016-2/td-p/713921

 

https://forums.xilinx.com/t5/Embedded-Linux/Petalinux-2014-4-SDK-includes-libstdc-but-build-does-not-add-to/td-p/601881

Thanks and Regards
Balkrishan
--------------------------------------------------------------------------------------------
Please mark the post as an answer "Accept as solution" in case it helped resolve your query.
Give kudos in case a post in case it guided to the solution.
0 Kudos
Highlighted
Adventurer
Adventurer
5,322 Views
Registered: ‎09-28-2016

Hi,

 

Thanks for your reply, the post https://forums.xilinx.com/t5/Embedded-Linux/Petalinux-2014-4-SDK-includes-libstdc-but-build-does-not-add-to/td-p/601881 said below:

 

Found that it helps if you actually include the libstdc++ in the rootfs config. Ran petalinux-config -c rootfs and enabled libstdc++6 in Filesystem Packages->base->external-xilinx-toolchain.

 

but in the petalinux2016.02, run "petalinux-config -c rootfs", there isn't the option "external-xilinx-toolchain"

 

would you please give me some hints, Thanks in advance

 

 

Tom

0 Kudos
Highlighted
Adventurer
Adventurer
8,824 Views
Registered: ‎09-28-2016

I copy libstdc++.so.6 from corss toolchain directory to my rootfs lib, and that worked!!!

View solution in original post

0 Kudos
Highlighted
Observer
Observer
1,563 Views
Registered: ‎10-11-2018

I have zcu102 with SDK 2018.2.

I need to copy two libs - libstdc++.so.6 and libgcc_s.so.1,

to  rootfs lib - it works now 

0 Kudos