编译安装fcitx3.6.0版时出错!

系统字体配置、中文显示和输入法问题
头像
anway
帖子: 403
注册时间: 2007-07-22 12:13

编译安装fcitx3.6.0版时出错!

#1

帖子 anway » 2009-03-07 19:48

./configure没问题,
可make时报错,请明白人指点!
错误信息如下:

InputWindow.c:31:21: error: X11/xpm.h: No such file or directory
InputWindow.c: In function ‘DrawInputWindow’:
InputWindow.c:237: error: ‘XpmAttributes’ undeclared (first use in this function)
InputWindow.c:237: error: (Each undeclared identifier is reported only once
InputWindow.c:237: error: for each function it appears in.)
InputWindow.c:237: error: expected ‘;’ before ‘attrib’
InputWindow.c:415: error: ‘attrib’ undeclared (first use in this function)
InputWindow.c:436: warning: implicit declaration of function ‘XpmCreateImageFromData’
InputWindow.c:437: error: ‘XpmSuccess’ undeclared (first use in this function)
make[2]: *** [InputWindow.o] Error 1
make[2]: Leaving directory `/home/anway/tmp/fcitx-3.6.0-rc/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/anway/tmp/fcitx-3.6.0-rc'
make: *** [all] Error 2
头像
alpha.gu
帖子: 1456
注册时间: 2006-09-10 16:06
联系:

Re: 编译安装fcitx3.6.0版时出错!

#2

帖子 alpha.gu » 2009-03-07 22:25

少装了某些库文件吧,我编译fcitx的步骤:

一、sudo apt-get install build-essential automake
二、sudo apt-get build-dep fcitx
三、fcitx目录下:./autogen.sh
四、fcitx目录下:./configure --prefix=/usr
五、fcitx目录下:make
六、制作成deb文件
头像
AutoXBC
帖子: 1744
注册时间: 2007-10-23 12:54

Re: 编译安装fcitx3.6.0版时出错!

#3

帖子 AutoXBC » 2009-03-07 23:04

一步生成 deb
fakeroot debian/rules binary
头像
alpha.gu
帖子: 1456
注册时间: 2006-09-10 16:06
联系:

Re: 编译安装fcitx3.6.0版时出错!

#4

帖子 alpha.gu » 2009-03-08 10:51

终于知道那个debina目录的用处了,以前知道个大概,从来没用过,我是用笨办法的,从源里下个deb来解包,然后,替换相应文件,然后重新打包。
头像
anway
帖子: 403
注册时间: 2007-07-22 12:13

Re: 编译安装fcitx3.6.0版时出错!

#5

帖子 anway » 2009-03-09 9:53

根据2楼意见,结果仍出错,报错信息少了很多。

有机会试试3楼的。
头像
alpha.gu
帖子: 1456
注册时间: 2006-09-10 16:06
联系:

Re: 编译安装fcitx3.6.0版时出错!

#6

帖子 alpha.gu » 2009-03-09 10:02

昨天我刚编译了最新的svn 187版本,OK的。
头像
anway
帖子: 403
注册时间: 2007-07-22 12:13

Re: 编译安装fcitx3.6.0版时出错!

#7

帖子 anway » 2009-03-09 11:01

虽然报错,今天登录后居然发现版本已经是3.6的了,只是没有提示栏,有如盲打。可能还是安装有问题。
今天登录作者主页看了一下,说这个版本在8.04版上问题突出,晕!
头像
anway
帖子: 403
注册时间: 2007-07-22 12:13

Re: 编译安装fcitx3.6.0版时出错!

#8

帖子 anway » 2009-03-09 11:19

anway@anway-laptop:~/tmp/fcitx-3.6.0-rc$ sudo fakeroot debian/rules binary
/usr/bin/fakeroot: 166: debian/rules: Permission denied

已经是管理员权限,怎么还无许可?
How?
上次由 anway 在 2009-03-09 11:22,总共编辑 1 次。
头像
anway
帖子: 403
注册时间: 2007-07-22 12:13

Re: 编译安装fcitx3.6.0版时出错!

#9

帖子 anway » 2009-03-09 11:21

make时报错:
make[2]: *** [fcitx] Error 1
make[2]: Leaving directory `/home/anway/tmp/fcitx-3.6.0-rc/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/anway/tmp/fcitx-3.6.0-rc'
make: *** [all] Error 2

不明所以,唉,也没哪里有资料可查。
头像
AutoXBC
帖子: 1744
注册时间: 2007-10-23 12:54

Re: 编译安装fcitx3.6.0版时出错!

#10

帖子 AutoXBC » 2009-03-09 12:34

fakeroot 前面不用加 sudo。

之前执行这个命令
chmod +x debian/rules

刚解开的包 rules 可能没有执行权限。
头像
anway
帖子: 403
注册时间: 2007-07-22 12:13

Re: 编译安装fcitx3.6.0版时出错!

#11

帖子 anway » 2009-03-10 10:26

搞定,我还是用经典的configure,make,make install重新来了一遍(这次居然没报错,晕!),搞定。
头像
kurai
帖子: 764
注册时间: 2009-04-17 10:42

Re: 编译安装fcitx3.6.0版时出错!

#12

帖子 kurai » 2009-04-17 19:58

nputWindow.c:31:21: 错误: X11/xpm.h:没有该文件或目录
InputWindow.c: 在函数‘DrawInputWindow’中:
InputWindow.c:237: 错误: ‘XpmAttributes’未声明 (在此函数内第一次使用)
InputWindow.c:237: 错误: (即使在一个函数内多次出现,每个未声明的标识符在其
InputWindow.c:237: 错误: 所在的函数内也只报告一次。)
InputWindow.c:237: 错误: expected ‘;’ before ‘attrib’
InputWindow.c:415: 错误: ‘attrib’未声明 (在此函数内第一次使用)
InputWindow.c:436: 警告: 隐式声明函数‘XpmCreateImageFromData’
InputWindow.c:437: 错误: ‘XpmSuccess’未声明 (在此函数内第一次使用)
make[2]: *** [InputWindow.o] 错误 1
make[2]:正在离开目录 `/home/open-baike/trunk/src'
make[1]: *** [all-recursive] 错误 1
make[1]:正在离开目录 `/home/open-baike/trunk'
make: *** [all] 错误 2

解决办法:
sudo apt-get install libxpm-dev
还有这个错误
Error Creat Chinese Fonts:
sudo apt-get install libxft-dev试试
头像
想入非非
帖子: 8078
注册时间: 2008-07-14 22:42
来自: Beijing
联系:

Re: 编译安装fcitx3.6.0版时出错!

#13

帖子 想入非非 » 2009-04-21 21:31

kurai 写了:nputWindow.c:31:21: 错误: X11/xpm.h:没有该文件或目录
InputWindow.c: 在函数‘DrawInputWindow’中:
InputWindow.c:237: 错误: ‘XpmAttributes’未声明 (在此函数内第一次使用)
InputWindow.c:237: 错误: (即使在一个函数内多次出现,每个未声明的标识符在其
InputWindow.c:237: 错误: 所在的函数内也只报告一次。)
InputWindow.c:237: 错误: expected ‘;’ before ‘attrib’
InputWindow.c:415: 错误: ‘attrib’未声明 (在此函数内第一次使用)
InputWindow.c:436: 警告: 隐式声明函数‘XpmCreateImageFromData’
InputWindow.c:437: 错误: ‘XpmSuccess’未声明 (在此函数内第一次使用)
make[2]: *** [InputWindow.o] 错误 1
make[2]:正在离开目录 `/home/open-baike/trunk/src'
make[1]: *** [all-recursive] 错误 1
make[1]:正在离开目录 `/home/open-baike/trunk'
make: *** [all] 错误 2

解决办法:
sudo apt-get install libxpm-dev
还有这个错误
Error Creat Chinese Fonts:
sudo apt-get install libxft-dev试试
这好像是症结所在,很多人都有这个问题,网上一般都会分享经验的 :em20
Ubuntu User
daijinyong
帖子: 32
注册时间: 2007-03-07 15:12
联系:

Re: 编译安装fcitx3.6.0版时出错!

#14

帖子 daijinyong » 2009-07-13 21:37

出现/usr/bin/ld: cannot find -lXtst,可以sudo aptitude install libxtst-dev
头像
hcym
帖子: 15634
注册时间: 2007-05-06 2:46

Re: 编译安装fcitx3.6.0版时出错!

#15

帖子 hcym » 2009-07-13 21:41

编译fcitx

漫漫人生路,总会错几步。

:em04
回复