Re: [gtk-list] Cross compile glib for ARM
- From: mike lee <mikelee avantwave com>
- To: Antonio Gomes <tonikitoo gmail com>
- Cc: gtk-list gnome org
- Subject: Re: [gtk-list] Cross compile glib for ARM
- Date: Thu, 05 Jan 2006 13:50:19 +0800
Antonio Gomes wrote:
Hi,
Take a look at scratchbox (www.scratchbox.org) for a rapid cross
compile environment ;)
Actually, i have tried that before, but i accidently crash my root
path.... a nightmare....
if there is another way out i will choose that rather than this
On 1/4/06, mike lee <mikelee avantwave com> wrote:
mpsuzuki hiroshima-u ac jp wrote:
Hi
On Thu, 05 Jan 2006 10:49:04 +0800
mike lee <mikelee avantwave com> wrote:
I fail to cross compile latest glib 2.6 and also 2.0 with
./configure --prefix=/usr/local/arm/3.4.1/arm-linux --host=arm-linux
make
Check which CC is used in building. I suppose you will find
gcc is used instead of arm-linux-gcc. I think both of --host
and --build options are required to teach ./configure to work
for cross building. If you use --host only, ./configure simply
misunderstands "i am in arm-linux".
--build option is guessed correctly and it is recognized as cross
compiling, but it seem that glib can not accept cross compile.
In addition to, using "--prefix=/usr/local/arm/3.4.1/arm-linux"
is not recommended, because the built binaries will lookup
files (shared libraries, configuration files, messsage catalogues,
etc etc) from /usr/local/arm/3.4.1/arm-linux on your target system.
Also try to fake configure, but it fail to run glib-genmarshal which
can not excute in i386.
./configure
make CC=arm-linux-gcc LD=arm-linux-ld
When you execute ./configure, the environment is configured
to build on your host. It's too late to teach CC and LD.
It is the only way out for me.
--
--Antonio Gomes
if (yourJob == boring) {
// Go to the opensource community for (at least) having fun
sendRedirect ("http://www.whateveronlinux.org");
} else {
suck_it_up (you);
}
_______________________________________________
gtk-list mailing list
gtk-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-list
--
Software Engineer
Mike Lee
AvantWave Ltd.
Direct: (852) 2952 7125
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]