|
我在下载了北南兄弟提供的fcitx2.1.0源码,在slackware9.1中试图编译。我的Xfree86是4.4.0版,另外fontconfig是2.2.2,freetype是2.1.7。不加任何选项configure && make,结果出错,内容如下:
- In file included from ime.c:5:
- /usr/X11R6/include/X11/Xft/Xft.h:53: syntax error before "_XftFTlibrary"
- cc1: warnings being treated as errors
- /usr/X11R6/include/X11/Xft/Xft.h:53: warning: type defaults to `int' in declaration of `_XftFTlibrary'
- /usr/X11R6/include/X11/Xft/Xft.h:53: warning: data definition has no type or storage class
- /usr/X11R6/include/X11/Xft/Xft.h:87: syntax error before "FT_UInt"
- /usr/X11R6/include/X11/Xft/Xft.h:87: warning: no semicolon at end of struct or union
- /usr/X11R6/include/X11/Xft/Xft.h:90: syntax error before '}' token
- /usr/X11R6/include/X11/Xft/Xft.h:90: warning: type defaults to `int' in declaration of `XftGlyphSpec'
- /usr/X11R6/include/X11/Xft/Xft.h:90: warning: data definition has no type or storage class
- /usr/X11R6/include/X11/Xft/Xft.h:94: syntax error before "FT_UInt"
- /usr/X11R6/include/X11/Xft/Xft.h:94: warning: no semicolon at end of struct or union
- /usr/X11R6/include/X11/Xft/Xft.h:97: syntax error before '}' token
- /usr/X11R6/include/X11/Xft/Xft.h:97: warning: type defaults to `int' in declaration of `XftGlyphFontSpec'
- /usr/X11R6/include/X11/Xft/Xft.h:97: warning: data definition has no type or storage class
- /usr/X11R6/include/X11/Xft/Xft.h:191: warning: type defaults to `int' in declaration of `FT_UInt'
- /usr/X11R6/include/X11/Xft/Xft.h:191: syntax error before '*' token
- /usr/X11R6/include/X11/Xft/Xft.h:257: warning: type defaults to `int' in declaration of `XftGlyphSpec'
- /usr/X11R6/include/X11/Xft/Xft.h:257: syntax error before '*' token
- /usr/X11R6/include/X11/Xft/Xft.h:263: warning: type defaults to `int' in declaration of `XftGlyphFontSpec'
- /usr/X11R6/include/X11/Xft/Xft.h:263: syntax error before '*' token
- /usr/X11R6/include/X11/Xft/Xft.h:296: warning: type defaults to `int' in declaration of `FT_UInt'
- /usr/X11R6/include/X11/Xft/Xft.h:296: syntax error before '*' token
- /usr/X11R6/include/X11/Xft/Xft.h:355: syntax error before "XftLockFace"
- /usr/X11R6/include/X11/Xft/Xft.h:355: warning: type defaults to `int' in declaration of `XftLockFace'
- /usr/X11R6/include/X11/Xft/Xft.h:355: warning: data definition has no type or storage class
- /usr/X11R6/include/X11/Xft/Xft.h:394: warning: type defaults to `int' in declaration of `FT_UInt'
- /usr/X11R6/include/X11/Xft/Xft.h:394: syntax error before '*' token
- /usr/X11R6/include/X11/Xft/Xft.h:400: warning: type defaults to `int' in declaration of `FT_UInt'
- /usr/X11R6/include/X11/Xft/Xft.h:400: syntax error before '*' token
- /usr/X11R6/include/X11/Xft/Xft.h:409: syntax error before "FT_UInt"
- /usr/X11R6/include/X11/Xft/Xft.h:419: syntax error before "XftCharIndex"
- /usr/X11R6/include/X11/Xft/Xft.h:421: warning: type defaults to `int' in declaration of `XftCharIndex'
- /usr/X11R6/include/X11/Xft/Xft.h:421: warning: data definition has no type or storage class
- /usr/X11R6/include/X11/Xft/Xft.h:462: warning: type defaults to `int' in declaration of `FT_UInt'
- /usr/X11R6/include/X11/Xft/Xft.h:462: syntax error before '*' token
- /usr/X11R6/include/X11/Xft/Xft.h:473: warning: type defaults to `int' in declaration of `XftGlyphSpec'
- /usr/X11R6/include/X11/Xft/Xft.h:473: syntax error before '*' token
- /usr/X11R6/include/X11/Xft/Xft.h:494: warning: type defaults to `int' in declaration of `XftGlyphFontSpec'
- /usr/X11R6/include/X11/Xft/Xft.h:494: syntax error before '*' token
- make[1]: *** [ime.o] 错误 1
- make[1]: Leaving directory `/home/yk/src/fcitx-2.1.0/src'
- make: *** [all-recursive] 错误 1
复制代码
configure --disable-xft && make 也出错,信息:
- ui.o(.text+0x63): In function `InitX':
- /home/yk/src/fcitx-2.1.0/src/ui.c:71: undefined reference to `libiconv_open'
- xim.o(.text+0x73b): In function `SendHZtoClient':
- /home/yk/src/fcitx-2.1.0/src/xim.c:357: undefined reference to `libiconv'
- collect2: ld returned 1 exit status
- make[1]: *** [fcitx] 错误 1
- make[1]: Leaving directory `/home/yk/src/fcitx-2.1.0/src'
- make: *** [all-recursive] 错误 1
复制代码
请兄弟看看。
另外,北南自己在slackware里面编译的,在我这里也可以用。发现输入窗口的字体很大,我在config里面改了字体大小,只会影响状态条,不影响输入窗。
多谢兄弟的辛劳。
ps. 本想用站内短信,但内容太多,只好发帖了。 |
|