[求助]fcitx svn 下的文件 编译出错(fcitx svn 3.5-0826版已经解决,欢迎参考)

系统字体配置、中文显示和输入法问题
回复
头像
nicety
帖子: 92
注册时间: 2008-07-14 15:06
来自: 天津
联系:

[求助]fcitx svn 下的文件 编译出错(fcitx svn 3.5-0826版已经解决,欢迎参考)

#1

帖子 nicety » 2008-10-27 19:13

本人新手,但之前编译过几个软件,这次编译出错,不理解是什么原因,希望达人指明方向,不甚感激
第一次通过 svn客户端在按照
通过官网 Yuking他本人的

代码: 全选

svn co https://fcitx.svn.sourceforge.net/svnroot/fcitx/
方法同步
第二次通过

代码: 全选

svn co http://fcitx.googlecode.com/svn/trunk
同步得到的fcitx 3.5的源文件

但是编译产生同样的错误:
以下是

代码: 全选

./autogen.sh
后正常生成configure的情况

代码: 全选

FCITX sources are now prepared. To build here, run:
 ./configure && make

Build and Install on system:
  ./configure && make install   # run as root
Build and Install on user home:
  ./configure --prefix="$HOME" && make install
Build without xft:
  ./configure --enable-xft=no && make

Build RPM Package like these:
  ./configure && make dist
  rpmbuild -ts fcitx-*.tar.gz   # build source package
  rpmbuild -tb fcitx-*.tar.gz   # build binary package
以下是

代码: 全选

sudo ./configure && make
后出现的错信息

代码: 全选

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... (cached) yes
checking for ranlib... ranlib
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for iconv... yes
checking for working iconv... yes
checking for iconv declaration... 
         extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking malloc/malloc.h usability... no
checking malloc/malloc.h presence... no
checking for malloc/malloc.h... no
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for unistd.h... (cached) yes
checking wait.h usability... yes
checking wait.h presence... yes
checking for wait.h... yes
checking for sys/wait.h... (cached) yes
checking machine/endian.h usability... no
checking machine/endian.h presence... no
checking for machine/endian.h... no
checking for X... libraries , headers 
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for XFT... yes
checking for pid_t... yes
checking for size_t... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking return type of signal handlers... void
checking for memmove... yes
checking for memset... yes
checking for mkdir... yes
checking for setlocale... yes
checking for strcasecmp... yes
checking for strstr... yes
checking for strtol... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating fcitx.spec
config.status: creating doc/Makefile
config.status: creating data/Makefile
config.status: creating xpm/Makefile
config.status: creating lib/Makefile
config.status: creating src/version.h
config.status: creating src/Makefile
config.status: creating tools/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
make  all-recursive
make[1]: 正在进入目录 `/home/open-baike/trunk'
Making all in doc
make[2]: 正在进入目录 `/home/open-baike/trunk/doc'
make[2]: 没有什么可以做的为 `all'。
make[2]:正在离开目录 `/home/open-baike/trunk/doc'
Making all in xpm
make[2]: 正在进入目录 `/home/open-baike/trunk/xpm'
make[2]: 没有什么可以做的为 `all'。
make[2]:正在离开目录 `/home/open-baike/trunk/xpm'
Making all in lib
make[2]: 正在进入目录 `/home/open-baike/trunk/lib'
make[2]: 没有什么可以做的为 `all'。
make[2]:正在离开目录 `/home/open-baike/trunk/lib'
Making all in src
make[2]: 正在进入目录 `/home/open-baike/trunk/src'
if gcc -DPKGDATADIR=\"/usr/local/share/fcitx\" -I. -I. -I.. -I. -I../lib -I../xpm   -O2 -fno-strength-reduce -g -O2   -I/usr/include/freetype2   -D_USE_XFT -Wall -MT InputWindow.o -MD -MP -MF ".deps/InputWindow.Tpo" -c -o InputWindow.o InputWindow.c; \
	then mv -f ".deps/InputWindow.Tpo" ".deps/InputWindow.Po"; else rm -f ".deps/InputWindow.Tpo"; exit 1; fi
InputWindow.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
make install肯定是不行了,请指教,在线等待
现在我用的是fcitx的旧版,3.43,很喜欢fcitx,第一次用linux就是它
上次由 nicety 在 2008-10-28 9:59,总共编辑 2 次。
希奥开源成员 加入我们
手机设备请访问:http://wap.seo-dic.com.cn
我们的口号是:让开源深入民心

Simply Enjoying Open Source !
-共享是一种美德 --
头像
HuntXu
帖子: 5776
注册时间: 2007-09-29 3:09

Re: [求助]fcitx svn下的文件 编译出错

#2

帖子 HuntXu » 2008-10-27 20:04

检查你的libxpm装了没有...

奇怪,这样configure都能过?
HUNT Unfortunately No Talent...
头像
nicety
帖子: 92
注册时间: 2008-07-14 15:06
来自: 天津
联系:

Re: [求助]fcitx svn下的文件 编译出错

#3

帖子 nicety » 2008-10-28 8:54

HuntXu 写了:检查你的libxpm装了没有...

奇怪,这样configure都能过?
搞定了看来不同软件的编译所需要的库有很大的差别呀。
头像
sevk
帖子: 2060
注册时间: 2007-05-08 16:26
系统: arch
来自: 火星内核某分子内某原子核内
联系:

Re: [求助]fcitx svn 下的文件 编译出错(fcitx svn 3.5-0826版已经解决,欢迎参考)

#4

帖子 sevk » 2008-10-30 19:09

这里有最新版本的SVN,是昨天刚更新的: http://code.google.com/p/fcitx/updates/list
笔记本 :
F208S : gentoo
A460P i3G D6 : UBUNTU + WIN7
UN43D1 : UBUNTU + WIN7
1000人超级QQ群 LINUX + WIN : 31465544 或 18210387
回复