Re: [gtk-osx-users] gobject-introspection



Thanks John for the tip.
In fact, I use Ada bindings of GTK+ named GTKAda.
The GPL 2013 release (libre.adacore.com) requires GTK+ 3.4.1 with several dependancies as 
gobject-introspection.
As there is no binary release for MacOS, I’ve built all by my self with lot of difficulties specially with 
gobject-introspection so my question…
You’re right I should have written $prefix/include.

Regards, Pascal.
http://blady.pagesperso-orange.fr


Le 2 déc. 2013 à 06:14, John Ralls <jralls ceridwen us> a écrit :


On Dec 1, 2013, at 1:09 PM, Pascal <p p14 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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]