cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
5,829 Views
Registered: ‎11-26-2013

libstdc++.so.6 on PetaLinux

Hey

I am trying to build my C++ application template using the Application Development Guide

When i try and build and run the user application "myapp" I get an error:


myapp: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

 

How can i install libraries for PETALINUX? does petalinux have an installer like apt-get or anything.?

 

I read on another thread that I could find the libraries on my Host and copy them to the emulator, but I am not sure which libraries from where and in what directory for the qemu.

 

Any help would be greatly appreciated.

 

Thanking You

 

 

0 Kudos
3 Replies
Highlighted
Scholar
Scholar
5,824 Views
Registered: ‎09-05-2011

Hi, 

 

Check this AR:

http://www.xilinx.com/support/answers/55976.htm

 

Regards,

 

0 Kudos
Highlighted
Scholar
Scholar
5,820 Views
Registered: ‎09-05-2011

0 Kudos
Highlighted
Visitor
Visitor
5,800 Views
Registered: ‎11-26-2013

Hey

 

I copied the libstdc++.so.6 library from my host ubuntu and copied it to petalinux-v2013.04-final-full/software/user-apps/myapp

 

I then edited the makefile to copy this into my bin folder in the romfs directory as shown in "http://www.xilinx.com/support/answers/55975.htm" .

 

romfs: all $(DO_STRIP)
    $(ROMFSINST) -d $(APP) /bin/$(APP)
    $(ROMFSINST) libstdc++.so.6 /bin

The same error is seen:

 

root@Avnet-Digilent-ZedBoard-14_5:~# myapp
myapp: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

 

Am i copying the library into the right directory romfs/bin.?

 

Regards

Soumya Sheel

0 Kudos