LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 9879|回复: 32

cce + gcc4 问题基本解决 (Final)

[复制链接]
发表于 2006-3-3 19:19:56 | 显示全部楼层 |阅读模式
本文以 GNU Free Documentation License 发布
补丁以 GNU General Public License 发布 , 补丁中包含 由 caiqian 在官方网页发布的补丁

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

cce:
http://prdownloads.sourceforge.n ... 1-02132004-dist.tgz

patch  cce-fix.zip:
http://www.linuxsir.cn/bbs/attac ... =1&d=1141532769

./configure --enable-x11-fonts --enable-freetype -enable-gpmmouse -enable-mouse
--enable-xxx 需要对应的 xxx 已安装,否则,自动忽略.

补丁随便,但出现下列问题是要对应的补丁:

1. wrong lvalue in increasement 或类似, 只有 gcc4 会出现, 补丁为 cce-gcc4fix.diff

2. PinYin PYMap 相关
static FT_Error (*p_FT_Init_FreeType)( FT_Library  *alibrary ) 相关
补丁为 cce-misc.diff

3.最后一步,连接成 cce 时,can't find GetX11BitmapFontBits
补丁已经合并到 cce-misc.diff

4. 同样最后一步,连接成 cce 时, can't find FT_..... , 则修改 src/Makefile , -L/usr/X11R6/lib -lXfont 处 添加 -L/usr/lib -lfreetype
可能只在我的机器出现, 所以未作补丁,其实我也不知道怎么做.

5. 看看 /dev/fb 是否存在, 否则: ln -s fb0 /dev/fb 最好写入启动脚本.
这个问题的表现是 : 启动 cce 无法用 framebuffer ,就是屏幕只能是 640x480 的vga ,或者花屏,或者退出后花屏
添加了修正 /dev/fb0 的补丁 cce-fb-vga.diff , 来自 caiqian

6. 未解决问题, 鼠标.
已用 --enable-gpmmouse --enable-mouse ,运行时可以看见鼠标光标,可以选择,但不能粘帖, mc 也不能点击.
修改 /usr/share/cce/cce.cfg 若打了 cce-etc.dff 则为 /etc/cce.cfg . 其中有 enable3buttonmouse 有3键鼠标则设为 on .选择粘帖 将正常.
TODO : mc 不能点击 ,其实zhcon 中也一样 ,可能要修改源码
我已经读过源码, 以我目前的能力无法解决, 问题出在 zhcon/cce 已经打开 /dev/gpmctl ,导致 mc 无法打开, 不能读鼠标

7. 其余补丁解释 , 按重要性排序:
cce-addfun.diff : 头文件中加上缺失的 函数定义
cce-etc.diff : 配置文件改为 /etc/cce.cfg ,但安装后要手动cp , cp /usr/share/cce/cce.cfg /etc/
cce-error.diff : 修改 DEBUG 输出
cce-makefile.patch : 修改 Makefile ,无所谓

以上4个补丁均来自 caiqian

8. 若用本人的补丁在 gcc-3.x.x 上不行, 请单独使用由 caiqian 在官方网页发布的补丁, 不要用我的补丁.

打完补丁后:
aclocal
automake --add-missing
autoconf
./configure --.............



最后,我要 bs 电信 和 网通 100000 遍 , 互通问题让我访问 sir 奇慢无比,还经常让我无法访问 .

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2006-3-3 21:06:40 | 显示全部楼层
问一下,cce干嘛用的?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-3 21:47:21 | 显示全部楼层
和 zhcon 一个功能, 比 zhcon 好在支持 utf-8 ,还有就是比较新, 有些人比较喜欢, 比如 MagicLinux .

我想搞好 cce 给大家多一个选择. 我自己正在比较这两个.

            CCE(Console Chinese/Japanese/Korean Environment)

Introduction
*************

  CCE lets you display and input Chinese/Japanese/Korean in lots of OS.
  It works in both console mode and X Windows(through GGI/SDL library).
  CCE supports both frame buffer(Linux and FreeBSD only) and VGA(640x480x16
  colors) display.  CCE also includes lots of GB/GBK/Big5 input methods
  like Intelligent Pinyin, Zhuyin, WuBi, CangJie, DaYi, etc.

  Major Features:
   1) Support lots of OS: Linux, *BSD, LynxOS, QNX, Solaris, Minix, Hurd,
          Darwin, MacOSX, Windows, BeOS, SCO Unix
   2) Support lots of encodings: GB2312, GBK, Big5, EUC-JP, Shift-JIS, KSC
      UTF-8 also supported through I/O filter
   3) Support lots of font formats: Bin, X11 PCF/BDF, TrueType fonts
   4) Support lots of display methods: VGA(memory, file, LRMI), framebuffer, GGI, SDL
   5) Multiple window support, can support up to 10 windows
   6) Dynamic encoding switch between different CJK encodings
   7) Support mouse copy/paste in most OS, including Linux gpm mouse server.
   8) Lots of input methods for GB/GBK/Big5, including intelligent Pinyin and Zhuyin.
   9) Support dynamical keyboard switch for Pinyin/Zhuyin: QuanPin, ShuangPin, TonePY,
      ZOZY, ETZY, CYZY, IBMZY, STZY, ET26ZY, HSU25ZY
   10) Association(LianXiang) support for most input methods
回复 支持 反对

使用道具 举报

发表于 2006-3-4 02:10:12 | 显示全部楼层
不错,兄弟的贡献我加入 olive 里边。。:)。

谢谢兄弟的共享,辛苦了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-5 12:57:04 | 显示全部楼层
看看在 console 下播放 mp3 的效果:

二者均使用 gbk 模式, gbk 汉字 "陶喆" ,ls 时 均可以显示,播放列表中均为乱码.
cce 选择粘帖 "陶喆" 乱码 ,zhcon 可以正常选择粘帖 "陶喆" .

zhcon + mp3blaster 使用内置 Mpegsound , 另 mp3blaster 支持 ogg , 对文件头损坏的mp3 文件支持也非常好.


cce + playmp3list 调用 mpg123 , 无法播放文件头损坏的mp3.


对他们的声音效果我这个音盲是听不出的, 只知道都有声音.
不过 Mpegsound 应该是很老了, 而 mpg123 还有人开发.
千千静听 就用了 mpg123 ,作者还说比另一个著名的 mp3 解码器 mad 要好.
我这个音盲实在是听不出, 但就我看来, mp3blaster 界面好, 支持 ogg ,支持文件头损坏的mp3 , 我更喜欢.

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

发表于 2006-3-6 15:27:38 | 显示全部楼层
借宝地一问:为什么在gcc-3.4.5下编译CCE会出现如下的错误──


  1. In file included from term.c:60:
  2. /usr/include/sys/wait.h: At top level:
  3. /usr/include/sys/wait.h:103: error: syntax error before numeric constant
复制代码


楼主提供的补丁中没有针对这一问题的。
BTW:我用的是Gentoo-2.6.15-r1。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-6 17:53:22 | 显示全部楼层
/usr/include/sys/wait.h

好像不是 cce  的问题,如果试试重新解压 cce ,只用 文中提到的
部分补丁来自: https://sourceforge.net/tracker/inde...47&atid=575561
由 caiqian 在官方网页发布的补丁.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-7 18:38:26 | 显示全部楼层
强烈 BS TMD 的 电信和网通. 只知道收钱,不知道服务.

  1. tracert www.linuxsir.cn

  2. Tracing route to www.linuxsir.cn [218.61.34.138]
  3. over a maximum of 30 hops:

  4.   1    28 ms    31 ms    30 ms  10.xxxx
  5.   2    15 ms    15 ms    15 ms  218.2.xxxxx
  6.   3    15 ms    15 ms    15 ms  218.2.xxxxx
  7.   4    15 ms    15 ms    15 ms  218.2.xxxxx
  8.   5    15 ms    15 ms    15 ms  221.231.206.13
  9.   6    31 ms    31 ms    31 ms  202.97.27.109
  10.   7     *       31 ms    30 ms  202.97.41.189
  11.   8    46 ms    46 ms    45 ms  202.97.35.141
  12.   9    46 ms    44 ms    46 ms  202.97.36.86
  13. 10   734 ms   734 ms     *     202.97.15.178
  14. 11   733 ms   734 ms     *     219.158.11.65
  15. 12   780 ms   781 ms     *     219.158.7.118
  16. 13   593 ms     *      593 ms  cncln.online.ln.cn [218.61.255.198]
  17. 14   776 ms     *      765 ms  cncln.online.ln.cn [218.61.255.182]
  18. 15     *      593 ms   593 ms  218.25.138.218
  19. 16   781 ms   765 ms   765 ms  cncln.online.ln.cn [218.61.34.138]

  20. Trace complete.
复制代码
回复 支持 反对

使用道具 举报

发表于 2006-3-7 18:40:38 | 显示全部楼层
我想是因为他们两个之间的竞争,,导致这个速度慢的结果的。。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-9 12:05:24 | 显示全部楼层
有了 south.linuxsir.cn 真是太好了!!!!!!!!!!!!!!
回复 支持 反对

使用道具 举报

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

本版积分规则

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