On 06 Jan 2008, at 08:35, Martin Costabel wrote: > On 10.5.1/intel, building the requisite wxgtk2.8-2.8.0-2 fails: > > /sw/src/fink.build/wxgtk2.8-2.8.0-2/wxWidgets-2.8.0/build/bk-deps g+ > + -c -o coredll_graphicc.o -I.pch/wxprec_coredll -D__WXGTK__ -I../ > src/regex -DWXUSINGDLL -DWXMAKINGDLL_CORE -DwxUSE_BASE=0 -dynamic - > fPIC -DPIC -DWX_PRECOMP -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/ > sw_unstable/src/fink.build/wxgtk2.8-2.8.0-2/wxWidgets-2.8.0/build/ > lib/wx/include/gtk2-unicode-release-2.8 -I../include -I/sw/include/ > glib-2.0 -I/sw/lib/glib-2.0/include -I/sw/include/pango-1.0 -I/usr/ > X11R6/include -I/usr/X11R6/include/freetype2 -I/sw/include/gtk-2.0 - > I/sw/include/atk-1.0 -I/sw/lib/gtk-2.0/include -DORBIT2=1 -I/sw/ > include/glib-2.0 -I/sw/lib/glib-2.0/include -I/sw/include/orbit-2.0 > -I/sw/include/gconf/2 -I/sw/include/libxml2 -I/sw/include -I/sw/ > include/gstreamer-0.10 -I/usr/X11R6/include -fno-rtti -fno- > exceptions -Wall -Wundef -Wno-ctor-dtor-privacy -O2 -fno-strict- > aliasing -DORBIT2=1 -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/ > include -I/sw/include/orbit-2.0 -I/sw/include/bonobo-activation-2.0 > -I/sw/include/gconf/2 -I/sw/include/libbonobo-2.0 -I/sw/include/ > gnome-vfs-2.0 -I/sw/lib/gnome-vfs-2.0/include -I/sw/include/ > glib-2.0 -I/sw/lib/glib-2.0/include -I/sw/include/pango-1.0 -I/usr/ > X11R6/include -I/usr/X11R6/include/freetype2 -I/sw/include/gtk-2.0 - > I/sw/include/atk-1.0 -I/sw/lib/gtk-2.0/include -I/sw/include/ > libart-2.0 -I/sw/include/libxml2 -I/sw/include -I/sw/include/ > libgnomecanvas-2.0 -I/sw/include/libgnomeprint-2.2 -I/sw/include/ > libgnomeprintui-2.2 -fno-common ../src/generic/graphicc.cpp > ../src/generic/graphicc.cpp:101:19: error: cairo.h: No such file or > directory > > Since Fink has cairo.h in /sw/include/cairo/, there needs to be a - > I/sw/include/cairo on the command line or #include <cairo/cairo.h> > in that graphicc.cpp file. OTOH, I don't see any dependency on > cairo in the wxgtk2.8 package. Seems like another can of worms...
wxgtk2.8 should not link with cairo _ cf first few lines of the CompileScript, they are quite explicit about it. In particular, the line export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:%p/ lib/freetype219/lib/pkgconfig is commented out, so no freetype2.pc file is accessible to pkg-config This leads in build/config.log to : configure:47047: checking for CAIRO configure:47055: $PKG_CONFIG --exists --print-errors "cairo" Package freetype2 was not found in the pkg-config search path. Perhaps you should add the directory containing `freetype2.pc' to the PKG_CONFIG_PATH environment variable Package 'freetype2', required by 'cairo', not found configure:47058: $? = 1 configure:47073: $PKG_CONFIG --exists --print-errors "cairo" Package freetype2 was not found in the pkg-config search path. Perhaps you should add the directory containing `freetype2.pc' to the PKG_CONFIG_PATH environment variable Package 'freetype2', required by 'cairo', not found configure:47076: $? = 1 Package freetype2 was not found in the pkg-config search path. Perhaps you should add the directory containing `freetype2.pc' to the PKG_CONFIG_PATH environment variable Package 'freetype2', required by 'cairo', not found configure:47104: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT Thus wxUSE_GRAPHICS_CONTEXT is not set, and hence in src/generic/graphicc.cpp the #if wxUSE_GRAPHICS_CONTEXT on line 41 causes the #include <cairo.h> to be skipped Why does this not apply on your machine ? JF ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Fink-devel mailing list Fink-devel@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.devel