Hello Pierre, yes building gobject-introspection on MacOS is a actually a nightmare :-( For instance I couldn't find include 'GdkPixbuf-2.0.gir' Gobject-introspection module seems to be optional in GTK+, is it really the case?
I found some help on: https://mail.gnome.org/archives/windows-devel-list/2012-July/msg00000.html I’ve got things better with: --- ./gobject-introspection-1.32.1/giscanner/sourcescanner.py.0 2013-08-03 19:15:03.000000000 +0200 +++ ./gobject-introspection-1.32.1/giscanner/sourcescanner.py 2013-08-03 19:33:03.000000000 +0200 @@ -274,7 +274,9 @@ defines = ['__GI_SCANNER__'] undefs = [] - cpp_args = os.environ.get('CC', 'cc').split() + cpp_args = os.environ.get('CC', 'gcc').split() + # On MINGW32 and MacOS with a custom prefix, headers like libintl.h are not found + cpp_args += os.environ.get('GI_SCANNER_INCLUDES', '').split() cpp_args += ['-E', '-C', '-I.', '-'] cpp_args += self._cpp_options $ ./configure $ GI_SCANNER_INCLUDES=/usr/local/include make $ make install HTH, Pascal. http://blady.pagesperso-orange.fr Le 1 nov. 2013 à 11:48, Pierre Boutillier <pierre.boutill...@laposte.net> a écrit : > I answer my own question : Yes it is mandatory because of autoreconf -i that > says > > gdk/Makefile.am:192: error: HAVE_INTROSPECTION does not appear in > AM_CONDITIONAL > > else ... > > So I'm back to my first problem, how can I tackle (on Darwin 10.8.0 Darwin > Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; > root:xnu-1504.15.3~1/RELEASE_I386 i386) > > /usr/include/dirent.h:132: syntax error, unexpected '^' in ' int > (^)(struct dirent *), int (^)(const void *, const void *)) __asm("_" > "scandir_b" "$INODE64");' at '^' > /usr/include/dirent.h:132: syntax error, unexpected ')', expecting identifier > or '(' in ' int (^)(struct dirent *), int (^)(const void *, const void *)) > __asm("_" "scandir_b" "$INODE64");' at ')' > /usr/include/dirent.h:132: syntax error, unexpected ',', expecting identifier > or '(' in ' int (^)(struct dirent *), int (^)(const void *, const void *)) > __asm("_" "scandir_b" "$INODE64");' at ',' > /usr/include/dirent.h:132: syntax error, unexpected ')', expecting identifier > or '(' in ' int (^)(struct dirent *), int (^)(const void *, const void *)) > __asm("_" "scandir_b" "$INODE64");' at ')' > /usr/include/libkern/i386/_OSByteOrder.h:49: syntax error, unexpected '{', > expecting ',' or ';' in '{' at '{' > /usr/include/libkern/i386/_OSByteOrder.h:58: syntax error, unexpected '{', > expecting ',' or ';' in '{' at '{' > /usr/include/libkern/i386/_OSByteOrder.h:96: syntax error, unexpected '{', > expecting ',' or ';' in '{' at '{' > /usr/include/stdlib.h:272: syntax error, unexpected '^' in 'int atexit_b(void > (^)(void));' at '^' > /usr/include/stdlib.h:274: syntax error, unexpected '^' in ' size_t, int > (^)(const void *, const void *));' at '^' > /usr/include/stdlib.h:274: syntax error, unexpected ',', expecting identifier > or '(' in ' size_t, int (^)(const void *, const void *));' at ',' > /usr/include/stdlib.h:274: syntax error, unexpected ')', expecting identifier > or '(' in ' size_t, int (^)(const void *, const void *));' at ')' > /usr/include/stdlib.h:301: syntax error, unexpected '^' in ' int > (^)(const void *, const void *));' at '^' > /usr/include/stdlib.h:301: syntax error, unexpected ',', expecting identifier > or '(' in ' int (^)(const void *, const void *));' at ',' > /usr/include/stdlib.h:301: syntax error, unexpected ')', expecting identifier > or '(' in ' int (^)(const void *, const void *));' at ')' > /usr/include/stdlib.h:307: syntax error, unexpected '^' in ' int > (^)(const void *, const void *));' at '^' > /usr/include/stdlib.h:307: syntax error, unexpected ',', expecting identifier > or '(' in ' int (^)(const void *, const void *));' at ',' > /usr/include/stdlib.h:307: syntax error, unexpected ')', expecting identifier > or '(' in ' int (^)(const void *, const void *));' at ')' > /usr/include/stdlib.h:313: syntax error, unexpected '^' in ' int > (^)(const void *, const void *));' at '^' > /usr/include/stdlib.h:313: syntax error, unexpected ',', expecting identifier > or '(' in ' int (^)(const void *, const void *));' at ',' > /usr/include/stdlib.h:313: syntax error, unexpected ')', expecting identifier > or '(' in ' int (^)(const void *, const void *));' at ')' > /usr/include/stdlib.h:319: syntax error, unexpected '^' in ' int > (^)(const void *, const void *));' at '^' > /usr/include/stdlib.h:319: syntax error, unexpected ',', expecting identifier > or '(' in ' int (^)(const void *, const void *));' at ',' > /usr/include/stdlib.h:319: syntax error, unexpected ')', expecting identifier > or '(' in ' int (^)(const void *, const void *));' at ')' > Traceback (most recent call last): > File "./g-ir-scanner", line 46, in <module> > sys.exit(scanner_main(sys.argv)) > File "./giscanner/scannermain.py", line 507, in scanner_main > write_output(data, options) > File "./giscanner/scannermain.py", line 407, in write_output > shutil.move(main_f_name, options.output) > File > "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/shutil.py", > line 264, in move > copy2(src, real_dst) > File > "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/shutil.py", > line 100, in copy2 > copystat(src, dst) > File > "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/shutil.py", > line 77, in copystat > os.chflags(dst, st.st_flags) > OSError: [Errno 45] Operation not supported: 'GLib-2.0.gir' > make[2]: *** [GLib-2.0.gir] Error 1 > make[1]: *** [all-recursive] Error 1 > make: *** [all] Error 2 > > All the best, > Pierre B. > > Le 1 nov. 2013 à 11:31, Pierre Boutillier <pierre.boutill...@laposte.net> a > écrit : > >> Hi, >> Sorry me again (By the way, am I in the good place by sending email or >> should I report bugs ?) >> >> Compiling gobject-introspection on MacOS 10.6 has always been a nightmare >> for and I really often end with the error message I copy/paste at the end of >> this message. >> >> This is not exactly my point here (even if having a working >> object-introspection would allow me to compile gtk3 …) >> I wonder if in >> https://git.gnome.org/browse/gtk-osx/plain/modulesets-stable/gtk-osx.modules >> >> <autotools id="gtk+" autogen-sh="autoreconf" >> autogenargs="--with-gdktarget=quartz --enable-quartz-relocation >> --disable-introspection"> >> and >> <dependencies> >> […] >> >> <dep package="gobject-introspection"/> >> </dependencies> >> >> >> are coherent … >> All the best, >> Pierre B. >> _______________________________________________ >> Gtk-osx-users-list mailing list >> Gtk-osx-users-list@gnome.org >> https://mail.gnome.org/mailman/listinfo/gtk-osx-users-list > > _______________________________________________ > Gtk-osx-users-list mailing list > Gtk-osx-users-list@gnome.org > https://mail.gnome.org/mailman/listinfo/gtk-osx-users-list _______________________________________________ Gtk-osx-users-list mailing list Gtk-osx-users-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-osx-users-list