LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: 聚焦深空

从 Xorg-7.3 部分升级到 7.4+ (使用准稳定版支持 ATI DRI)

[复制链接]
 楼主| 发表于 2009-2-28 14:43:09 | 显示全部楼层
没有那么恐怖,
上面偶提到的只是一种可能性,也许 6.9 7.4 的 lib 兼容,那就不需重编译 gtk qt,
如果真的大换血 6.9->7.4 升级,X 上层需要重编译的应该限于 gtk qt(用原版),再上层的 gnome kde 不直接依赖 X 的,
具体要查一下依赖关系才知道。
回复 支持 反对

使用道具 举报

发表于 2009-2-28 14:47:08 | 显示全部楼层
說的對,應該先檢查一下
回复 支持 反对

使用道具 举报

发表于 2009-2-28 14:59:26 | 显示全部楼层
Post by 聚焦深空;1954014
http://xorg.freedesktop.org/archive/X11R7.4/src/
/usr/X11R7 合理些

改 symlink 貌似不合适,那样 X 之上的 gtk qt 库不重编译直接使用可能有问题


我的構思是好像我在 /opt 下裝多版的 gcc 然後以 /opt/gcc 作為 symlink 去選擇 gcc 版本,也就是說將 6.9 由 /usr/X11R6 移到 /usr/x11r6,新裝的 7.4 裝到你說的 /usr/X11R7,以 /usr/X11R6 作為 symlink

那應我想用 6.9 的時候就將 /usr/X11R6 連到 /usr/x11r6,想用 7.4 就將 /usr/X11R6 連到 /usr/X11R7

這樣我就不用擔心配置問題了,前題是要先將 7.4 順利安裝好
回复 支持 反对

使用道具 举报

发表于 2009-3-17 19:40:41 | 显示全部楼层
今天终於开始了 Xorg-6.9 - > Xorg-7.4 之旅,正是采用上述的策略,说来惭愧,这是我第一次去编译 Xorg-7.x。

天呀~~烦死了,真想得出来,N 多个包,部份又有依赖次序关系,难怪有兄弟用半自动波去搞定它!

http://www.linuxsir.cn/bbs/showthread.php?t=341405

现在还在途中,刚搞定了 Xorg Libraries 及 MesaLib,中途测试了一下把 /usr/X11R6 指向 /usr/X11R7,还好就是在速度上带来了惊喜,gcc-4.4 跟 gcc-4.0.x 效能上的差异可不少,启动 OpenOffice 觉得它飞起来了 :)

其他尚未完成,所以现在不能停机,剩下来的明天再搞了。。。
回复 支持 反对

使用道具 举报

发表于 2009-3-17 20:57:35 | 显示全部楼层
毁灭老大,直接上1.6.X吧。。。

也给我做个例子^_^
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-3-17 22:25:34 | 显示全部楼层
xorg-7.5 发布的日子应不远了。
回复 支持 反对

使用道具 举报

发表于 2009-3-18 09:33:24 | 显示全部楼层
一直在想为什么gentoo1.5.X之后可以不需要像素字体
刚好看到blfs wiki上这么一段
Fully TrueType based setup (duplicated from fonts page)

WARNING: instructions in this section break legacy toolkits such as GTK-1.2.10 and Lesstif!

If a desktop environment based entirely on an Xft-aware toolkit (Qt or GTK2) is going to be used, none of the bitmap fonts that come with Xorg are necessary (the "encodings" package is still needed for libfontenc). This setup is implemented on the official LFS LiveCD. To reproduce it, apply the following sed substitution when building xorg-server:
sed -i -e 's,#ifdef KDRIVESERVER,#if 1,' dix/dixfonts.c

Also, add the --with-default-font-path=built-ins configure switch to xorg-server. This allows Xorg to get the minimal necessary bitmap fonts ("fixed" and "cursor") required by the protocol from the libxfont library, and makes the special entry containing these fonts the only entry in the default font path.

After building Xorg, install as many TrueType fonts as needed into /usr/share/fonts/TTF, so that Fontconfig-based applications can find and use them.

http://wiki.linuxfromscratch.org/blfs/wiki/Xorg7Server


深空老大试过没?
还是说最近要开始着手1.6.X的制作?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-3-18 09:48:40 | 显示全部楼层
作为一懒人,知道什么时候收手是很重要的。

升到 xorg-server-1.6.x 会伤筋动骨,偶才不干,系统全面升级时才会考虑。

偶这里使用的是基于 gtk+ 的系统,编译时没加什么特殊参数,必须的 点阵字体 同样只是 "fixed" and "cursor"。
回复 支持 反对

使用道具 举报

发表于 2009-3-18 16:17:19 | 显示全部楼层
您的意思是说    您不做任何修改可以不需要
"font-cursor-misc" and "font-misc-misc"
这类像素字体包?

小弟英文不好,上面那段话理解为按照它说的改动可以不再需要安装"font-cursor-misc" and "font-misc-misc"这类字体包(当然如果还用gtk1的话就不要那么改动)
回复 支持 反对

使用道具 举报

发表于 2009-3-18 22:12:59 | 显示全部楼层
Post by 聚焦深空;1962543
作为一懒人,知道什么时候收手是很重要的。

升到 xorg-server-1.6.x 会伤筋动骨,偶才不干,系统全面升级时才会考虑。

偶这里使用的是基于 gtk+ 的系统,编译时没加什么特殊参数,必须的 点阵字体 同样只是 "fixed" and "cursor"。


今天 6.9 -> 7.4 的升級算是完成了大部份,基本尚算順利,只需微調少部份 6.9 跟 7.4 之間路徑上的差異就行了,可是還有一個關於字體的問題,Xorg Fonts 有 37 種,我認為無需全部裝,只裝了一部份,cursor 是裝了但沒找到哪個是 fixed,結果就是不能起動 X 了

d00m3d@BlackMesa:~$ xinit /usr/bin/jwm
_XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: transport open failed for inet6/BlackMesa:0
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6

X.Org X Server 1.5.3
Release Date: 5 November 2008
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.28.6 i686
Current Operating System: Linux BlackMesa 2.6.28.6 #1 SMP PREEMPT Wed Feb 18 10:27:06 HKT 2009 i686
Build Date: 18 March 2009  11:21:50AM

        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Wed Mar 18 20:00:42 2009
(==) Using config file: "/etc/X11/xorg.conf"

dlopen: libdrm.so.2: cannot open shared object file: No such file or directory
(EE) Failed to load /usr/X11R7/lib/X11/modules/extensions//libdri.so
(EE) Failed to load module "dri" (loader failed, 7)
(EE) AIGLX error: dlopen of /usr/X11R7/lib/dri/swrast_dri.so failed (libdrm.so.2: cannot open shared object file: No such file o
r directory)
(EE) GLX: could not load software renderer
Could not init font path element /usr/X11R7/lib/X11/fonts/TTF/, removing from list!
Could not init font path element /usr/X11R7/lib/X11/fonts/OTF, removing from list!

[color="Red"]Fatal server error:
could not open default font 'fixed'
giving up.
xinit:  No such file or directory (errno 2):  unable to connect to X server
xinit:  No such process (errno 3):  Server error.
d00m3d@BlackMesa:~$
我把 7.4 下的 fonts 目錄改名然後建個 symlink 到 6.9 的 fonts 目錄就一切正常,能啟動 X 了

mv /usr/X11R7/lib/X11/fonts /usr/X11R7/lib/X11/Fonts
ln -s /usr/x11r6/lib/X11/fonts /usr/X11R7/lib/X11/fonts

這樣就行,所以問題是到底哪款字是 "fixed"?名字都沒有一個叫什麼 fixed 的呀!

真不願意把所有的字全裝或者逐一把它試出來,望能賜教,謝謝。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表