On 23/03/07, Frank McPherson <frank.mcpherson@janusresearch.com> wrote:
I was pleased to read about the possibility of running gtk2 apps without X11; one of the things that always bugs me about using the Gimp is having to click on a window to give it focus, then click again on a control in the window, for example the tools palette.
Anyway I saw the Cairo update hit today, 1.4.2_0, so I rebuilt cairo +quartz and pango, and tried to rebuild gtk2 +quartz. I get an error during the build: gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DG_LOG_DOMAIN=\"Gdk\" -DGDK_COMPILATION -I../.. -I../../gdk -I../../gdk -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DG_DISABLE_CAST_CHECKS -D_REENTRANT -DXTHREADS -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/pango-1.0 -I/opt/local/include/cairo -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/usr/X11R6/include -xobjective-c -I/opt/local/include -no-cpp-precomp -DX_LOCALE -I/usr/X11R6/include -MT gdkdrawable-quartz.lo -MD -MP -MF .deps/gdkdrawable-quartz.Tpo -c gdkdrawable-quartz.c -fno-common -DPIC -o .libs/gdkdrawable-quartz.o gdkdrawable-quartz.c: In function 'gdk_quartz_ref_cairo_surface': gdkdrawable-quartz.c:64: error: incompatible type for argument 1 of 'cairo_quartz_surface_create' gdkdrawable-quartz.c:64: error: too many arguments to function 'cairo_quartz_surface_create' make[4]: *** [gdkdrawable-quartz.lo] Error 1 make[3]: *** [all-recursive] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
Warning: the following items did not execute (for gtk2): com.apple.activate com.apple.build com.apple.destroot com.apple.install Error: Status 1 encountered during processing.
I have the rest of the build log if you're interested. Has anyone managed to build gtk2 +quartz atop the new cairo 1.4.2 +quartz?
I've also ran into this problem, does anyone have a solution or is it just a case of waiting for gtk2 to be fixed upstream? Cheers Adam