Cant install gtksourceview-sharp2 (because of at-spi)
Ryan Schmidt
ryandesign at macports.org
Mon Nov 24 03:55:57 PST 2008
On Nov 23, 2008, at 20:45, Paul Turbett wrote:
> Yep, got the +quartz version of gtk2:
>
> gtk2 @2.14.4_1+no_x11+quartz (active)
>
> I'm following this tutorial: http://www.naiznoiz.share-a-book.com/?
> p=27
Ok, that tutorial does tell you to use the +quartz variant of gtk2,
but as the ticket I showed you says, at-spi is not compatible with
the quartz mode of gtk2 and you will have to recompile x11 mode.
> I note the ticket you pointed out mentioned an error if X11
> libraries are not found.
Yes, I didn't quite understand why the user encountered that error,
unless they had not installed Apple X11 (both the X11User and X11SDK
packages, which are found on the Mac OS X DVD and the Xcode disk
image, respectively).
> Pardon my stupid question, but I'm guessing that means the X11
> version of gtk? (I did mention I don't have a lot of unix/mac
> experience right ? :))
>
> If so, how to I change over? I tried this:
>
> sudo port install gtk2 +x11
That should work.
> but got more errors:
>
> Making all in x11
> if /bin/sh ../../libtool --mode=compile /usr/bin/gcc-4.0 -
> DHAVE_CONFIG_H -I. -I. -I../.. -DG_LOG_DOMAIN=\"Gdk\" -
> DGDK_COMPILATION -I../.. -I../../gdk -I../../gdk -
> DG_DISABLE_CAST_CHECKS -D_REENTRANT -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/
> pixman-1 -I/opt/local/include/freetype2 -I/opt/local/include/
> libpng12 -I/usr/X11/include -I/opt/local/include -no-cpp-
> precomp -DX_LOCALE -I/usr/X11R6/include -DG_DISABLE_SINGLE_INCLUDES
> -DATK_DISABLE_SINGLE_INCLUDES -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES -
> DGTK_DISABLE_SINGLE_INCLUDES -I/opt/local/include -I/usr/X11/
> include -DGDK_PIXBUF_DISABLE_DEPRECATED -O2 -funroll-loops -
> fstrict-aliasing -Wall -MT gdkdrawable-x11.lo -MD -MP -MF ".deps/
> gdkdrawable-x11.Tpo" \
> -c -o gdkdrawable-x11.lo `test -f 'gdkdrawable-x11.c' || echo
> './'`gdkdrawable-x11.c; \
> then mv -f ".deps/gdkdrawable-x11.Tpo" ".deps/gdkdrawable-x11.Plo"; \
> else rm -f ".deps/gdkdrawable-x11.Tpo"; exit 1; \
> fi
> /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I. -I../.. -DG_LOG_DOMAIN=
> \"Gdk\" -DGDK_COMPILATION -I../.. -I../../gdk -I../../gdk -
> DG_DISABLE_CAST_CHECKS -D_REENTRANT -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/
> pixman-1 -I/opt/local/include/freetype2 -I/opt/local/include/
> libpng12 -I/usr/X11/include -I/opt/local/include -no-cpp-precomp -
> DX_LOCALE -I/usr/X11R6/include -DG_DISABLE_SINGLE_INCLUDES -
> DATK_DISABLE_SINGLE_INCLUDES -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES -
> DGTK_DISABLE_SINGLE_INCLUDES -I/opt/local/include -I/usr/X11/
> include -DGDK_PIXBUF_DISABLE_DEPRECATED -O2 -funroll-loops -fstrict-
> aliasing -Wall -MT gdkdrawable-x11.lo -MD -MP -MF .deps/gdkdrawable-
> x11.Tpo -c gdkdrawable-x11.c -fno-common -DPIC -o .libs/
> gdkdrawable-x11.o
> gdkdrawable-x11.c:32:24: error: cairo-xlib.h: No such file or
> directory
gtk2 in x11 mode seems to require cairo to have x11 support too.
Following the tutorial you mentioned above, you must have compiled
pango with the +no_x11 variant, which would have caused that variant
to be passed to all of pango's dependencies as well, including cairo.
So you should install cairo without the +no_x11 variant first. Then
you should rebuild pango ("sudo port -nf upgrade pango"). Then you
should clean gtk2 ("sudo port clean gtk2"). Then you should be able
to build gtk2 with the +x11 variant.
> gdkdrawable-x11.c: In function '_gdk_x11_drawable_update_size':
> gdkdrawable-x11.c:238: warning: implicit declaration of function
> 'cairo_xlib_surface_set_size'
> gdkdrawable-x11.c: In function 'gdk_x11_ref_cairo_surface':
> gdkdrawable-x11.c:1469: warning: implicit declaration of function
> 'cairo_xlib_surface_create'
> gdkdrawable-x11.c:1472: warning: assignment makes pointer from
> integer without a cast
> gdkdrawable-x11.c:1474: warning: implicit declaration of function
> 'cairo_xlib_surface_create_for_bitmap'
> gdkdrawable-x11.c:1477: warning: assignment makes pointer from
> integer without a cast
> make[4]: *** [gdkdrawable-x11.lo] Error 1
> make[3]: *** [all-recursive] Error 1
> make[2]: *** [all] Error 2
> make[1]: *** [all-recursive] Error 1
More information about the macports-users
mailing list