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

Cody Russell bratsche at gnome.org
Thu Aug 16 11:49:52 EDT 2007


I'm not really sure how you override this and tell it which glib to use.
I guess what I'd try next is to go
into /Library/Frameworks/Mono.framework/Versions/1.2.4/lib/pkgconfig and
delete glib-2.0.pc (or just move it somewhere else first, don't delete
it.. just in case).

Where is your pkg-config installed to anyway?  Run "which pkg-config".

On Thu, 2007-08-16 at 02:38 +0200, lolveley wrote:
> It's incomprehensible: I installed glib2 (2.12.13) with macports, and
> the PKG_CONFIG_PATH has the following path: /opt/local/lib/pkgconfig,
> which contains glib-2.0:
> 
>         prefix=/opt/local
>         exec_prefix=${prefix}
>         libdir=${exec_prefix}/lib
>         includedir=${prefix}/include
>         
>         glib_genmarshal=glib-genmarshal
>         gobject_query=gobject-query
>         glib_mkenums=glib-mkenums
>         
>         Name: GLib
>         Description: C Utility Library
>         Version: 2.12.13
>         Libs: -L${libdir} -lglib-2.0 -lintl  -liconv
>         Cflags: -I${includedir}/glib-2.0 -I${libdir}/glib-2.0/include
>         -I${includedir}
>         
> For information, here is the line PKG_CONFIG_PATH in the .profile
> file:
> 
>         export
>         PKG_CONFIG_PATH=/opt/local/lib/pkgconfig:/usr/local:/usr/X11R6/lib/pkgconfig
> All seems to be good, but when I enter "pkg-config --modversion
> glib-2.0" I have 2.6.3.
> 
> Do you know how to repair the computer?
> 
> lolveley.
> 
> 
> 
> 
> 
> 
> Cody Russell a écrit : 
> > Okay, so glibconfig.h should be in $prefix/lib/glib-2.0/include.  So
> > what you want to try to do is set PKG_CONFIG_PATH=$prefix/lib/pkgconfig
> > (changing $prefix to whatever the root prefix was for your
> > glibconfig.h).
> > 
> > Once you do that, try to run "pkg-config --modversion glib-2.0" and see
> > what the output gives you.
> > 
> > / Cody
> > 
> > On Thu, 2007-08-16 at 00:55 +0200, lolveley wrote:
> >   
> > > ok, that's done.
> > > I asked macports for the files of the port "glib-2.0", which was
> > > active (if you remember), and I have the folder where glibconfig.h is.
> > > But how can I indicate this folder to pkg-config?
> > > 
> > > lolveley.
> > > 
> > > Cody Russell a écrit : 
> > >     
> > > > It looks like Mono ships with its own version of glib-2.0.  That's fine,
> > > > but if you also have another version of glib installed then try using
> > > > whatever MacOS provides you for searching and locate another copy of
> > > > glibconfig.h.  You shouldn't need to delete the one that was installed
> > > > by Mono, once you find the location of the other one.
> > > > 
> > > > / Cody
> > > > 
> > > > On Wed, 2007-08-15 at 23:50 +0200, lolveley wrote:
> > > >   
> > > >       
> > > > > Cody,
> > > > > 
> > > > > I tried the commands you talked about, here  are the results:
> > > > > 
> > > > >         Last login: Wed Aug 15 22:35:54 on ttyp1
> > > > >         Welcome to Darwin!
> > > > >         [ordinateur-de-olivier-saint-eve:~] - 23:42:34
> > > > >         oliviersaint-eve$ pkg-config --cflags glib-2.0
> > > > >         -I/Library/Frameworks/Mono.framework/Versions/1.2.4/include/glib-2.0 -I/Library/Frameworks/Mono.framework/Versions/1.2.4/lib/glib-2.0/include  
> > > > >         [ordinateur-de-olivier-saint-eve:~] - 23:42:36
> > > > >         oliviersaint-eve$
> > > > >         cd /Library/Frameworks/Mono.framework/Versions/1.2.4/lib/glib-2.0/include
> > > > >         [ordinateur-de-olivier-saint-eve:/Library/Frameworks/Mono.framework/Versions/1.2.4/lib/glib-2.0/include] - 23:43:45
> > > > >         oliviersaint-eve$ ls
> > > > >         glibconfig.h            glibconfig.ppc.h
> > > > >         glibconfig.x86.h
> > > > >         [ordinateur-de-olivier-saint-eve:/Library/Frameworks/Mono.framework/Versions/1.2.4/lib/glib-2.0/include] - 23:43:57
> > > > >         oliviersaint-eve$ grep VERSION *
> > > > >         glibconfig.ppc.h:#define GLIB_MAJOR_VERSION 2
> > > > >         glibconfig.ppc.h:#define GLIB_MINOR_VERSION 6
> > > > >         glibconfig.ppc.h:#define GLIB_MICRO_VERSION 3
> > > > >         glibconfig.x86.h:#define GLIB_MAJOR_VERSION 2
> > > > >         glibconfig.x86.h:#define GLIB_MINOR_VERSION 6
> > > > >         glibconfig.x86.h:#define GLIB_MICRO_VERSION 3
> > > > > as you can see, macos finds not only one but two versions of the
> > > > > standard glib...
> > > > > and no 2.12.
> > > > > maybe if we could find the 2.6.3 versions and delete them, if would
> > > > > run.
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > Cody Russell a écrit : 
> > > > >     
> > > > >         
> > > > > > 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