chroot,ldd and shared libraries

Hi everybody,

I need to get this straight: if i compile a binary on my host machine and check it with ldd about shared libs I get this:

/opt/embebbed/qt-embedded-free-3.3.3/examples/hello # ldd hello => (0xffffe000) => /opt/embebbed/qt-embedded-free-3.3.3/lib/ (0x40015000) => /lib/ (0x4070b000) => /usr/lib/ (0x4070e000) => /lib/ (0x407ca000) => /lib/ (0x407ec000) => /lib/ (0x407f4000) /lib/ => /lib/ (0x40000000)

As you can see points to /opt/embebbed/qt-embedded-free-3.3.3/lib/, but that's not the directory the lib will be in on my target system!

How do I get the => to point to the right path on the host?

I did my homework and checked what i can do about this. I found chroot! Some people say you can use chroot to get this right. But how? Do I have to chroot my target root-filesystem, put the libraries there and compile my programs in this new root ?

All right, hope somebody can tell me about it!

thanx chris

Reply to
Christian Salbeck
Loading thread data ...

You are trying to solve a problem you don't have.

Install in one of the "standard" directories (e.g. /usr/lib) on the target, and run ldd there.


In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
Reply to
Paul Pluzhnikov

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.