Changes between Initial Version and Version 1 of pyclutter_compile_raw_notes


Ignore:
Timestamp:
Apr 22, 2011, 1:43:52 AM (13 years ago)
Author:
Martin Kolman
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • pyclutter_compile_raw_notes

    v1 v1  
     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
     10libffi4-dev
     11libjson-glib-dev
     12gobject-introspection
     13
     14export PATH=/opt/bin:$PATH
     15export LD_LIBRARY_PATH=/opt/lib:/lib:/usr/lib:/usr/local/lib:/usr/X11R6/lib
     16export PKG_CONFIG_PATH=/opt/lib/pkgconfig/
     17
     18./configure --enable-gtk-doc --enable-docs=yes --enable-introspection=yes
     19
     20checking 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'
     28collect2: ld returned 1 exit status
     29make[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
     34In file included from gfield.c:4:
     35girffi.h:24:17: error: ffi.h: No such file or directory
     36In file included from gfield.c:4:
     37girffi.h:29: error: expected ')' before '*' token
     38girffi.h:37: error: expected specifier-qualifier-list before 'ffi_cif'
     39girffi.h:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
     40girffi.h:52: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
     41girffi.h:57: error: expected declaration specifiers or '...' before 'ffi_closure'
     42make[2]: *** [libgirepository_1_0_la-gfield.lo] Error 1
     43
     44
     45
     46}}}
     47
     48
     49Compiling gobject-introspection in Maemo scratchbox
     50{{{
     511. install libffi-dev
     522. symlink libffi header files to correct place
     53{{{
     54fakeroot ln -s /usr/include/arm-linux-gnueabi/ffi.h /usr/include/ffi.h
     55fakeroot ln -s /usr/include/arm-linux-gnueabi/ffitarget.h /usr/include/ffitarget.h
     56}}}
     573. comment out offending constructs in /targets/FREMANTLE_ARMEL/usr/include/sys/stat.h
     58
     594. apply:
     60
     61diff --git a/giscanner/shlibs.py b/giscanner/shlibs.py
     62index 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
     100Compiling Clutter 1.4.2 (newest clutter version working on glib 2.20)
     1011. compile and install gobject-introspection with patches from Extras-devel Gobject-introspection package (ld patch and tests removal patch)
     1022. compile atk with gir support
     1033. compile Pango with git support
     1043. 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
     109Compiling 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{{{
     115export PATH=/opt/bin:$PATH
     116export LD_LIBRARY_PATH=/opt/lib:/lib:/usr/lib:/usr/local/lib:/usr/X11R6/lib
     117export PKG_CONFIG_PATH=/opt/lib/pkgconfig/
     118}}}
     119
     120
     1211. compile & install glib 2.26+ to /opt/new
     1222. compile and install to /opt/new pixman 1.18.4 - remove test from SUBDIRS in makefiles or build fails
     1233. compile and install to /opt/new cairo
     1244. configure Clutter 1.6.2
     125
     126{{{
     127./configure --enable-gtk-doc --enable-docs=yes --enable-introspection=yes --prefix=/opt
     128}}}
     129