Re: cross-compiling glib-1.2



hi joey:

2011/3/30 Allin Cottrell <cottrell wfu edu>:
> On Tue, 29 Mar 2011, joey kuo wrote:
>
>> while I run configure in glib-1.2.5, I got error message saying "checking
>> for extra flags to get ANSI library prototypes... configure: error: can not
>> run test program while cross compiling".
>
> google: cross-compiling glib
>
> Allin Cottrell
below is my experimence about cross compile Glib as mips,
http://lists-archives.org/gtk-devel/13231-some-question-about-cross-compile-glib2-28-2.html

To confugre the package ready for cross compile, I do the same as you
did by setting some parameters in a cache file.
then I will create a native one before the cross taget one.
to get some necessary binarries.

So far I can configure the package as mips, but I am still stuck at
messages as below:

what does "(process:6285): GLib-Genmarshal-WARNING **: unknown type:
VARIANT" mean?
make[3]: Leaving directory `/media/sdb1/software/glib/glib-2.28.2.mips/gobject'
echo "#ifndef __G_MARSHAL_H__" > xgen-gmh \
       && echo "#define __G_MARSHAL_H__" >> xgen-gmh \
       && /usr/bin/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 2>/dev/null || cp xgen-gmh gmarshal.h) \
       && rm -f xgen-gmh xgen-gmh~ \
       && echo timestamp > stamp-gmarshal.h

(process:6285): GLib-Genmarshal-WARNING **: unknown type: VARIANT
make[2]: *** [stamp-gmarshal.h] Error 1
make[2]: Leaving directory `/media/sdb1/software/glib/glib-2.28.2.mips/gobject'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/media/sdb1/software/glib/glib-2.28.2.mips'
make: *** [all] Error 2
#

If anyone has any idea, please let me know.
BR,
sophian


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