View Full Version : [solved]package x11-xcb not found
Test-tools
August 13th, 2007, 10:48 AM
Package x11-xcb requirement seams to be recently added to configure.ac in compiz core.
Was not able to find that package, actually it seams then to need this:
../include/compiz.h:34:26: error: X11/Xlib-xcb.h: No such file or directory
Machine is a older Debian converted to Ubuntu.
Similiar problem seams to be here http://telperion.wordpress.com/2007/08/07/fusion-avviso-ai-naviganti-4/
Also, Trevinos compiz-fusion-debian-builder breaks on this on that machine
RYX
August 13th, 2007, 12:31 PM
The XCB will become the replacement for the good old XLib, it is very new and no (or very few) distribution(s) currently offer(s) it by default. Unfortunately, Ubuntu users don't have this package available from official repos yet (and it likely won't come before Ubuntu 7.10).
You either need to find a repo containing the x11-xcb package or you have to compile it yourself. The project homepage can be found here: http://xcb.freedesktop.org/
I am not sure what deps you need, but I guess if you can compile compiz you should have most of the needed stuff to also compile xcb.
:)
Gettinther
August 13th, 2007, 01:46 PM
x11-xcb.h is part of libX11.
By default the xcb support is disabled. When building the source code, instead of
./configure
you must use
./configure --with-xcb (I think, I'm at work so don't have solid data, check configure.ac for exact detail).
x11-xcb is only available since version 1.1
Also, if you are running xorg 7.1 or older, you'll need to modify libxcb to disable xlib.lock
Test-tools
August 14th, 2007, 11:04 AM
Following works
git-clone git://anongit.freedesktop.org/git/xorg/lib/libX11
cd libX11
./autogen.sh --with-xcb
make
sudo make install
This install per default to /usr/local/
plun
August 14th, 2007, 12:26 PM
Following works
git-clone git://anongit.freedesktop.org/git/xorg/lib/libX11
cd libX11
./autogen.sh --with-xcb
make
sudo make install
This install per default to /usr/local/
Yup...after usual challenge with dependencies...:rolleyes:
http://packages.ubuntu.com/cgi-bin/search_packages.pl?keywords=xcb&searchon=name&subword=1&version=all&release=all
Installed a couple of dev packages.
I also got a core dumped > plugins args > but after switching to gconf
and back to ini, all plugins was disabled and CF starts.
Enabled my plugins and everything works...;)
Thanks !
EDIT
compiz (cube) - Warn: Failed to load slide: freedesktop Screensaver out of order. :(
bernardo
August 14th, 2007, 04:11 PM
Well, in gutsy I got libx11 to build with xcb, and finally built compiz-fusion (and everything else) using treviņo's script.
Everything is working. What I did:
mkdir build
cd build
apt-get source libx11
sudo apt-get build-dep libx11
git-clone git://anongit.freedesktop.org/git/xorg/lib/libX11
cd libX11
./autogen.sh --with-xcb
cp -r ../libx11-1.1.1/debian .
Then I edited debian/rules to enable xcb, replacing "--without xcb" with "--with xcb" and commented out two entries with "dh_installchangelogs -s ChangeLog".
I then edited debian/patches/series to remove the following patches:
016_greek_polytonic_Compose.diff
021_compose_fclose.diff
104_integer_overflows.diff
I also had to remove the following entries from debian/libx11-data.install:
usr/share/X11/locale/ru_RU.UTF-8/XI18N_OBJS
usr/share/X11/locale/ru_RU.UTF-8/XLC_LOCALE
usr/share/X11/locale/ru_RU.UTF-8/Compose
I then edited debian/changelog to change the version of the generated package (I added gitddmmyyyy to the end of the version string in the first line).
Finally, a fakeroot debian/rules clean; fakeroot debian/rules binary generated the debian packages for libx11, libx11-xcb, etc. After I installed these versions (using dpkg -i *deb) I was able to build the latest compiz from git using treviņo's makefusiondebs script. After restarting X, everything is working well.
I forgot, you have to append the following lines to debian/control:
Package: libx11-xcb1
Section: libs
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Conflicts: libx11-6 (<< 2:1.1)
Pre-Depends: x11-common (>= 1:7.0.0)
Description: Xlib/XCB interface library
libX11-xcb provides functions needed by clients which take advantage of
Xlib/XCB to mix calls to both Xlib and XCB over the same X connection.
.
More information about X.Org can be found at:
<URL:http://xorg.freedesktop.org>
<URL:http://lists.freedesktop.org/mailman/listinfo/xorg>
.
More information about XCB can be found at:
<URL:http://xcb.freedesktop.org>
Package: libx11-xcb1-dbg
Section: libdevel
Architecture: any
Priority: extra
Depends: ${shlibs:Depends}, ${misc:Depends}, libx11-xcb1 (= ${binary:Version})
Description: Xlib/XCB interface library (debug package)
libX11-xcb provides functions needed by clients which take advantage of
Xlib/XCB to mix calls to both Xlib and XCB over the same X connection.
.
This package contains the debug versions of the library found in
libx11-xcb1. Non-developers likely have little use for this package.
.
More information about X.Org can be found at:
<URL:http://xorg.freedesktop.org>
<URL:http://lists.freedesktop.org/mailman/listinfo/xorg>
.
More information about XCB can be found at:
<URL:http://xcb.freedesktop.org>
holodad
August 14th, 2007, 08:07 PM
Hello
Who's using ATI card and fglrx drivers??? I noticed that many users is having this problem...
It seems that this is not working with fglrx drivers.
Can you confirm?
Cheers
plun
August 15th, 2007, 11:17 AM
Screensaver out of order. :(
Screensaver fixed.... ABI error....:cool:
Still compiz (cube) - Warn: Failed to load slide: freedesktop
Also the old challenge with new windows in upper left corner :confused:
Running makefusion, compiles/installs/starts, (fusion-icon) with no errors (except freedesktop slide).
wfarr
August 15th, 2007, 11:27 AM
Screensaver fixed.... ABI error....:cool:
Still compiz (cube) - Warn: Failed to load slide: freedesktop
Also the old challenge with new windows in upper left corner :confused:
Running makefusion, compiles/installs/starts, (fusion-icon) with no errors (except freedesktop slide).
The Freedesktop slide error means you don't have PNG/SVG plugins enabled.
plun
August 15th, 2007, 11:47 AM
The Freedesktop slide error means you don't have PNG/SVG plugins enabled.
Thanks... I also noticed that when I just added a Skydome ;).
Its a real labyrinth after a clean install....:p
What is controlling Windows positioning :confused:
Emerald is running, "Move" is enabled...
Windows in upper left corner has been a long story with both Beryl and
CF....
EDIT
Solved.... changed backend from gconf to ini, everything OK
Fluxid
August 18th, 2007, 03:40 PM
Didn't help... I installed debs, but while configuring compiz it still couldn't find xcb. When removed xcb form configure, it couldn't find xcb header in include/X11/
So i configured libX11 with prefix /usr and --with-xcb, then make, and then make install.
Compiz detected xcb, but then it fails on compile:
gcc -g -O2 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -D_FORTIFY_SOURCE=2 -o compiz main.o privates.o texture.o display.o screen.o window.o event.o paint.o option.o plugin.o session.o fragment.o matrix.o cursor.o match.o metadata.o -Wl,--export-dynamic -lXcomposite -lXdamage -lXfixes -lXrandr -lXinerama -lSM -lICE /usr/lib/libxslt.so /usr/lib/libxml2.so -lstartup-notification-1 -lGL -lm
display.o: In function `addDisplay':
/root/compiz052/compiz/src/display.c:2018: undefined reference to `XGetXCBConnection'
collect2: ld returned 1 exit status
EDIT:
I pulled again git, and now it fails on kconfig... i don't have any KDE libraries and headers, how to make it then? But yeah, i know, it's not that thread...
I will search for info in other places....
EDIT 2:
I'm so dumb... --disable-kconfig... =_='
delfick
December 19th, 2007, 03:27 PM
I tried http://forum.compiz-fusion.org/showpost.php?p=22400&postcount=6
unforunately after having to comment out more patches before it would even get to the make process (patches 003 -> 014 in debian/patches/series) after that make worked but
dh_testdir
dh_testroot
dh_installdocs -i
dh_installdocs: I have no package to build
#dh_installchangelogs -i ChangeLog
dh_install --sourcedir=debian/tmp -i --list-missing
dh_install: I have no package to build
dh_link -i
dh_link: I have no package to build
dh_installman -i
dh_installman: I have no package to build
dh_compress -i
dh_compress: I have no package to build
dh_fixperms -i
dh_fixperms: I have no package to build
dh_installdeb -i
dh_installdeb: I have no package to build
dh_gencontrol -i
dh_gencontrol: I have no package to build
dh_md5sums -i
dh_md5sums: I have no package to build
dh_builddeb -i
dh_builddeb: I have no package to build
dh_testdir
dh_testroot
dh_installdocs -s
# Using exclusions here allows libx11-6.install to use wildcards for
# headers and manpages, rather than listing every header and manpage
# other than these.
dh_install --sourcedir=debian/tmp -plibx11-dev \
--exclude=usr/include/X11/Xlib-xcb.h \
--exclude=usr/share/man/man3/XGetXCBConnection.3 \
--exclude=usr/share/man/man3/XSetEventQueueOwner.3
dh_install --sourcedir=debian/tmp -Nlibx11-dev -s
#dh_installchangelogs -s ChangeLog
dh_installman -s
dh_link -s
dh_strip -plibx11-6 --dbg-package=libx11-6-dbg
objcopy: debian/libx11-6-dbg/usr/lib/debug//usr/lib/libX11.so.6.2.0: Invalid operation
dh_strip: command returned error code 256
make: *** [binary-arch] Error 1
....
EDIT : after that didn't work, i did a normal ./autogen.sh;make;sudo make install and it seemed to work (autogen.sh didn't fail for compiz...) and compiz works as well.. :D
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.