编译zhcon的问题

编译打包和其他
回复
头像
yilan198711
帖子: 1636
注册时间: 2008-06-22 13:38
来自: 武汉

编译zhcon的问题

#1

帖子 yilan198711 » 2010-01-15 18:38

因为现在使用的发行版本里面没有zhcon的软件包,所以只好自己编译了

configure成功了,但是make的时候出现了错误,不明白是什么回事

sim@sim-pardus zhcon-0.2.3 $ make
cd . \
&& CONFIG_FILES= CONFIG_HEADERS=config.h \
/bin/sh ./config.status
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default-1 commands
config.status: executing default-2 commands
make all-recursive
make[1]: Entering directory `/home/sim/Downloads/zhcon-0.2.3'
Making all in src
make[2]: Entering directory `/home/sim/Downloads/zhcon-0.2.3/src'
Making all in display
make[3]: Entering directory `/home/sim/Downloads/zhcon-0.2.3/src/display'
source='fblinear24.cpp' object='fblinear24.o' libtool=no \
depfile='.deps/fblinear24.Po' tmpdepfile='.deps/fblinear24.TPo' \
depmode=gcc3 /bin/sh ../../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -funsigned-char -march=i686 -DNDEBUG -Wall -c -o fblinear24.o `test -f fblinear24.cpp || echo './'`fblinear24.cpp
fblinear24.cpp: In member function 'virtual void FBLinear24::RevRect(int, int, int, int)':
fblinear24.cpp:127: warning: operation on 'dest32' may be undefined
fblinear24.cpp:128: warning: operation on 'dest32' may be undefined
fblinear24.cpp:129: warning: operation on 'dest32' may be undefined
fblinear24.cpp:132: warning: operation on 'dest32' may be undefined
fblinear24.cpp:134: warning: operation on 'dest16' may be undefined
fblinear24.cpp:139: warning: operation on 'dest16' may be undefined
fblinear24.cpp: In member function 'virtual void FBLinear24::DrawChar(int, int, int, int, CharBitMap*)':
fblinear24.cpp:206: error: lvalue required as increment operand
fblinear24.cpp:210: error: lvalue required as increment operand


*** 2 errors, 6 warnings
make[3]: *** [fblinear24.o] Error 1
make[3]: Leaving directory `/home/sim/Downloads/zhcon-0.2.3/src/display'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/sim/Downloads/zhcon-0.2.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/sim/Downloads/zhcon-0.2.3'
make: *** [all] Error 2

希望大家能够指教下,多谢
mint+gnome
头像
arkansas_ubuntu
帖子: 56
注册时间: 2010-05-18 10:00

Re: 编译zhcon的问题

#2

帖子 arkansas_ubuntu » 2010-05-20 11:32

在ubuntu10.04中,用新立德软件管理器安装的zhcon不好用,很多功能用不了,我就尝试自己编译zhcon来安装,但是问题多多,比cce的问题还多,我成功地编译安装了cce,建议你装cce. 请看http://forum.ubuntu.org.cn/viewtopic.php?f=56&t=273571
Ubuntu论坛中的PLMM数目比Linux下的病毒数目还少,所以
就不用想了,如果你真的碰上了,恭喜,请执行以下命令:
sudo mount -t french /dev/mouth0 /mnt/kiss
french这个参数可以用man kiss查到。别忘了umount,否则
buffer内的数据会丢失。
头像
arkansas_ubuntu
帖子: 56
注册时间: 2010-05-18 10:00

Re: 编译zhcon的问题

#3

帖子 arkansas_ubuntu » 2010-05-22 11:39

这两天和编译纯控制台下的中文平台干上了,cce-0.51、fbterm-ucimf和zhcon-0.2.6都成功编译,但是安装后发现以下问题。
cce-0.51对16:9的宽屏幕支持不好,刷新有问题。
fbterm-ucimf总出现一个讨厌的132,倒是能输入中文,可是无法切换全角和半角,我个人认为写中文就得用中文标点符号,写英文用英文标点符号。不要混淆。
zhcon-0.2.6,花了一个多小时在编译出错的那些文件或相应的头文件上加入诸如下列包含:
#include <cstring>
#include <cstdlib>
#include <cctype>
#include <algorithm>
之后就一定能编译成功。
可是问题依旧,这个编译安装的zhcon和用新立德软件包下载的安装包一模一样,问题也一样,尝试了kbd_mode -a之后依然无法切换输入法,只有拼音输入法,无法切换全角半角。
希望大虾指点迷津!
Ubuntu论坛中的PLMM数目比Linux下的病毒数目还少,所以
就不用想了,如果你真的碰上了,恭喜,请执行以下命令:
sudo mount -t french /dev/mouth0 /mnt/kiss
french这个参数可以用man kiss查到。别忘了umount,否则
buffer内的数据会丢失。
回复