Building gtk+ 2.18.9



When I try to build gtk+ 2.18.9, I get several errors:

gcc -DHAVE_CONFIG_H -I. -I.. -DG_LOG_DOMAIN=\"Gtk\" -DGTK_LIBDIR=\"/usr/local/lib\" -DGTK_DATADIR=\"/usr/local/share\" -DGTK_DATA_PREFIX=\"/usr/local\" -DGTK_SYSCONFDIR=\"/usr/local/etc\" -DGTK_VERSION=\"2.18.9\" -DGTK_BINARY_VERSION=\"2.10.0\" -DGTK_HOST=\"x86_64-apple-darwin10.3.0\" -DGTK_COMPILATION -DGTK_PRINT_BACKENDS=\"file,cups\" -DGTK_PRINT_PREVIEW_COMMAND=\""evince --unlink-tempfile --preview --print-settings %s %f"\" -I.. -I../gtk -I.. -I../gdk -I../gdk -I../gdk-pixbuf -I../gdk-pixbuf -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGTK_FILE_SYSTEM_ENABLE_UNSUPPORTED -DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED -DG_DISABLE_CAST_CHECKS     -DG_DISABLE_SINGLE_INCLUDES -DATK_DISABLE_SINGLE_INCLUDES -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES   -DGDK_PIXBUF_DISABLE_DEPRECATED -g -O2 -Wall -MT updateiconcache.o -MD -MP -MF .deps/updateiconcache.Tpo -c -o updateiconcache.o updateiconcache.c
updateiconcache.c:40:18: error: glib.h: No such file or directory
updateiconcache.c:41:25: error: glib/gstdio.h: No such file or directory
In file included from ../gdk-pixbuf/gdk-pixbuf.h:32,
                 from ../gdk-pixbuf/gdk-pixdata.h:22,
                 from updateiconcache.c:42:
../gdk-pixbuf/gdk-pixbuf-features.h:34: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gdk_pixbuf_major_version'
../gdk-pixbuf/gdk-pixbuf-features.h:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gdk_pixbuf_minor_version'
../gdk-pixbuf/gdk-pixbuf-features.h:36: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gdk_pixbuf_micro_version'

[etc.]

I know that glib.h is in 

ls /usr/local/include/glib-2.0/glib.h 
/usr/local/include/glib-2.0/glib.h

As such I have defined CCFLAGS in an attempt to have that directory scanned for h files:

echo $CCFLAGS
-I/usr/local/include/glib-2.0

But to no avail: I still get the same error with the same gcc command (i.e. without a -I/usr/local/include/glib-2.0)

Could anyone offer any suggestions?

Thanks,
Sterling

PS Please let me know if I need to include more information.


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