There were some prototypes for Yocto that did this by running the
introspection programs inside of Qemu.

Not sure on the status though.

-- Christian


On 08/12/2014 10:31 PM, Tristan Van Berkom wrote:
> On Wed, 2014-08-13 at 09:09 +0800, Rongqing Li wrote:
>> Hi:
>>
>>     I want to compile gobject-introspection for arm cpu in x86 host,
>> both are linux OS. The compilation failed since g-ir-compiler
>> (compiled for arm) can not run on x86.
>>
>>     Could you tell me if it supports the cross-compile, if not, what
>> should I do to enable it? is it possible that I use the host's
>> g-ir-compiler/g-ir-scanner to compiler the target(arm cpu) file.
> 
> This sounds like a typical problem you will run into when cross
> compiling your stack, pkg-config is another example.
> 
> There are probably a number of techniques you can use, and one
> option to consider is to just actually build on the target
> arch. If you must cross-compile, one project which I've
> used with success is buildroot[0], this solves the said problem
> by building two stacks, one 'staging' stack which contains
> tools compiled for the build host arch, and then the target
> stack which is cross compiled, executing binaries from the
> 'staging' build directory.
> 
> Cheers,
>     -Tristan
> 
> PS: fwiw there is also a new gobject-introspection mailing list:
>     https://mail.gnome.org/mailman/listinfo/gir-devel-list
> 
> [0]:http://buildroot.uclibc.org/
> 
>>
>>
>> -Roy
>>
>>
>> | ./g-ir-compiler: line 117: 
>> /buildarea1/lirq/mips/bitbake_build/tmp/work/mips64-wrs-linux/gobject-introspection/1.40.0-r0/build/.libs/lt-g-ir-compiler:
>>  
>> cannot execute binary file: Exec format error
>> | ./g-ir-compiler: line 117: 
>> /buildarea1/lirq/mips/bitbake_build/tmp/work/mips64-wrs-linux/gobject-introspection/1.40.0-r0/build/.libs/lt-g-ir-compiler:
>>  
>> Success
>> | make[2]: *** [gir/xfixes-4.0.typelib] Error 126
>> | ./g-ir-compiler: line 117: 
>> /buildarea1/lirq/mips/bitbake_build/tmp/work/mips64-wrs-linux/gobject-introspection/1.40.0-r0/build/.libs/lt-g-ir-compiler:
>>  
>> cannot execute binary file: Exec format error
>> | ./g-ir-compiler: line 117: 
>> /buildarea1/lirq/mips/bitbake_build/tmp/work/mips64-wrs-linux/gobject-introspection/1.40.0-r0/build/.libs/lt-g-ir-compiler:
>>  
>> Success
>> | make[2]: *** [gir/xlib-2.0.typelib] Error 126
>> | Traceback (most recent call last):
>> |   File "./g-ir-scanner", line 44, in <module>
>> |     from giscanner.scannermain import scanner_main
>> |   File 
>> "/buildarea1/lirq/mips/bitbake_build/tmp/work/mips64-wrs-linux/gobject-introspection/1.40.0-r0/gobject-introspection-1.40.0/giscanner/scannermain.py",
>>  
>> line 35, in <module>
>> |     from giscanner.dumper import compile_introspection_binary
>> |   File 
>> "/buildarea1/lirq/mips/bitbake_build/tmp/work/mips64-wrs-linux/gobject-introspection/1.40.0-r0/gobject-introspection-1.40.0/giscanner/dumper.py",
>>  
>> line 28, in <module>
>> |     from .gdumpparser import IntrospectionBinary
>> |   File 
>> "/buildarea1/lirq/mips/bitbake_build/tmp/work/mips64-wrs-linux/gobject-introspection/1.40.0-r0/gobject-introspection-1.40.0/giscanner/gdumpparser.py",
>>  
>> line 31, in <module>
>> |     from .transformer import TransformerException
>> |   File 
>> "/buildarea1/lirq/mips/bitbake_build/tmp/work/mips64-wrs-linux/gobject-introspection/1.40.0-r0/gobject-introspection-1.40.0/giscanner/transformer.py",
>>  
>> line 27, in <module>
>> |     from .girparser import GIRParser
>> _______________________________________________
>> gtk-devel-list mailing list
>> gtk-devel-list@gnome.org
>> https://mail.gnome.org/mailman/listinfo/gtk-devel-list
> 
> 
> _______________________________________________
> gtk-devel-list mailing list
> gtk-devel-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/gtk-devel-list
> 
_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-devel-list

Reply via email to