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: Sat, 15 Aug 2009 19:57:50 -0000
--- In  "Dunge2" <> wrote:

> How to get past that? Modify every .pc file at hand, and then re-modify them 
> back to what they are now when you finished cross-compiling everything?

You're right...I just looked at how I did some other cross compilation (ia64 to 
i386) and I actually set the prefix to something other than /usr when cross 
compiling stuff and didn't use DESTDIR. (I did still use PKG_CONFIG_PATH and 
PKG_CONFIG_LIBDIR). That allowed pkgconfig to work correctly even when cross 
compiling.

You could change the --prefix to be your sys-root, although it may cause some 
libraries to get confused at runtime if they use that prefix to open config 
files, etc.

You could also change the --prefix to be something different from /usr but 
common between your development and target system.

e.g. compile with --prefix=/opt/cross, and then copy the /opt/cross folder from 
your development system to your target system, also calling it /opt/cross on 
the target system. Then add the correct directories to LD_LIBRARY_PATH on the 
target system.

Or, as you said earlier, I would assume that changing the .pc files manually 
would also suffice. I believe they're only necessary for compiling anyway, so 
they probably don't even need to be on the target system. This is probably what 
I would do honestly. I'm pretty sure it would work just fine.



------------------------------------

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