[分享]从compiz-fusion git上下载编译包安装提示缺少x11-xcb的解决方法

各种窗口管理器和美化相关
回复

文章是否有用?

是的
3
60%
不是
1
20%
我哪知道~
1
20%
 
总计票数: 5
头像
xianjian
帖子: 173
注册时间: 2007-11-11 10:55

[分享]从compiz-fusion git上下载编译包安装提示缺少x11-xcb的解决方法

#1

帖子 xianjian » 2008-01-12 13:20

给新手看的,老鸟就没必要看了~~(但可以提一些建议!
首先,安装需要的编译软件:

代码: 全选

sudo apt-get install build-essential libxcomposite-dev libpng12-dev libsm-dev libxrandr-dev libxdamage-dev libxinerama-dev libstartup-notification0-dev libgconf2-dev libgl1-mesa-dev libglu1-mesa-dev libmetacity-dev librsvg2-dev libdbus-1-dev libdbus-glib-1-dev libgnome-desktop-dev libgnome-window-settings-dev gitweb curl autoconf automake automake1.9 libtool intltool libxslt1-dev xsltproc libwnck-dev python-pyrex python-dev 

代码: 全选

sudo apt-get build-dep libx11
sudo apt-get source libx11
安装好后,下载附件libx11,然后解压
假设解压到/home/123/libx11-1.1.3则

代码: 全选

cd /home/123/libx11-1.1.3
./autogen.sh --with-xcb
cp -r ../libx11-1.1.1/debian .
此时需删除下列文件

代码: 全选

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
注意,安装之前请安装libx11-xcb1与libx11-xcb1-dbg
附件
libX11-1.1.3.tar.bz2
(1.46 MiB) 已下载 1131 次
上次由 xianjian 在 2008-01-17 13:12,总共编辑 1 次。
头像
zhizunbao
帖子: 264
注册时间: 2007-10-18 13:50
系统: Ubuntu 14.10

#2

帖子 zhizunbao » 2008-01-13 7:42

虽然没有这个问题,还是支持一下吧。
头像
fanhe
帖子: 2357
注册时间: 2007-03-24 23:45

#3

帖子 fanhe » 2008-01-15 17:13

楼主,看看这样后你的java还能用不?
我这样做后,java都跑不动了
头像
xianjian
帖子: 173
注册时间: 2007-11-11 10:55

#4

帖子 xianjian » 2008-01-17 13:14

呵呵,更新了,顺便把原文贴上来
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>
onlyiknow
帖子: 527
注册时间: 2007-05-06 2:18

#5

帖子 onlyiknow » 2008-02-11 13:31

GIT里面的东西要怎么安装呢

不懂啊

那个原文也看不懂,都是英文
上次由 onlyiknow 在 2008-02-11 14:26,总共编辑 1 次。
onlyiknow
帖子: 527
注册时间: 2007-05-06 2:18

#6

帖子 onlyiknow » 2008-02-11 15:09

原文里面那个replacing "--without xcb" with "--with xcb"

是不是有误啊,那个debian/rules文件里没有这个吧只有“ --without-xcb”

我的英文实在是不行

commented out two entries with "dh_installchangelogs -s ChangeLog". 是什么意思
头像
chattan
帖子: 3922
注册时间: 2007-07-11 20:59
联系:

#7

帖子 chattan » 2008-02-11 15:25

怎么就一张票呀??
onlyiknow
帖子: 527
注册时间: 2007-05-06 2:18

#8

帖子 onlyiknow » 2008-02-13 0:41

安装libx11-xcb1时说我没装libc6可以明明就是有安装的啊
onlyiknow
帖子: 527
注册时间: 2007-05-06 2:18

#9

帖子 onlyiknow » 2008-02-13 0:47

神啊,在UBUNTU找的包会这样

可我在DEBIAN里找的包却可以安装

:x :x :x :x :x :x :x :x
剩疯
帖子: 84
注册时间: 2007-11-05 20:52

#10

帖子 剩疯 » 2008-02-14 12:11

搂住的翻译似乎有问题阿????
caivei
帖子: 12
注册时间: 2008-05-02 17:55

#11

帖子 caivei » 2008-05-09 13:38

哈哈,即将开始。谢谢楼主先~
caivei
帖子: 12
注册时间: 2008-05-02 17:55

#12

帖子 caivei » 2008-05-09 13:39

哈哈,即将开始。谢谢楼主先~
我是闲着没事瞎折腾!
hoho
回复