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: "Dunge2" <>
Date: Sat, 15 Aug 2009 00:36:30 -0000
--- In  "andy.shinsel" <> wrote:
> Sorry I missed that, you might also want to change /bin/sh to point to 
> /bin/bash instead of dash.
> 
> This really caught my attention:
> > > I tried on two different computer, one on Debian, the other on Ubuntu. 
> > > After about 1h after I call ./ct-ng build, I get the same error:
> 
> After an hour?  Make sure that you set the flags properly for multiple 
> process building.  On my Quad Core, i set it to 8, and my total compile time 
> is about 15 minutes.  On my dual core laptop, I set it to 4, and it takes 
> around 40 minutes or so.
>

Hello, thanks for answering.
Yeah don't worry about the time, I just let your config file 
"CT_PARALLEL_JOBS=8" while I was on a single core computer. I tried later on my 
core2duo with build.4 and it went quite fast.

I'm having a bit of trouble of what to do next though. If I understood 
correctly, I can use this toolchain to build optional libs with all their 
dependencies, which I would then copy to the ts-provided debian-armel rootfs to 
use them.

So I want to build multiple libs from source to create some kind of rootfs with 
everything under the sys-root directory.

I want to build to following libs (not in this order):
glib, gtk+, pango, pixman, cairomm, cairo, libsigc++, glibmm, fontconfig, 
gtkmm, freetype, glade3, libglademm. I guess cairo and freetype can gain a lot 
from the FPU support.

I have set the following envvar:
CPPFLAGS="-I/home/dunge/x-tools/arm-ep9312-linux-gnueabi/arm-ep9312-linux-gnueabi/sys-root/usr/include"
LDFLAGS="-L/home/dunge/x-tools/arm-ep9312-linux-gnueabi/arm-ep9312-linux-gnueabi/sys-root/usr/lib"
PKG_CONFIG_PATH="/home/dunge/x-tools/arm-ep9312-linux-gnueabi/arm-ep9312-linux-gnueabi/sys-root/usr/lib/pkgconfig"
LD_LIBRARY_PATH="/home/dunge/x-tools/arm-ep9312-linux-gnueabi/arm-ep9312-linux-gnueabi/sys-root/usr/lib"
PATH="/home/dunge/x-tools/arm-ep9312-linux-gnueabi/arm-ep9312-linux-gnueabi/sys-root/usr/bin:/home/dunge/x-tools/arm-ep9312-linux-gnueabi/bin:$PATH"
export CPPFLAGS LDFLAGS PKG_CONFIG_PATH LD_LIBRARY_PATH PATH

I then call the libs configure script with these parameters:
--host=arm-ep9312-linux-gnueabi 
--prefix=/home/dunge/x-tools/arm-ep9312-linux-gnueabi/arm-ep9312-linux-gnueabi/sys-root/usr

Problem is, when I run make and make install afterward, it still try to link 
against libs and include files in /usr/* and obv fail.

I understand some libs needs other customs configure commands, likes 
--sysconfdir or --with-arch, or god know what. I could make everything point to 
the crosstool sys-root path, but how do you know what you should pass when it's 
documented nowhere?.



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

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