Open oetiker opened 12 years ago
[human] == order of directories in PKG_CONFIG_PATH is important == as not being able to get rid of old freetype: {{{ rpm -q freetype freetype-2.1.4-7.el3 }}} I use {{{ export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig }}} which lets cairo 1.6.4 recognize freetype another {{{ export LD_LIBRARY_PATH=/usr/local/lib }}} configure and make works!
... perhaps helpful for users with old systems ;-))
regards
A.
doc/rrdbuild.pod is not very clear about these versions:
{{{ grep cairo doc/rrdbuild.pod There is a problem with F on opensolaris. It suggests that
xrender is required for compilation with cairo. This is not true and also
perl -i~ -p -e 's/(Requires._?)\s_xrender.*/$1/' /usr/lib/pkgconfig/cairo.pc
wget http://oss.oetiker.ch/rrdtool/pub/libs/cairo-1.6.4.tar.gz
gunzip -c cairo-1.4.10.tar.gz | tar xf -
cd cairo-1.4.10
}}}
using freetype-2.3.5, fontconfig-2.4.2, cairo-1.6.4, pango-1.21.1: Result:cairo does not find fontconfig {{{ cairo (version 1.6.4) will be compiled with the following surface backends: image: yes (always builtin) Xlib: no (disabled, use --enable-xlib to enable) Xlib Xrender: no (requires --enable-xlib) Quartz: no (CoreGraphics framework not found) Quartz-image: no (disabled, use --enable-quartz-image to enable) XCB: no (disabled, use --enable-xcb to enable) Win32: no (disabled, use --enable-win32 to enable) OS2: no (disabled, use --enable-os2 to enable) PostScript: yes PDF: yes SVG: yes glitz: no (disabled, use --enable-glitz to enable) BeOS: no (disabled, use --enable-beos to enable) DirectFB: no (disabled, use --enable-directfb to enable)
the following font backends: FreeType: no (requires fontconfig) Win32: no (disabled, use --enable-win32 to enable) Quartz: no (CoreGraphics framework not found)
the following features: PNG functions: yes
and the following debug options: gcov support: no test surfaces: no ps testing: yes pdf testing: no (requires poppler-glib >= 0.8.0) svg testing: no (requires librsvg-2.0 >= 2.15.0)
using CFLAGS: -I/usr/include/libpng12 -I/usr/local/include/pixman-1 -Wall -Wsign-compare -Werror-implicit-function-declaration -Wpoi nter-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked - Wmissing-format-attribute -Wdeclaration-after-statement -Wno-unused-parameter -Wno-long-long -Winline -fno-strict-alia sing
configure: error: Cairo requires at least one font backend. Please install freetype and fontconfig, then try again: http://freetype.org/ http://fontconfig.org/
main': : undefined reference to
FcFini' collect2: ld returned 1 exit status configure:27975: $? = 1 configure: failed program was:configure:27993: result: no }}}
using freetype-2.3.5, fontconfig-2.4.2, cairo-1.4.10, pango-1.21.1: rrdtool does not find pangocairo: ...
{{{ Find 3rd-Party Libraries checking for cairo_font_options_create in -lcairo... no checking for pkg-config... pkg-config checking for cairo_font_options_create in -lcairo... yes checking cairo.h usability... yes checking cairo.h presence... yes checking for cairo.h... yes checking for cairo_svg_surface_create in -lcairo... yes checking cairo-svg.h usability... yes checking cairo-svg.h presence... yes checking for cairo-svg.h... yes checking for cairo_pdf_surface_create in -lcairo... yes checking cairo-pdf.h usability... yes checking cairo-pdf.h presence... yes checking for cairo-pdf.h... yes checking for cairo_ps_surface_create in -lcairo... yes checking cairo-ps.h usability... yes checking cairo-ps.h presence... yes checking for cairo-ps.h... yes checking for pango_cairo_context_set_font_options in -lpango-1.0... no checking for pkg-config... (cached) pkg-config checking for pango_cairo_context_set_font_options in -lpango-1.0... no
configure: WARNING:
I could not find a working copy of pangocairo. Check config.log for hints on why this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately so that compiler and the linker can find libpango-1.0 and its header files. If you have not installed pangocairo, you can get it either from its original home on
http://ftp.gnome.org/pub/GNOME/sources/pango/1.17
You can find also find an archive copy on
http://oss.oetiker.ch/rrdtool/pub/libs
The last tested version of pangocairo is 1.17.
12
LDFLAGS= -L/usr/local/lib -L/usr/local/lib
CPPFLAGS= -I/usr/include/libpng12 -INONE/include/cairo -I/usr/local/include/cairo -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/include/libpng12 -I/usr/local/include/pango-1.0 -I/usr/l ocal/include/cairo -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/freetype2 -I/usr/local/include
checking for xmlParseFile in -lxml2... yes checking libxml/parser.h usability... yes checking libxml/parser.h presence... yes checking for libxml/parser.h... yes configure: error: Please fix the library issues listed above and try again.
}}}
But as FcFini is documented in fontconfig, this could also be a fontconfig configuration/compilation/installation problem, and only rrdbuild.pod should be corrected regards
A.