| 56 | | {{{ |
| 57 | | |
| 58 | | # compile dependencies |
| 59 | | libffi4-dev |
| 60 | | libjson-glib-dev |
| 61 | | gobject-introspection |
| 62 | | |
| 63 | | export PATH=/opt/bin:$PATH |
| 64 | | export LD_LIBRARY_PATH=/opt/lib:/lib:/usr/lib:/usr/local/lib:/usr/X11R6/lib |
| 65 | | export PKG_CONFIG_PATH=/opt/lib/pkgconfig/ |
| 66 | | |
| 67 | | ./configure --enable-gtk-doc --enable-docs=yes --enable-introspection=yes |
| 68 | | |
| 69 | | checking for XEXT extension... configure: error: Not found ???? |
| 70 | | |
| 71 | | |
| 72 | | # libffi4-dev: |
| 73 | | CCLD g-ir-compiler |
| 74 | | ../girepository/.libs/libgirepository-1.0.so: undefined reference to `ffi_prep_closure_loc' |
| 75 | | ../girepository/.libs/libgirepository-1.0.so: undefined reference to `ffi_closure_free' |
| 76 | | ../girepository/.libs/libgirepository-1.0.so: undefined reference to `ffi_closure_alloc' |
| 77 | | collect2: ld returned 1 exit status |
| 78 | | make[2]: *** [g-ir-compiler] Error 1 |
| 79 | | |
| 80 | | # libffi-dev: |
| 81 | | CC libgirepository_1_0_la-gdump.lo |
| 82 | | CC libgirepository_1_0_la-gfield.lo |
| 83 | | In file included from gfield.c:4: |
| 84 | | girffi.h:24:17: error: ffi.h: No such file or directory |
| 85 | | In file included from gfield.c:4: |
| 86 | | girffi.h:29: error: expected ')' before '*' token |
| 87 | | girffi.h:37: error: expected specifier-qualifier-list before 'ffi_cif' |
| 88 | | girffi.h:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token |
| 89 | | girffi.h:52: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token |
| 90 | | girffi.h:57: error: expected declaration specifiers or '...' before 'ffi_closure' |
| 91 | | make[2]: *** [libgirepository_1_0_la-gfield.lo] Error 1 |
| 92 | | |
| 93 | | |
| 94 | | |
| 95 | | }}} |
| 96 | | |
| 97 | | |
| 98 | | Compiling gobject-introspection in Maemo scratchbox |
| 99 | | {{{ |
| 100 | | 1. install libffi-dev |
| 101 | | 2. symlink libffi header files to correct place |
| 102 | | {{{ |
| 103 | | fakeroot ln -s /usr/include/arm-linux-gnueabi/ffi.h /usr/include/ffi.h |
| 104 | | fakeroot ln -s /usr/include/arm-linux-gnueabi/ffitarget.h /usr/include/ffitarget.h |
| 105 | | }}} |
| 106 | | 3. comment out offending constructs in /targets/FREMANTLE_ARMEL/usr/include/sys/stat.h |
| 107 | | |
| 108 | | 4. apply: |
| 109 | | |
| 110 | | diff --git a/giscanner/shlibs.py b/giscanner/shlibs.py |
| 111 | | index cac4fdf..26c2f02 100644 |
| 112 | | --- a/giscanner/shlibs.py |
| 113 | | +++ b/giscanner/shlibs.py |
| 114 | | @@ -71,7 +71,7 @@ def _resolve_non_libtool(options, binary, libraries): |
| 115 | | if libtool: |
| 116 | | args.extend(libtool) |
| 117 | | args.append('--mode=execute') |
| 118 | | - args.extend(['ldd', '--list', binary.args[0]]) |
| 119 | | + args.extend(['/lib/ld-2.5.so', '--list', binary.args[0]]) |
| 120 | | proc = subprocess.Popen(args, stdout=subprocess.PIPE) |
| 121 | | patterns = {} |
| 122 | | for library in libraries: |
| 123 | | |
| 124 | | --- Makefile.am~ 2009-05-28 12:43:16.000000000 -0300 |
| 125 | | +++ Makefile.am 2009-06-23 16:57:10.000000000 -0300 |
| 126 | | @@ -18,7 +18,7 @@ |
| 127 | | |
| 128 | | ACLOCAL_AMFLAGS = -I m4 |
| 129 | | |
| 130 | | -SUBDIRS = girepository giscanner tools gir docs tests examples |
| 131 | | +SUBDIRS = girepository giscanner tools gir docs examples |
| 132 | | DIST_SUBDIRS = m4 $(SUBDIRS) |
| 133 | | |
| 134 | | man_MANS = \ |
| 135 | | --- Makefile.in~ 2009-06-21 18:38:36.000000000 -0300 |
| 136 | | +++ Makefile.in 2009-06-23 16:57:09.000000000 -0300 |
| 137 | | @@ -262,7 +262,7 @@ |
| 138 | | GCOVSOURCES = |
| 139 | | @GI_GCOV_ENABLED_TRUE@GCOV_DIRS = girepository tools |
| 140 | | ACLOCAL_AMFLAGS = -I m4 |
| 141 | | -SUBDIRS = girepository giscanner tools gir docs tests examples |
| 142 | | +SUBDIRS = girepository giscanner tools gir docs examples |
| 143 | | DIST_SUBDIRS = m4 $(SUBDIRS) |
| 144 | | man_MANS = \ |
| 145 | | docs/g-ir-compiler.1 \ |
| 146 | | |
| 147 | | }}} |
| 148 | | |
| 149 | | Compiling Clutter 1.4.2 (newest clutter version working on glib 2.20) |
| 150 | | 1. compile and install gobject-introspection with patches from Extras-devel Gobject-introspection package (ld patch and tests removal patch) |
| 151 | | 2. compile atk with gir support |
| 152 | | 3. compile Pango with git support |
| 153 | | 3. compile JSON glib with gir support |
| 154 | | |
| 155 | | ./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 |
| 156 | | |
| 157 | | |
| 158 | | Compiling Clutter 1.6.2 with gobject introspection in maemo scratchbox |
| 159 | | |
| 160 | | * ./configure everything with --prefix=/opt |
| 161 | | * use the folowing to load the newly compiled versions instead of the installed versions: |
| 162 | | |
| 163 | | {{{ |
| 164 | | export PATH=/opt/bin:$PATH |
| 165 | | export LD_LIBRARY_PATH=/opt/lib:/lib:/usr/lib:/usr/local/lib:/usr/X11R6/lib |
| 166 | | export PKG_CONFIG_PATH=/opt/lib/pkgconfig/ |
| 167 | | }}} |
| 168 | | |
| 169 | | |
| 170 | | 1. compile & install glib 2.26+ to /opt/new |
| 171 | | 2. compile and install to /opt/new pixman 1.18.4 - remove test from SUBDIRS in makefiles or build fails |
| 172 | | 3. compile and install to /opt/new cairo |
| 173 | | 4. configure Clutter 1.6.2 |
| 174 | | |
| 175 | | {{{ |
| 176 | | ./configure --enable-gtk-doc --enable-docs=yes --enable-introspection=yes --prefix=/opt |
| 177 | | }}} |
| 178 | | |
| 179 | | |
| 180 | | |
| 181 | | |
| 182 | | |