[Gtk-sharp-list] (macosX) gtk-sharp 2.10.0 installation : gobject not recognized

Cody Russell bratsche at gnome.org
Wed Aug 15 17:17:51 EDT 2007


Okay, so you either have two versions of glib-2.0 installed or your .pc
file is wrong.  Check the output of "pkg-config --cflags glib-2.0".  I
get the following output (on Linux):

  -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include

You want to go into the directory that contains glibconfig.h (on Linux
it's /usr/lib/glib-2.0/include) and "grep VERSION *" from there.  I get
the following output:

#define GLIB_MAJOR_VERSION 2
#define GLIB_MINOR_VERSION 12
#define GLIB_MICRO_VERSION 13

If yours shows the same thing, then it sounds like your .pc file is
somehow incorrect.  If it shows that it is 2.6.3 then you either have
another version of glib that is not in your PKG_CONFIG_PATH (surely
MacOS has some kind of file finder that can locate other files called
glibconfig.h?) or maybe the Macport is incorrectly labeled 2.12.13_0
when it actually contains 2.6.3.

/ Cody

On Wed, 2007-08-15 at 22:46 +0200, lolveley wrote:
> I tried, and it returned "2.6.3", so it's in fact a problem with pkg-config.
> what's amazing is that macports tells me that a port " glib2 @2.12.13_0 
> (active)" is installed.
> So this is a misunderstanding between macports and pkg-config.
> 
> Ideas to go ahead?
> 
> lolveley.
> 
> Cody Russell a écrit :
> > You should be searching for glib-2.0, not glib.  Try the following
> > command line: "pkg-config --modversion glib-2.0"
> >
> > On Wed, 2007-08-15 at 00:48 +0200, lolveley wrote:
> >   
> >> Another thing, when I enter "pkc-config glib" I have:
> >>
> >>     $ pkg-config glib
> >>     sh: line 1: glib-config: command not found
> >>     sh: line 1: glib-config: command not found
> >>     sh: line 1: glib-config: command not found
> >>
> >> pkg-config find glib three times? 
> >>     
> >
> >
> >   



More information about the Gtk-sharp-list mailing list