Author Topic: GTK2 toolchain and rootfs released  (Read 8282 times)

batman52 (OP)

  • Posts: 111
Re: Compiling GTK2 over directFB [WiP]
« Reply #20 on: December 02, 2009, 01:40:10 pm »
I feel like I'm definitively not up to the task: I'm stuck again in compiling pango (it has a numer of issues...).
I'm confident that I could be able to get compiled ingenic sources, but is it worth now that we know that openwrt could go too?

vimrc

  • Posts: 66
Re: Compiling GTK2 over directFB [WiP]
« Reply #21 on: December 02, 2009, 02:04:23 pm »
You can define MB_CUR_MAX in your config.h yourself, just add:
Code: [Select]
#define MB_CUR_MAX 1  
I think this is the last obstacle.

Yes, pango is a problem, but I am sure these versions are compatible:
Pango 1.16.4, Pango.1.22
GTK+2.10.14 and GTK+2.11, GTK+2.12
« Last Edit: December 03, 2009, 08:00:34 pm by vimrc »

batman52 (OP)

  • Posts: 111
Re: Compiling GTK2 over directFB [WiP]
« Reply #22 on: December 02, 2009, 03:01:36 pm »
You can define MB_CUR_MAX in your config.h yourself, just add:
Code: [Select]
#define MB_CUR_MAX 1  
I think this is the last obstacle.
I solved that: after reading yourt mail I realized i wasn't applying your patched files in my script (me stupid!).

Quote
Yes, pango is a problem, but I am sure these versions are compatible:
Pango 1.16.4
GTK+2.10.14 and GTK+2.11

These are the versions from ingenic: pango compiled flawless, but new errors with GTK (i applied the ingenic patch):
Code: [Select]
mipsel-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DG_LOG_DOMAIN=\"Gdk-DirectFB\" -DGDK_COMPILATION -I../.. -I../../gdk -I../../gdk -DG_DISABLE_DEPRECATED -DG_DISABLE_CAST_CHECKS -pthread -D_REENTRANT -I/opt/mipsel-linux-uclibc/usr/include/glib-2.0 -I/opt/mipsel-linux-uclibc/usr/lib/glib-2.0/include -I/opt/mipsel-linux-uclibc/usr/include/pango-1.0 -I/opt/mipsel-linux-uclibc/usr/include/cairo -I/opt/mipsel-linux-uclibc/usr/include/pixman-1 -I/opt/mipsel-linux-uclibc/usr/include/freetype2 -I/opt/mipsel-linux-uclibc/usr/include -I/opt/mipsel-linux-uclibc/usr/include/directfb -I/usr/include/libpng12 -D_REENTRANT -I/opt/mipsel-linux-uclibc/usr/include/cairo -I/opt/mipsel-linux-uclibc/usr/include/directfb -I/opt/mipsel-linux-uclibc/usr/include/pixman-1 -I/opt/mipsel-linux-uclibc/usr/include/freetype2 -I/opt/mipsel-linux-uclibc/usr/include -I/usr/include/libpng12 -I/opt/mipsel-linux-uclibc//include -Wall -MT gdkcursor-directfb.lo -MD -MP -MF .deps/gdkcursor-directfb.Tpo -c gdkcursor-directfb.c  -fPIC -DPIC -o .libs/gdkcursor-directfb.o
gdkcursor-directfb.c: In function 'IA__gdk_cursor_new_for_display':
gdkcursor-directfb.c:231: error: '__u32' undeclared (first use in this function)
gdkcursor-directfb.c:231: error: (Each undeclared identifier is reported only once
gdkcursor-directfb.c:231: error: for each function it appears in.)
gdkcursor-directfb.c:231: error: 'dst' undeclared (first use in this function)
gdkcursor-directfb.c:269: error: expected ';' before 'color'
gdkcursor-directfb.c:274: error: '__u8' undeclared (first use in this function)
gdkcursor-directfb.c:274: error: expected ';' before 'a'
gdkcursor-directfb.c:275: error: expected ';' before 'alpha'
gdkcursor-directfb.c:277: error: 'alpha' undeclared (first use in this function)
gdkcursor-directfb.c:277: error: 'color' undeclared (first use in this function)
gdkcursor-directfb.c:267: warning: unused variable 'mbit'
gdkcursor-directfb.c:266: warning: unused variable 'bit'
make[4]: *** [gdkcursor-directfb.lo] Errore 1
« Last Edit: December 02, 2009, 03:03:09 pm by batman52 »

vimrc

  • Posts: 66
Re: Compiling GTK2 over directFB [WiP]
« Reply #23 on: December 03, 2009, 07:58:28 pm »
Add the following statements into gdkcursor-directfb.c or config.h:
Code: [Select]
#define __u32 u32
#define __u8 u8

I also remembered I met an error when compiling sth in /demos, so if you met the same
problem, just remove /demos directory in Makefile:

Code: [Select]
#SRC_SUBDIRS = gdk-pixbuf gdk gtk modules demos tests perf contrib
SRC_SUBDIRS = gdk-pixbuf gdk gtk modules tests perf contrib

I remembered I just met these two problems in GTK.

batman52 (OP)

  • Posts: 111
Re: Compiling GTK2 over directFB [WiP]
« Reply #24 on: December 04, 2009, 03:27:40 pm »
Wow! It looks like it finally worked! :D
All you out should thank vimrc!

I still need some testing, and try to configure the directfb (I think i read that i could set the setup folder with something config switch, avoinding to create a mirror folder on the compiling machine), then I'll post sources and toolchain as soon as possible.

 

Post a new topic