LinuxSir.cn,穿越时空的Linuxsir!

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

zchon是不是需要gcc3才能编译啊?

[复制链接]
发表于 2006-3-21 20:23:00 | 显示全部楼层 |阅读模式
[cyx@localhost zhcon-0.2.3]$ ./configure
中间显示省略
Configuration:
    Target system:             i686-pc-linux-gnu
    Source code location:      .
    C++ Compiler:              g++
    C++ Compiler flags:         -funsigned-char -march=i686 -DNDEBUG -Wall
    C   Compiler:              gcc
    C   Compiler flags:         -funsigned-char -march=i686 -DNDEBUG -Wall
    VGA support:               yes
    gpm moues support:         no
    libggi support:            no
    unicon support:            no
    zhcon binary dir:          /usr/local/bin
    zhcon files dir:           /usr/local/lib/zhcon

Config complete, now type make to build zhcon.
Good Luck!
这步骤成功!
make的时候显示
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:rawChar(int, int, int, int, CharBitMap*)':
fblinear24.cpp:206: error: invalid lvalue in assignment
fblinear24.cpp:210: error: invalid lvalue in assignment
make[3]: *** [fblinear24.o] 错误 1
make[3]: Leaving directory `/home/cyx/Desktop/zhcon-0.2.3/src/display'
make[2]: *** [all-recursive] 错误 1
make[2]: Leaving directory `/home/cyx/Desktop/zhcon-0.2.3/src'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/home/cyx/Desktop/zhcon-0.2.3'
make: *** [all] 错误 2


depmode=gcc3 /bin/sh ../../depcomp \这一句是不是表明zchon需要gcc3才能编译的?我机器上只有gcc4,看来还要安装gcc3,现在问题又来了,假若同时有gcc3和gcc4,那编译程序的时候,能自己识别选择gcc3还是gcc4?
若不能程序识别,我可不可以手动指定,如何指定啊?
发表于 2006-3-21 21:33:44 | 显示全部楼层
1. mdv 的源里有zhcon
2. 有补丁的, 即使自己写补丁也不是很难.
3. 最简单的方式, 到 rpmfind.net 找到 mdv 的 zhcon 的 src.rpm , 直接用里面的补丁.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-21 21:56:09 | 显示全部楼层
按照楼上的提示去rpmfind.org找了一下,没有结果!
回复 支持 反对

使用道具 举报

发表于 2006-3-21 22:17:44 | 显示全部楼层
我说的是 rpmfind.[color="Red"]net

http://rpmfind.net//linux/RPM/ma ... 0.2.3-7mdk.src.html

再说了, rpmfind.org 重定向到 http://rpmseek.com ,我也找到了
http://rpmseek.com/rpm-pl/zhcon.html?hl=com&cs=zhconN:0:0:0:0
回复 支持 反对

使用道具 举报

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

本版积分规则

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