LinuxSir.cn,穿越时空的Linuxsir!

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

fcitx 3.6.2 make error

[复制链接]
发表于 2009-10-17 21:49:33 | 显示全部楼层 |阅读模式
make  all-recursive
make[1]: 正在进入目录 `/home/kj/fcitx-3.6.2'
Making all in doc
make[2]: 正在进入目录 `/home/kj/fcitx-3.6.2/doc'
make[2]: 没有什么可以做的为 `all'。
make[2]:正在离开目录 `/home/kj/fcitx-3.6.2/doc'
Making all in xpm
make[2]: 正在进入目录 `/home/kj/fcitx-3.6.2/xpm'
make[2]: 没有什么可以做的为 `all'。
make[2]:正在离开目录 `/home/kj/fcitx-3.6.2/xpm'
Making all in lib
make[2]: 正在进入目录 `/home/kj/fcitx-3.6.2/lib'
make[2]: 没有什么可以做的为 `all'。
make[2]:正在离开目录 `/home/kj/fcitx-3.6.2/lib'
Making all in src
make[2]: 正在进入目录 `/home/kj/fcitx-3.6.2/src'
gcc -DPKGDATADIR=\"/usr/local/share/fcitx\" -I. -I.. -I. -I../lib -I../xpm   -O2 -fno-strength-reduce -g -O2 -INONE -INONE -D_ENABLE_TRAY -INONE -D_ENABLE_LOG -INONE -Wall -MT ime.o -MD -MP -MF .deps/ime.Tpo -c -o ime.o ime.c
在包含自 /usr/include/X11/Xft/Xft.h:39 的文件中,
                 从 TrayWindow.h:6,
                 从 ime.c:42:
/usr/local/include/ft2build.h:56:38: 错误: freetype/config/ftheader.h:没有该文件或目录
在包含自 TrayWindow.h:6 的文件中,
                 从 ime.c:42:
/usr/include/X11/Xft/Xft.h:40:10: 错误: #include 需要 "FILENAME" 或 <FILENAME>
In file included from TrayWindow.h:6,
                 from ime.c:42:
/usr/include/X11/Xft/Xft.h:60: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_XftFTlibrary’
/usr/include/X11/Xft/Xft.h:94: 错误: expected specifier-qualifier-list before ‘FT_UInt’
/usr/include/X11/Xft/Xft.h:101: 错误: expected specifier-qualifier-list before ‘FT_UInt’
/usr/include/X11/Xft/Xft.h:198: 错误: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/include/X11/Xft/Xft.h:303: 错误: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/include/X11/Xft/Xft.h:362: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘XftLockFace’
/usr/include/X11/Xft/Xft.h:401: 错误: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/include/X11/Xft/Xft.h:407: 错误: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/include/X11/Xft/Xft.h:416: 错误: expected declaration specifiers or ‘...’ before ‘FT_UInt’
/usr/include/X11/Xft/Xft.h:417: 错误: expected declaration specifiers or ‘...’ before ‘FT_UInt’
/usr/include/X11/Xft/Xft.h:426: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘XftCharIndex’
/usr/include/X11/Xft/Xft.h:459: 错误: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
make[2]: *** [ime.o] 错误 1
make[2]:正在离开目录 `/home/kj/fcitx-3.6.2/src'
make[1]: *** [all-recursive] 错误 1
make[1]:正在离开目录 `/home/kj/fcitx-3.6.2'
make: *** [all] 错误 2
发表于 2009-12-26 15:31:08 | 显示全部楼层
我也有这样的问题
回复 支持 反对

使用道具 举报

发表于 2009-12-26 18:01:17 | 显示全部楼层

我的问题

[root@centos fcitx-3.6.2]# make
make  all-recursive
make[1]: Entering directory `/home/cent/fcitx-3.6.2'
Making all in doc
make[2]: Entering directory `/home/cent/fcitx-3.6.2/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/cent/fcitx-3.6.2/doc'
Making all in xpm
make[2]: Entering directory `/home/cent/fcitx-3.6.2/xpm'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/cent/fcitx-3.6.2/xpm'
Making all in lib
make[2]: Entering directory `/home/cent/fcitx-3.6.2/lib'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/cent/fcitx-3.6.2/lib'
Making all in src
make[2]: Entering directory `/home/cent/fcitx-3.6.2/src'
gcc -DPKGDATADIR=\"/usr/local/bin/fcitx/share/fcitx\" -I. -I.. -I. -I../lib -I../xpm   -O2 -fno-strength-reduce -g -O2   -D_ENABLE_TRAY  -D_ENABLE_LOG  -I/usr/include/freetype2   -D_USE_XFT -Wall -MT ime.o -MD -MP -MF .deps/ime.Tpo -c -o ime.o ime.c
在包含自 ime.c:42 的文件中:
TrayWindow.h:5:21: 错误:X11/xpm.h:没有那个文件或目录
In file included from ime.c:42:
TrayWindow.h:20: 错误:expected specifier-qualifier-list before ‘XpmAttributes’
make[2]: *** [ime.o] 错误 1
make[2]: Leaving directory `/home/cent/fcitx-3.6.2/src'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/home/cent/fcitx-3.6.2'
make: *** [all] 错误 2
[root@centos fcitx-3.6.2]# cd /usr/local/bin/fcitx
bash: cd: /usr/local/bin/fcitx: 没有那个文件或目录
回复 支持 反对

使用道具 举报

发表于 2009-12-26 18:42:47 | 显示全部楼层
configure LIBS='-lXpm -lXext -lpthread'
回复 支持 反对

使用道具 举报

发表于 2009-12-26 23:20:41 | 显示全部楼层
AutoXBC给出的答案:

简单的说还需要安装 libxtst-dev。

其实不需要自己编译,可以手动下载 3.6.2 的 deb 文件安装。
http://packages.ubuntu.com/lucid/fcitx

对于源里本来就有的包,如果一定要重新编译应该去看看编译依赖,尤其是看看你所编译的版本对应的编译依赖,下面地址进入后查找 Build-Depends 字段。
http://archive.ubuntu.com/ubuntu/poo...tx_3.6.2-1.dsc

对于源里本来就有的包也不是用 configure make make install 这种老三步操作,这里有更智能化的命令。
代码:

fakeroot debian/rules binary
回复 支持 反对

使用道具 举报

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

本版积分规则

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