|
|
第 1 帖 | |
|
|
标题: cce + gcc4 问题基本解决 (Final) 本文以 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.net/c...32004-dist.tgz patch cce-fix.zip: http://www.linuxsir.org/bbs/attachme...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 奇慢无比,还经常让我无法访问 . 此帖于 06-03-07 19:40 被 dyhml 编辑. 原因: Final |
|
|
|
|
|
|
|
第 2 帖 | |
|
|
问一下,cce干嘛用的?
__________________
青橄榄在入口的时候是苦的,过了一会你就可以长久的品味那淡淡而又清爽的甜味。 青橄榄 http://youbest.cublog.cn 青橄榄计划的第一步总算迈出来了,等待它的是万里长征. 做技术要有做技术的原则,决不拿技术做侵权的事情,更不能用来做违法的事情。工作丢了可以再找一个,原则丢了就找不回来了。 |
|
|
|
|
|
|
|
第 3 帖 | |
|
|
和 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 |
|
|
|
|
|
|
|
第 4 帖 | |
|
|
不错,兄弟的贡献我加入 olive 里边。。:)。
谢谢兄弟的共享,辛苦了。
__________________
我的wiki: http://wiki.linuxgnu.org 马甲Show:终极幻想 黯然销魂 DawnFantasy FinalFantasy ArmageddonMa |
|
|
|
|
|
|
|
第 5 帖 | |
|
|
看看在 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 , 我更喜欢. 此帖于 06-03-05 22:50 被 dyhml 编辑. |
|
|
|
|
|
|
|
第 6 帖 | |
|
|
借宝地一问:为什么在gcc-3.4.5下编译CCE会出现如下的错误──
代码:
BTW:我用的是Gentoo-2.6.15-r1。 |
|
|
|
|
|
|
|
第 7 帖 | |
|
|
/usr/include/sys/wait.h
好像不是 cce 的问题,如果试试重新解压 cce ,只用 文中提到的 部分补丁来自: https://sourceforge.net/tracker/inde...47&atid=575561 由 caiqian 在官方网页发布的补丁. |
|
|
|
|
|
|
|
第 8 帖 | |
|
|
强烈 BS TMD 的 电信和网通. 只知道收钱,不知道服务.
代码:
|
|
|
|
|
|
|
|
第 9 帖 | |
|
|
我想是因为他们两个之间的竞争,,导致这个速度慢的结果的。。
|
|
|
|
|
|
|
|
第 10 帖 | |
|
|
有了 south.linuxsir.org 真是太好了!!!!!!!!!!!!!!
__________________
计划进度,纯属虚构 架构设计,事后诸葛 |
|
|
|
|
|
|
|
第 11 帖 | |
|
|
标题: 希望楼主早日解决cce中鼠标的问题 鼠标的问题zhcon的解决办法是给GPM程序打补丁,打了之后zhcon是可以在MC里边使用鼠标的,请楼主参考一下zhcon给gpm的diff文件
|
|
|
|
|
|
|
|
第 12 帖 | |
|
|
zhcon中gpm的补丁如下
似乎就是把设备/dev/pts加进去了,我没看CCE的代码,不知道CCE用了这个设备没有 diff -urN gpm-1.19.6/src/liblow.c gpm-1.19.6.new/src/liblow.c --- gpm-1.19.6/src/liblow.c Tue Oct 2 04:08:47 2001 +++ gpm-1.19.6.new/src/liblow.c Tue Apr 30 22:44:24 2002 @@ -243,6 +243,14 @@ if (!t && isatty(1)) t = ttyname(1); /* stdout */ if (!t && isatty(2)) t = ttyname(2); /* stderr */ if (!t) goto err; + + /* help api running in pty env, like zhcon*/ + /* get salve tty name and try open */ + if (!strncmp(t,"/dev/pts",8)) + { /* for pty mode */ + t = getenv("PTY_SLAVE"); /* get slave tty */ + if (!t) goto err; + } strcpy(tty,t); /* replace with report() in gpm-1.21.x */ |
|
|
|
|
|
|
|
第 13 帖 | |
|
|
[root@localhost cce-0.51]# cce
CCE> Console/X11 CJK Environment Version 0.51 (Jan 2004) CCE> SDL library using video driver: x11. CCE> Using 640x480 32-bpp SDL, 80x28 terminal. CCE> Loading input method 0 all/intcode.tab: Succeeded. CCE> Loading input method 1 gbk/gbk-winpy.tab: Succeeded. CCE> Loading input method 3 gbk/nqwb.tab: Succeeded. CCE> Loading input method 6 all/ciyin.tab: Succeeded. CCE> Loading input method 9 all/zhiyin.tab: Succeeded. Failed to open new pseudo TTY. : No such file or directory CCE> Finished without core dump ![]() |
|
|
|
|
|
|
|
第 14 帖 | |
|
|
重要更新:
+ 让 mc 等 ncurese 程序在 zhcon/cce 环境下可以使用鼠标. 感谢 kukukuan 下面的补丁可能不能用,我的源码打了rh的补丁,如果不能用,请手动改代码. 代码:
|
|
|
|
|
|
|
|
第 15 帖 | |
|
|
可惜我还没找到在console下放ape&cue的播放器,小小的遗憾:P
![]()
__________________
hp epc: #cpu:p3 1.4g/ ram 512M/ hd st80g /os: gentoo&windows# neoware8500: #cpu:via 1g/ ram 256M/ cf 128M /os: 裁减linux# acer tm3010: #基本没用# |
|
|
|
|
|