Re: [Gtk-osx-users] Problem building glib for gtk




On Mar 31, 2010, at 6:28 PM, Bill Lapham wrote:


Hi,

I’m trying to build Unison and need to build gtk first for the GUI.

I’ve been trying to build gtk on a MacPro running OS X 10.6.3 by using the instructions on the Build page,
http://sourceforge.net/apps/trac/gtk-osx/wiki/Build.

I think I have met all of the requirements on the build page which were as follows:

Xcode 3.2.1
git 1.6.1
GNU Make 3.8.1

{SNIP} 
mv -f .deps/gcompletion.Tpo .deps/gcompletion.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I..  -DG_LOG_DOMAIN=\"GLib\" -DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION -DPCRE_STATIC -I/Users/gtk/gtk/inst/include -DG_DISABLE_SINGLE_INCLUDES -D_REENTRANT  -arch x86_64 -mmacosx-version-min=10.6 -Wall -MT gconvert.lo -MD -MP -MF .deps/gconvert.Tpo -c -o gconvert.lo gconvert.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I.. -DG_LOG_DOMAIN=\"GLib\" -DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION -DPCRE_STATIC -I/Users/gtk/gtk/inst/include -DG_DISABLE_SINGLE_INCLUDES -D_REENTRANT -arch x86_64 -mmacosx-version-min=10.6 -Wall -MT gconvert.lo -MD -MP -MF .deps/gconvert.Tpo -c gconvert.c  -fno-common -DPIC -o .libs/gconvert.o
gconvert.c:55:2: error: #error GNU libiconv not in use but included iconv.h is from libiconv

That problem is due to Apple leaving some symbols out of the 64-bit binary of libiconv.dylib. 64-bit Gtk+ on OSX has some issues (see https://sourceforge.net/apps/trac/gtk-osx/wiki/SnowLeopard), so unless you absolutely *must* have a 64-bit build, I recommend setting your architecture to i386. If you must have 64-bit, jhbuild build gettext-fw before gtk-osx-bootstrap.

Regards,
John Ralls







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