Sorry, you need to enable JavaScript to visit this website.

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

Unsolved
11 posts / 0 new
mahesh418.g's picture
mahesh418.g
Junior(0)
error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file

Hi,

I created Boot.bin file for developing xilinx-linux on ZedBoard(Digilent),
Then copied Boot.bin and other files(ramdisk,devicetree,Zimage,zynq_fsbl.elf) to sdcard and
Booted xilinux OS on Zedboard Successfully,

Then i tried to run the simple helloworld.c on this Xilinux-linux of Zedboard using the
ARM Crosscompiler's(arm-xilinux-linux-gnueabi-g++ helloworld.c -o A.out).
On Linux PC i genrated A.out file using the Arm crosscompiler's,then moved this A.out to Zedboard
and ran the A.out executable file xilinx-linux of Zedboard,it's giving helloworld o/p...working fine.

Now i am trying to running my c,c++ codes(more than 5 files) on Xilinux-linux of Zedboard,
For that one i genrated the A.out file on Linux PC using ARM cross compiler's,
Then i tried to ran the this A.out executable on xilinx-linux of ZedBoard.
it giving the following error,

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

Then i tried to copied libstdc++.so.6 file to corresponding location on board side,
And also exported path for corresponding /bin and library files,
Still i am facing same problem,

Can Any one provide Solution for solving this error?
Can anyone help me in this please..?

eli's picture
eli
Junior(1)
Native compilation

Hello,

Compilation of user space applications is indeed difficult. The simplest solution is to compile your application natively on the board itself, as Xillinux includes gcc and make.

Eli

mahesh418.g's picture
mahesh418.g
Junior(0)
Thanks for ur reply....

Thanks for ur reply....

eactor's picture
eactor
Junior(4)
Native compilation?

Is it really included on the sd card out of the box? On mine I can't find any gcc version? Is there a tutorial on how to get a native applicatin compiled?
Thanks

eli's picture
eli
Junior(1)
Included in Xillinux

The gcc compiler is included in Xillinux' image, yes. The compilation is just like on any UNIX machine, e.g.

gcc -o hello hello.c

Eli

eactor's picture
eactor
Junior(4)
By Xillinx' image you are not

By Xillinx' image you are not talking about the original one from the SD card (BusyBox on ramdisk). So what do you refer to as Xillinux?

eactor's picture
eactor
Junior(4)
Figured it out :-D

Thanks
Xillinux Download: http://xillybus.com/xillinux

zedhed's picture
zedhed
Moderator(22)
RE: error while loading shared libraries: libstdc++.so.6: cannot

Hi mahesh418.g,

Eli makes a great suggestion, native compiling on the target is definitely the way to go.

If you are not able to go down that path for whatever reason, you should still be able to run C++ applications on ZedBoard using an OSL build.

Take a look at our Linux on Zynq SpeedWay training. We have hands-on labs that guide you through setting up a custom Root File System. The lab that covers this is lab 2.2 and I have been running C++ applications on top of this RFS without the issues that you have been running into. You are probably on the right track already in copying libstdc++.so.6 to /lib and setting up the appropriate symlinks to that library so your application can find it.

Regards,

-Kevin

mahesh418.g's picture
mahesh418.g
Junior(0)
How to Communicate the DDR memory locations of Zedboard

Hi,
I created Boot.bin file for developing xilinx-linux on ZedBoard(Digilent),
Then copied Boot.bin and other files(ramdisk,devicetree,Zimage,zynq_fsbl.elf) to sdcard and
Booted xilinux OS on Zedboard Successfully,

Now iam trying to running c,c++ codes on xilinx Linux of Zed-Board,Those are executing fine,
But my codes having some hexadecimal input data,i want to move those to DDR memory loacation's of Zedboard usnig xilinux Linux OS,

Can any provide some help for communicating the DDR of
ZedBoard(on xilinux Linux) and provide sample links's for this Communication.

I searched and tried some exaples on ZedBoard.org,this
communication can done through using Standalone OS,In standalone OS,provided some API's,Macro's for this interaction with DDR of ZEDboard and Also some sample
examples provided in Zedboard.org.

Now same way i want to perform some RD/WR operations on DDR of Zedboard using xilinx Linux OS.....

Can any one please suggest me for this DDR interaction through xilinx Linux....

eli's picture
eli
Junior(1)
Answered here...

I attempted to answer this on the separate thread you started:

http://www.zedboard.org/content/how-communicate-ddr-memory-locations-zed...

Eli

eactor's picture
eactor
Junior(4)
missing lib

Hello I had a missing lib in helloworld example.

It could be solved including it with gcc -static in.c -o out

Or figuring out which lib is missing, with readelf -a within the Linaro Linux. For me it was a missing link between lib/ld-linux.so.3 to lib/arm-linux-gnueabihf/ld-2.15.so

http://stackoverflow.com/questions/16935168/cross-compile-helloworld-for...