element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
Software Application Development error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Avnet Boards Forums to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 10 replies
  • Subscribers 330 subscribers
  • Views 1634 views
  • Users 0 members are here
Related

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

Former Member
Former Member over 12 years ago

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..?

  • Sign in to reply
  • Cancel
  • Former Member
    0 Former Member over 12 years ago

    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

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • zedhed
    0 zedhed over 12 years ago

    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

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 12 years ago in reply to Former Member

    Thanks for ur reply....

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 12 years ago

    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....

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 12 years ago in reply to Former Member

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

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

      Eli

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • eactor
    0 eactor over 12 years ago in reply to Former Member

    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

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 12 years ago in reply to eactor

    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

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • eactor
    0 eactor over 12 years ago in reply to Former Member

    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?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • eactor
    0 eactor over 12 years ago in reply to Former Member

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

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • eactor
    0 eactor over 12 years ago

    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-arm/16941205#16941205

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube