[cairo] Trouble compiling XCB backend

Felix Rabe public at felixrabe.textdriven.com
Mon Apr 21 06:51:55 PDT 2008


Hi,

I gave compiling Cairo+XCB a shot.  Attached you can read the
rant<-<-<-<-howto I wrote on the way to compile all the necessary
libraries.  I got to having XCB+prerequisites installed in
~/opt/xcb-cairo, as well as pixman.  (See howto.)

Platform: Ubuntu 8.04 i386

Now Cairo (up-to-date Git master branch) doesn't want to compile:

$ ./autogen.sh --prefix=$P --enable-xcb 2>&1 | tee cairo-build-log.txt

( -> attached, looks like this at the end:)

checking for cairo's XCB backend...
checking for xcb... no
no
checking whether cairo's XCB backend could be enabled... no (requires
XCB http://xcb.freedesktop.org)
configure: error: requested XCB backend could not be enabled


The following is an extract of the environment as given by 'export -p':

declare -x ACLOCAL="aclocal -I /home/fr/opt/xcb-cairo/share/aclocal"
declare -x HOME="/home/fr"
declare -x LD_LIBRARY_PATH="/home/fr/opt/xcb-cairo/lib"
declare -x LIBDIR="/home/fr/opt/xcb-cairo/lib"
declare -x P="/home/fr/opt/xcb-cairo"
declare -x
PATH="/home/fr/Defaults/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
declare -x PKG_CONFIG_PATH="/home/fr/opt/xcb-cairo/lib/pkgconfig"
declare -x PWD="/home/fr/xcb-cairo/cairo"
declare -x PYTHONPATH="/home/fr/opt/xcb-cairo/lib/python2.5/site-packages"
declare -x SHELL="/bin/bash"


'./configure --help' mentions:
  xcb_LIBS    linker flags for xcb, overriding pkg-config


As 'pkg-config --libs xcb' seems to give me good values, I have no clue
what I'm missing:

-L/home/fr/opt/xcb-cairo/lib -lxcb

'pkg-config --cflags xcb':

-I/home/fr/opt/xcb-cairo/include


Greetings,
Felix Rabe

PS: Thanks for the warm welcome :)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: howto-get-xcb-cairo-running.txt
Url: http://lists.cairographics.org/archives/cairo/attachments/20080421/4dc9ead4/attachment.txt 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cairo-build-log.txt
Url: http://lists.cairographics.org/archives/cairo/attachments/20080421/4dc9ead4/attachment-0001.txt 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.cairographics.org/archives/cairo/attachments/20080421/4dc9ead4/attachment.pgp 


More information about the cairo mailing list