程序安装编译问题 xwin.c 出错,请高手指点

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
cy_yuan
帖子: 2
注册时间: 2007-09-19 17:19

程序安装编译问题 xwin.c 出错,请高手指点

#1

帖子 cy_yuan » 2007-09-19 17:24

我下载安装EMBOSS软件,需要编译,在./configure以后 make 出现以下错误
xwin.c:2482: error: 'XwDisplay' has no member named 'rw_cmap'
xwin.c:2491: error: 'XwDisplay' has no member named 'visual'
xwin.c:2492: error: 'PseudoColor' undeclared (first use in this function)
xwin.c:2495: error: 'GrayScale' undeclared (first use in this function)
xwin.c:2498: error: 'DirectColor' undeclared (first use in this function)
xwin.c:2514: error: 'XwDisplay' has no member named 'rw_cmap'
xwin.c: In function 'AllocBGFG':
xwin.c:2538: error: 'XwDisplay' has no member named 'color'
xwin.c:2541: error: 'XwDisplay' has no member named 'rw_cmap'
xwin.c:2543: error: 'XwDisplay' has no member named 'display'
xwin.c:2543: error: 'XwDisplay' has no member named 'map'
xwin.c:2543: error: 'False' undeclared (first use in this function)
xwin.c:2547: error: 'XwDisplay' has no member named 'cmap0'
xwin.c:2551: error: 'XwDisplay' has no member named 'cmap0'
xwin.c:2551: error: 'XwDisplay' has no member named 'display'
xwin.c:2552: error: 'XwDisplay' has no member named 'fgcolor'
xwin.c:2552: error: 'XwDisplay' has no member named 'display'
xwin.c:2553: error: 'XwDisplay' has no member named 'rw_cmap'

是不是缺少什么包还是其他问题,此程序在FC4 上能正常编译,请各位帮帮忙!
cy_yuan
帖子: 2
注册时间: 2007-09-19 17:19

#2

帖子 cy_yuan » 2007-09-19 19:40

终于解决了,安装sudo apt-get install libx11-dev
bigben446
帖子: 109
注册时间: 2007-09-12 14:45

#3

帖子 bigben446 » 2008-06-11 0:53

thx,我在安装emboss碰到同样的问题,安你所说的解决了问题
回复