[cairo] Solution for undefined references to XRenderCreateSolidFill
Jacques Pelletier
jpelletier at ieee.org
Sun Sep 15 15:48:43 PDT 2013
I'm trying to compile the GTK libraries on an old version of Slackware
(10.1).
After compiling all the other dependencies, Cairo reports an undefined
reference to XRenderCreateSolidFill. This function was added in version
0.9.0.2 of the library libXrender.
The configure.ac file should be changed to check the more recent version.
dnl Check for Xrender header files if the Xrender package is not
installed:
xlib_xrender_BASE=cairo-xlib
xlib_xrender_REQUIRES="xrender >= 0.6"
PKG_CHECK_MODULES(xlib_xrender, $xlib_xrender_REQUIRES, ,
To be changed for:
dnl Check for Xrender header files if the Xrender package is not
installed:
xlib_xrender_BASE=cairo-xlib
xlib_xrender_REQUIRES="xrender >= 0.9.1"
PKG_CHECK_MODULES(xlib_xrender, $xlib_xrender_REQUIRES, ,
Also, on Slackware, the development files for X must be installed, which
include the pkg_config files (*.pc). If not installed, there may be an
error when linking cairo:
"cannot stat .libs/libcairo.lai"
JP
More information about the cairo
mailing list