| | 1 | |
| | 2 | == RAW clutter 1.4 - 1.6 & Gobject Introspection compilation notes == |
| | 3 | '''these notes concern compiling Clutter with GI support in the Maemo SDK scratchbox ARMEL target.''' |
| | 4 | |
| | 5 | |
| | 6 | |
| | 7 | {{{ |
| | 8 | |
| | 9 | # compile dependencies |
| | 10 | libffi4-dev |
| | 11 | libjson-glib-dev |
| | 12 | gobject-introspection |
| | 13 | |
| | 14 | export PATH=/opt/bin:$PATH |
| | 15 | export LD_LIBRARY_PATH=/opt/lib:/lib:/usr/lib:/usr/local/lib:/usr/X11R6/lib |
| | 16 | export PKG_CONFIG_PATH=/opt/lib/pkgconfig/ |
| | 17 | |
| | 18 | ./configure --enable-gtk-doc --enable-docs=yes --enable-introspection=yes |
| | 19 | |
| | 20 | checking for XEXT extension... configure: error: Not found ???? |
| | 21 | |
| | 22 | |
| | 23 | # libffi4-dev: |
| | 24 | CCLD g-ir-compiler |
| | 25 | ../girepository/.libs/libgirepository-1.0.so: undefined reference to `ffi_prep_closure_loc' |
| | 26 | ../girepository/.libs/libgirepository-1.0.so: undefined reference to `ffi_closure_free' |
| | 27 | ../girepository/.libs/libgirepository-1.0.so: undefined reference to `ffi_closure_alloc' |
| | 28 | collect2: ld returned 1 exit status |
| | 29 | make[2]: *** [g-ir-compiler] Error 1 |
| | 30 | |
| | 31 | # libffi-dev: |
| | 32 | CC libgirepository_1_0_la-gdump.lo |
| | 33 | CC libgirepository_1_0_la-gfield.lo |
| | 34 | In file included from gfield.c:4: |
| | 35 | girffi.h:24:17: error: ffi.h: No such file or directory |
| | 36 | In file included from gfield.c:4: |
| | 37 | girffi.h:29: error: expected ')' before '*' token |
| | 38 | girffi.h:37: error: expected specifier-qualifier-list before 'ffi_cif' |
| | 39 | girffi.h:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token |
| | 40 | girffi.h:52: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token |
| | 41 | girffi.h:57: error: expected declaration specifiers or '...' before 'ffi_closure' |
| | 42 | make[2]: *** [libgirepository_1_0_la-gfield.lo] Error 1 |
| | 43 | |
| | 44 | |
| | 45 | |
| | 46 | }}} |
| | 47 | |
| | 48 | |
| | 49 | Compiling gobject-introspection in Maemo scratchbox |
| | 50 | {{{ |
| | 51 | 1. install libffi-dev |
| | 52 | 2. symlink libffi header files to correct place |
| | 53 | {{{ |
| | 54 | fakeroot ln -s /usr/include/arm-linux-gnueabi/ffi.h /usr/include/ffi.h |
| | 55 | fakeroot ln -s /usr/include/arm-linux-gnueabi/ffitarget.h /usr/include/ffitarget.h |
| | 56 | }}} |
| | 57 | 3. comment out offending constructs in /targets/FREMANTLE_ARMEL/usr/include/sys/stat.h |
| | 58 | |
| | 59 | 4. apply: |
| | 60 | |
| | 61 | diff --git a/giscanner/shlibs.py b/giscanner/shlibs.py |
| | 62 | index cac4fdf..26c2f02 100644 |
| | 63 | --- a/giscanner/shlibs.py |
| | 64 | +++ b/giscanner/shlibs.py |
| | 65 | @@ -71,7 +71,7 @@ def _resolve_non_libtool(options, binary, libraries): |
| | 66 | if libtool: |
| | 67 | args.extend(libtool) |
| | 68 | args.append('--mode=execute') |
| | 69 | - args.extend(['ldd', '--list', binary.args[0]]) |
| | 70 | + args.extend(['/lib/ld-2.5.so', '--list', binary.args[0]]) |
| | 71 | proc = subprocess.Popen(args, stdout=subprocess.PIPE) |
| | 72 | patterns = {} |
| | 73 | for library in libraries: |
| | 74 | |
| | 75 | --- Makefile.am~ 2009-05-28 12:43:16.000000000 -0300 |
| | 76 | +++ Makefile.am 2009-06-23 16:57:10.000000000 -0300 |
| | 77 | @@ -18,7 +18,7 @@ |
| | 78 | |
| | 79 | ACLOCAL_AMFLAGS = -I m4 |
| | 80 | |
| | 81 | -SUBDIRS = girepository giscanner tools gir docs tests examples |
| | 82 | +SUBDIRS = girepository giscanner tools gir docs examples |
| | 83 | DIST_SUBDIRS = m4 $(SUBDIRS) |
| | 84 | |
| | 85 | man_MANS = \ |
| | 86 | --- Makefile.in~ 2009-06-21 18:38:36.000000000 -0300 |
| | 87 | +++ Makefile.in 2009-06-23 16:57:09.000000000 -0300 |
| | 88 | @@ -262,7 +262,7 @@ |
| | 89 | GCOVSOURCES = |
| | 90 | @GI_GCOV_ENABLED_TRUE@GCOV_DIRS = girepository tools |
| | 91 | ACLOCAL_AMFLAGS = -I m4 |
| | 92 | -SUBDIRS = girepository giscanner tools gir docs tests examples |
| | 93 | +SUBDIRS = girepository giscanner tools gir docs examples |
| | 94 | DIST_SUBDIRS = m4 $(SUBDIRS) |
| | 95 | man_MANS = \ |
| | 96 | docs/g-ir-compiler.1 \ |
| | 97 | |
| | 98 | }}} |
| | 99 | |
| | 100 | Compiling Clutter 1.4.2 (newest clutter version working on glib 2.20) |
| | 101 | 1. compile and install gobject-introspection with patches from Extras-devel Gobject-introspection package (ld patch and tests removal patch) |
| | 102 | 2. compile atk with gir support |
| | 103 | 3. compile Pango with git support |
| | 104 | 3. compile JSON glib with gir support |
| | 105 | |
| | 106 | ./configure --prefix=/opt/new26 --disable-gtk-doc --enable-introspection=yes --with-flavour=eglx --with-gles=2.0 --enable-cogl-debug=no --with-json=internal --disable-maintainer-mode --build=arm-linux-gnueabi |
| | 107 | |
| | 108 | |
| | 109 | Compiling Clutter 1.6.2 with gobject introspection in maemo scratchbox |
| | 110 | |
| | 111 | * ./configure everything with --prefix=/opt |
| | 112 | * use the folowing to load the newly compiled versions instead of the installed versions: |
| | 113 | |
| | 114 | {{{ |
| | 115 | export PATH=/opt/bin:$PATH |
| | 116 | export LD_LIBRARY_PATH=/opt/lib:/lib:/usr/lib:/usr/local/lib:/usr/X11R6/lib |
| | 117 | export PKG_CONFIG_PATH=/opt/lib/pkgconfig/ |
| | 118 | }}} |
| | 119 | |
| | 120 | |
| | 121 | 1. compile & install glib 2.26+ to /opt/new |
| | 122 | 2. compile and install to /opt/new pixman 1.18.4 - remove test from SUBDIRS in makefiles or build fails |
| | 123 | 3. compile and install to /opt/new cairo |
| | 124 | 4. configure Clutter 1.6.2 |
| | 125 | |
| | 126 | {{{ |
| | 127 | ./configure --enable-gtk-doc --enable-docs=yes --enable-introspection=yes --prefix=/opt |
| | 128 | }}} |
| | 129 | |