How to compile and install glib and gtk+?

Hi,

I am trying to "configure", a "make", and "sudo make install" on the package glib-2.26.0.

I type ./configure which works fine but then when I type 'make' it gets to a certain point and then gives the following error message:

*#error GNU libiconv not in use but included iconv.h is from libiconv*

What does this mean? I've already installed iconv under /usr/bin so what exactly is going on here?

Thanks in advance,

Mark

PS: I originally had Leopard on my machine, and now I have Snow Leopard; does that mean that I have to rebuild every package from scratch?? Could this be causing the problem?

iMac, Mac OS X (10.6.4), None

Posted on Oct 23, 2010 6:50 AM

Reply
2 replies

Oct 24, 2010 10:00 AM in response to Mark Spezzano

Actually this is not necessarily the wrong place to ask such a question (or was it moved to the unix forum? My head hurts). In my experience, gtk+2 and the associated software is not completely trivial to compile on OS X and to get working properly. I make fairly heavy daily use of it. I let fink do this for me.

One immediate suggestion: Try not to put this stuff in /usr/bin. If you can put it in /usr/local, or using fink, put it in /sw, or macports (a fink alternative some prefer), in /opt/local, it has the advantage of (a) not clobbering anything distributed with OS X, and (b) won't get clobbered by OS X updates.

I maintain precompiled versions of gtk+2 and all that other stuff, informally, to be installed via fink if you are interested.

If so, start here: My pre-compiled packages

Use the 64-bit version if you are able to.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to compile and install glib and gtk+?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.