On Dec 1, 2013, at 1:09 PM, Pascal <p....@orange.fr> wrote:

> Hello Pierre,
> yes building gobject-introspection on MacOS is a actually a nightmare :-(

It works OK 99% of the time for me, but as I told Pierre, I usually build 
Python into the gtk prefix. It seems to work better than relying on Apple's 
Python for 

> For instance I couldn't find include 'GdkPixbuf-2.0.gir'

It should be in $PREFIX/share/gir-1.0/.

> Gobject-introspection module seems to be optional in GTK+, is it really the 
> case?

Well, it *should* be optional, but configure.ac wants introspection.m4, which 
is provided by gobject-introspection. 
If you don't actually need introspection for something (gtkmm and pygobject are 
the most popular, but there are plenty of other uses), you could work around it 
by copying introspection.m4 to $PREFIX/share/aclocal/ and skipping the build of 
GI.

> 
> 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
> 

What have you got going in /usr/local/include? You're not using that as your 
prefix, are you? 

Regards,
John Ralls

_______________________________________________
Gtk-osx-users-list mailing list
Gtk-osx-users-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-osx-users-list

Reply via email to