ts-7000
[Top] [All Lists]

[ts-7000] Re: How to make an EABI cross compiler for ts boards, step by

To:
Subject: [ts-7000] Re: How to make an EABI cross compiler for ts boards, step by step
From: "Doug" <>
Date: Sun, 16 Aug 2009 00:27:47 -0000
--- 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/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU