--- In "Dunge2" <> wrote:
>
> Well it don't. Don't seems sufficient because it still tells me
> /usr/libsigc-2.0.so is in wrong format. If I check the config.log file, I can
> see things like:
> prefix='/usr'
> exec_prefix='${prefix}'
> libdir='${exec_prefix}/lib'
> includedir='${prefix}/include'
>
> So I guess it's important that the prefix point to the ARM sys-root path,
> even when crosscompiling.
I just replicated your steps and saw the same problem and realized what was
wrong. It is the .la files in your sys-root/usr/lib folder. They're telling the
linker to look in the wrong place because of the /usr prefix. Modifying the
pkg-config files manually did work though. I looked at the Makefile where it
was failing and it did have the correct libraries being used.
I don't know how "right" this is to do, but I moved the .la files that were
installed from the previous dependencies out of the sys-root/usr/lib folder,
and now glibmm compiles correctly. With --prefix=/usr. The .la files contained
dependency information that was making the linker look in the wrong place. I
would definitely keep them on the target system but I guess you don't want them
in the toolchain, or at least want them to point to the correct location in the
toolchain.
Not sure why you saw the error when you installed everything into a different
directory, though. But this should work.
Cross compiling is definitely an art, not a science. haha...hope this helps. I
was wrong in assuming that it would work by just changing the .pc files. Looks
like you have to remove/modify the .la files too.
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|