[问题]请教关于在控制台中 UTF-8 查看和输入的问题

系统字体配置、中文显示和输入法问题
zengsun
帖子: 334
注册时间: 2005-05-17 14:45

#16

帖子 zengsun » 2005-09-12 12:55

编译错误:我在breezy中,以前可以在gcc3x中编译的程序现在都发生编译错误。
不知该如何解决?
---------------------
Making all in src
make[1]: Entering directory `/home/zengsun/MyDownloads/cce-0.51/src'
Making all in input
make[2]: Entering directory `/home/zengsun/MyDownloads/cce-0.51/src/input'
if gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2 -DCCELIB=\"/usr/local/share/cce\" -MT associate.o -MD -MP -MF ".deps/associate.Tpo" -c -o associate.o associate.c; \
then mv -f ".deps/associate.Tpo" ".deps/associate.Po"; else rm -f ".deps/associate.Tpo"; exit 1; fi
In file included from associate.c:38:
../../include/defs.h: 在函数 ‘bzero2’ 中:
../../include/defs.h:61: 错误:自增运算中的左值无效
../../include/defs.h: 在函数 ‘wzero’ 中:
../../include/defs.h:68: 错误:自增运算中的左值无效
../../include/defs.h: 在函数 ‘lzero’ 中:
../../include/defs.h:76: 错误:自增运算中的左值无效
../../include/defs.h: 在函数 ‘bmove’ 中:
../../include/defs.h:82: 错误:自增运算中的左值无效
../../include/defs.h:82: 错误:自增运算中的左值无效
../../include/defs.h: 在函数 ‘brmove’ 中:
../../include/defs.h:88: 错误:自减运算中的左值无效
../../include/defs.h:88: 错误:自减运算中的左值无效
../../include/defs.h: 在函数 ‘wmove’ 中:
../../include/defs.h:95: 错误:自增运算中的左值无效
../../include/defs.h:95: 错误:自增运算中的左值无效
../../include/defs.h: 在函数 ‘lmove’ 中:
../../include/defs.h:102: 错误:自增运算中的左值无效
../../include/defs.h:102: 错误:自增运算中的左值无效
associate.c: 在函数 ‘FillAssociateChars’ 中:
associate.c:150: 警告:传递参数 1 (属于 ‘strlen’) 给指针时目标与指针有/无符号不 一致
associate.c:165: 警告:传递参数 1 (属于 ‘__builtin_strncpy’) 给指针时目标与指针 有/无符号不一致
associate.c:165: 警告:传递参数 2 (属于 ‘__builtin_strncpy’) 给指针时目标与指针 有/无符号不一致
associate.c: 在函数 ‘DisplayAssociateInput’ 中:
associate.c:200: 警告:传递参数 3 (属于 ‘InputAreaOutput’) 给指针时目标与指针有/无符号不一致
associate.c: 在函数 ‘Associate_HZFilter’ 中:
associate.c:214: 警告:对指针赋值时目标与指针有/无符号不一致
make[2]: *** [associate.o] 错误 1
make[2]: Leaving directory `/home/zengsun/MyDownloads/cce-0.51/src/input'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/home/zengsun/MyDownloads/cce-0.51/src'
make: *** [all-recursive] 错误 1
现在还是在学java!
头像
yanqian
帖子: 33
注册时间: 2005-08-31 14:18

#17

帖子 yanqian » 2006-01-07 1:30

google使我跑到这里……

我在debian里面编译安装cce也出现错误:
/usr/local/src/cce-0.51# make
Making all in src
make[1]: Entering directory `/usr/local/src/cce-0.51/src'
Making all in input
make[2]: Entering directory `/usr/local/src/cce-0.51/src/input'
if gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2 -DCCELIB=\"/usr/local/share/cce\" -MT associate.o -MD -MP -MF ".deps/associate.Tpo" -c -o associate.o associate.c; \
then mv -f ".deps/associate.Tpo" ".deps/associate.Po"; else rm -f ".deps/associate.Tpo"; exit 1; fi
In file included from associate.c:38:
../../include/defs.h: In function ‘bzero2’:
../../include/defs.h:61: error: invalid lvalue in increment
../../include/defs.h: In function ‘wzero’:
../../include/defs.h:68: error: invalid lvalue in increment
../../include/defs.h: In function ‘lzero’:
../../include/defs.h:76: error: invalid lvalue in increment
../../include/defs.h: In function ‘bmove’:
../../include/defs.h:82: error: invalid lvalue in increment
../../include/defs.h:82: error: invalid lvalue in increment
../../include/defs.h: In function ‘brmove’:
../../include/defs.h:88: error: invalid lvalue in decrement
../../include/defs.h:88: error: invalid lvalue in decrement
../../include/defs.h: In function ‘wmove’:
../../include/defs.h:95: error: invalid lvalue in increment
../../include/defs.h:95: error: invalid lvalue in increment
../../include/defs.h: In function ‘lmove’:
../../include/defs.h:102: error: invalid lvalue in increment
../../include/defs.h:102: error: invalid lvalue in increment
associate.c: In function ‘FillAssociateChars’:
associate.c:150: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
associate.c:165: warning: pointer targets in passing argument 1 of ‘__builtin_strncpy’ differ in signedness
associate.c:165: warning: pointer targets in passing argument 2 of ‘__builtin_strncpy’ differ in signedness
associate.c: In function ‘DisplayAssociateInput’:
associate.c:200: warning: pointer targets in passing argument 3 of ‘InputAreaOutput’ differ in signedness
associate.c: In function ‘Associate_HZFilter’:
associate.c:214: warning: pointer targets in assignment differ in signedness
make[2]: *** [associate.o] 错误 1
make[2]: Leaving directory `/usr/local/src/cce-0.51/src/input'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/usr/local/src/cce-0.51/src'
make: *** [all-recursive] 错误 1
请问到底该怎么解决呢?
是不是需要使用低版本的gcc什么的,我也不懂。。
头像
yanqian
帖子: 33
注册时间: 2005-08-31 14:18

#18

帖子 yanqian » 2006-01-07 15:01

yongyi 写了:安装完cce 后,
在控制台运行命令:
cce -filter UTF-8

源里头的cce比较旧,不知道行不。我这有一个由rpm转过来的deb,下载:
wget -c http://hanyangltd.com/upload/kde/cce_0.51-2_i386.deb
然后
sudo dpkg -i cce_0.51-2_i386.deb
安装。
我用的系统是debian etch,我下载了这个链接里面的cce_0.51-2_i386.deb安装后,使用出现如下问题:
我的menu.lst里面kernel这一行是这样的:

代码: 全选

kernel          /boot/vmlinuz-2.6.8-2-k7 root=/dev/hda3 ro vga=789
我在没启动X window的控制台下,没有启动cce时,系统是正常的800x600x24,也就是我设置的“vga=789”的效果,但是启动cce后,感觉就变了,分辨率好象变成了“640x480”,不知道这是为什么,我看了/usr/share/cce/cce.cfg文件,里面有一段是这样的:

代码: 全选

# For Linux framebuffer, CCE will use the resolution and color depth
# of current frame buffer, so this option is for FreeBSD ONLY.
# For FreeBSD, system console only supports 640x480x4 and 800x600x4,
# but you can use other VESA resolutions supported by your video card.
# Try 'kldload vesa' to load VESA module, then 'vidcontrol -i mode'
# to list, the format is 'width height depth'. For example, 800 600 8.
# If you put 0 0 0 here, CCE will try to use 800x600x4, then 640x480x4.
FreeBSDFrameBuffer:
	#800 600 8
	#1024 768 8
	0 0 0
我觉得它的意思是说,在Linux里面会默认使用当前的分辨率和色深,可是为什么我这里却不是呢?

另外下面是/usr/share/cce/cce.cfg里面的另一段:

代码: 全选

# If you are using a S3 Video Card, please set this option to 'S3'
# CCE will automatically detect the frame buffer and use it if it's
# available. Otherwise CCE will use 640x480x16 colors VGA mode.
#Display:
#	S3
Display:
	VGA
这个地方不管我设置的是“S3”还是“VGA”,打开cce后显示效果并没有什么变化,还是640x480的样子。

到底怎么样才能让cce以当前默认的分辨和色深进行显示呢,感觉那个640x480好难看的?
头像
vizo
帖子: 27
注册时间: 2006-03-08 15:04

#19

帖子 vizo » 2006-05-02 20:12

To yanqian:

我遇到了同样的问题,
至今没解决~
回复