Re: [gtk-list] Cross compile glib for ARM

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

 



Im not following the steps from that but it serves me as the basis on
what package should be natively compiled first before cross
compilation.

Since you're cross compiling gtk, the package that needs to be
natively compiled are glib ang pango. I have no idea about cairo yet
if the version of gtk you're cross compiling needs cairo.

When Cross compiling, environment variable that should be considered are
  PATH and PKG_CONFIG_PATH
These variables must be set/unset correctly to avoid leading the
compilers to use the PC's package that gtk need.

Good luck...

On 1/5/06, mike lee <mikelee@xxxxxxxxxxxxx> wrote:
> Xyber Blue wrote:
>
> >Hi Mike,
> >
> >I got the idea of cross compiling gtk from this site....
> >
> >http://64.233.167.104/search?q=cache:2rrnhkoB_2sJ:www.superhlinux.com/user_guide/getting_started/gtk2_cross_compile.php3%3Fprint%3D1+%22The+STMicroelectronics+Embedded+Linux+Distribution%22&hl=tl&client=firefox-a
> >
> >
>  That site describe quite detail. Also it is for SH platform, let me see
> whether it can use in ARM.
>
> >It's unavailable now, I just search it from its cache.
> >
> >I hope this will help...
> >
> >By the way, did you already follow the steps that i gave while ago???
> >
> >
> I use similar method to compile glib successfully. Thanks
>
> >
> >On 1/5/06, mike lee <mikelee@xxxxxxxxxxxxx> wrote:
> >
> >
> >>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@xxxxxxxxxxxxx> wrote:
> >>>
> >>>
> >>>
> >>>
> >>>>mpsuzuki@xxxxxxxxxxxxxxxxx wrote:
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>Hi
> >>>>>
> >>>>>On Thu, 05 Jan 2006 10:49:04 +0800
> >>>>>mike lee <mikelee@xxxxxxxxxxxxx> 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@xxxxxxxxx
> >>>http://mail.gnome.org/mailman/listinfo/gtk-list
> >>>
> >>>
> >>>
> >>>
> >>>
> >>--
> >>Software Engineer
> >>Mike Lee
> >>AvantWave Ltd.
> >>Direct: (852) 2952 7125
> >>
> >>_______________________________________________
> >>
> >>gtk-list@xxxxxxxxx
> >>http://mail.gnome.org/mailman/listinfo/gtk-list
> >>
> >>
> >>
> >
> >
> >
>
>
> --
> Software Engineer
> Mike Lee
> AvantWave Ltd.
> Direct: (852) 2952 7125
>
>
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list


[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux