编译安装fcitx3.6.0版时出错!
- anway
- 帖子: 403
- 注册时间: 2007-07-22 12:13
编译安装fcitx3.6.0版时出错!
./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
可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版时出错!
少装了某些库文件吧,我编译fcitx的步骤:
一、sudo apt-get install build-essential automake
二、sudo apt-get build-dep fcitx
三、fcitx目录下:./autogen.sh
四、fcitx目录下:./configure --prefix=/usr
五、fcitx目录下:make
六、制作成deb文件
一、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版时出错!
一步生成 deb
fakeroot debian/rules binary
fakeroot debian/rules binary
- alpha.gu
- 帖子: 1456
- 注册时间: 2006-09-10 16:06
- 联系:
Re: 编译安装fcitx3.6.0版时出错!
终于知道那个debina目录的用处了,以前知道个大概,从来没用过,我是用笨办法的,从源里下个deb来解包,然后,替换相应文件,然后重新打包。
- anway
- 帖子: 403
- 注册时间: 2007-07-22 12:13
Re: 编译安装fcitx3.6.0版时出错!
根据2楼意见,结果仍出错,报错信息少了很多。
有机会试试3楼的。
有机会试试3楼的。
- alpha.gu
- 帖子: 1456
- 注册时间: 2006-09-10 16:06
- 联系:
Re: 编译安装fcitx3.6.0版时出错!
昨天我刚编译了最新的svn 187版本,OK的。
- anway
- 帖子: 403
- 注册时间: 2007-07-22 12:13
Re: 编译安装fcitx3.6.0版时出错!
虽然报错,今天登录后居然发现版本已经是3.6的了,只是没有提示栏,有如盲打。可能还是安装有问题。
今天登录作者主页看了一下,说这个版本在8.04版上问题突出,晕!
今天登录作者主页看了一下,说这个版本在8.04版上问题突出,晕!
- anway
- 帖子: 403
- 注册时间: 2007-07-22 12:13
Re: 编译安装fcitx3.6.0版时出错!
anway@anway-laptop:~/tmp/fcitx-3.6.0-rc$ sudo fakeroot debian/rules binary
/usr/bin/fakeroot: 166: debian/rules: Permission denied
已经是管理员权限,怎么还无许可?
How?
/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版时出错!
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
不明所以,唉,也没哪里有资料可查。
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版时出错!
fakeroot 前面不用加 sudo。
之前执行这个命令
chmod +x debian/rules
刚解开的包 rules 可能没有执行权限。
之前执行这个命令
chmod +x debian/rules
刚解开的包 rules 可能没有执行权限。
- anway
- 帖子: 403
- 注册时间: 2007-07-22 12:13
Re: 编译安装fcitx3.6.0版时出错!
搞定,我还是用经典的configure,make,make install重新来了一遍(这次居然没报错,晕!),搞定。
- kurai
- 帖子: 764
- 注册时间: 2009-04-17 10:42
Re: 编译安装fcitx3.6.0版时出错!
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试试
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版时出错!
这好像是症结所在,很多人都有这个问题,网上一般都会分享经验的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试试
Ubuntu User
-
- 帖子: 32
- 注册时间: 2007-03-07 15:12
- 联系:
Re: 编译安装fcitx3.6.0版时出错!
出现/usr/bin/ld: cannot find -lXtst,可以sudo aptitude install libxtst-dev
- hcym
- 帖子: 15634
- 注册时间: 2007-05-06 2:46
Re: 编译安装fcitx3.6.0版时出错!
编译fcitx
漫漫人生路,总会错几步。
漫漫人生路,总会错几步。