Cross compile glib for ARM



Hi all
  Does glib/gtk support cross compile? Do i need any other patch?

  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

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

Making all in gobject
make[2]: Entering directory `/home/mike/embedded/GUI/glib-2.0.6/gobject'
arm-linux-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"GLib-GObject\" -I.. -I../glib -I.. -DGOBJECT_COMPILATION -DG_DISABLE_CONST_RETURNS -g -O2 -Wall -D_REENTRANT -c glib-genmarshal.c /bin/sh ../libtool --mode=link arm-linux-gcc -g -O2 -Wall -D_REENTRANT -o glib-genmarshal glib-genmarshal.o ../glib/libglib-2.0.la arm-linux-gcc -g -O2 -Wall -D_REENTRANT -o .libs/glib-genmarshal glib-genmarshal.o ../glib/.libs/libglib-2.0.so -Wl,--rpath -Wl,/usr/local/lib
creating glib-genmarshal
echo "#ifndef __G_MARSHAL_H__" > xgen-gmh \
&& echo "#define __G_MARSHAL_H__" >> xgen-gmh \
&& ./glib-genmarshal --nostdinc --prefix=g_cclosure_marshal ./gmarshal.list --header >> xgen-gmh \
&& echo "#endif /* __G_MARSHAL_H__ */" >> xgen-gmh \
&& (cmp -s xgen-gmh ./gmarshal.h || cp xgen-gmh ./gmarshal.h) \
&& rm -f xgen-gmh xgen-gmh~ \
&& echo timestamp > stamp-gmarshal.h
./glib-genmarshal: line 109: /home/mike/embedded/GUI/glib-2.0.6/gobject/.libs/lt-glib-genmarshal: cannot execute binary file ./glib-genmarshal: line 109: /home/mike/embedded/GUI/glib-2.0.6/gobject/.libs/lt-glib-genmarshal: Success
make[2]: *** [stamp-gmarshal.h] Error 1
make[2]: Leaving directory `/home/mike/embedded/GUI/glib-2.0.6/gobject'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mike/embedded/GUI/glib-2.0.6'
make: *** [all-recursive-am] Error 2

Thx
Mike,Lee




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]