Solution for undefined references to XRenderCreateSolidFill

Jacques Pelletier <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
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
-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.