QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 762|回复: 1

无法编译请教

[复制链接]
发表于 2006-7-30 23:24:55 | 显示全部楼层 |阅读模式
我下了一个五笔的软件无发进行编译请教高手能否指点一下不胜感激:
  运行完./configure之后如下:
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 ANSI C... 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 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 egrep... 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... no
checking for pkg-config... /usr/bin/pkg-config
checking for xft >= 0.0.0... Package xft was not found in the pkg-config search path.
Perhaps you should add the directory containing `xft.pc'
to the PKG_CONFIG_PATH environment variable
No package 'xft' found
configure: WARNING: No xft found, skipping configure for FreeType and Xft
checking for pid_t... yes
checking for size_t... yes
checking for unistd.h... (cached) yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... no
checking for vfork... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... no
checking return type of signal handlers... void
checking for memmove... no
checking for memset... no
checking for mkdir... no
checking for setlocale... no
checking for strcasecmp... no
checking for strstr... no
checking for strtol... no
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 debian/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: executing depfiles commands
  运行完make之后就出错显示如下:
[root@localhost fcitx-3.1.1]# make
make  all-recursive
make[1]: Entering directory `/usr/wangzhen/download/fcitx-3.1.1'
Making all in doc
make[2]: Entering directory `/usr/wangzhen/download/fcitx-3.1.1/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/wangzhen/download/fcitx-3.1.1/doc'Making all in tools
make[2]: Entering directory `/usr/wangzhen/download/fcitx-3.1.1/tools'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../src -I../lib    -g -O2 -INONE -Wall -MT mb2txt.o -MD -MP -MF ".deps/mb2txt.Tpo" -c -o mb2txt.o mb2txt.c; \
then mv -f ".deps/mb2txt.Tpo" ".deps/mb2txt.Po"; else rm -f ".deps/mb2txt.Tpo"; exit 1; fi
gcc  -g -O2 -INONE -Wall   -o mb2txt  mb2txt.o  -LNONE -lX11
/usr/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status
make[2]: *** [mb2txt] Error 1
make[2]: Leaving directory `/usr/wangzhen/download/fcitx-3.1.1/tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/wangzhen/download/fcitx-3.1.1'
make: *** [all] Error 2
[root@localhost fcitx-3.1.1]# mae
-bash: mae: command not found
[root@localhost fcitx-3.1.1]# make
make  all-recursive
make[1]: Entering directory `/usr/wangzhen/download/fcitx-3.1.1'
Making all in doc
make[2]: Entering directory `/usr/wangzhen/download/fcitx-3.1.1/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/wangzhen/download/fcitx-3.1.1/doc'Making all in tools
make[2]: Entering directory `/usr/wangzhen/download/fcitx-3.1.1/tools'
gcc  -g -O2 -INONE -Wall   -o mb2txt  mb2txt.o  -LNONE -lX11
/usr/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status
make[2]: *** [mb2txt] Error 1
make[2]: Leaving directory `/usr/wangzhen/download/fcitx-3.1.1/tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/wangzhen/download/fcitx-3.1.1'
make: *** [all] Error 2
[root@localhost fcitx-3.1.1]# make install
Making install in doc
make[1]: Entering directory `/usr/wangzhen/download/fcitx-3.1.1/doc'
make[2]: Entering directory `/usr/wangzhen/download/fcitx-3.1.1/doc'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/share/fcitx/doc" || mkdir -p -- "/usr/local/share/fcitx/doc"
/usr/bin/install -c -m 644 'cjkvinput.txt' '/usr/local/share/fcitx/doc/cjkvinput.txt'
/usr/bin/install -c -m 644 'wb_fh.htm' '/usr/local/share/fcitx/doc/wb_fh.htm'
/usr/bin/install -c -m 644 'fcitx3.pdf' '/usr/local/share/fcitx/doc/fcitx3.pdf'
make[2]: Leaving directory `/usr/wangzhen/download/fcitx-3.1.1/doc'make[1]: Leaving directory `/usr/wangzhen/download/fcitx-3.1.1/doc'Making install in tools
make[1]: Entering directory `/usr/wangzhen/download/fcitx-3.1.1/tools'
gcc  -g -O2 -INONE -Wall   -o mb2txt  mb2txt.o  -LNONE -lX11
/usr/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status
make[1]: *** [mb2txt] Error 1
make[1]: Leaving directory `/usr/wangzhen/download/fcitx-3.1.1/tools'
make: *** [install-recursive] Error 1
[root@localhost fcitx-3.1.1]#
[root@localhost fcitx-3.1.1]#
[root@localhost fcitx-3.1.1]#
[root@localhost fcitx-3.1.1]#
[root@localhost fcitx-3.1.1]# su
[root@localhost fcitx-3.1.1]# make
make  all-recursive
make[1]: Entering directory `/usr/wangzhen/download/fcitx-3.1.1'
Making all in doc
make[2]: Entering directory `/usr/wangzhen/download/fcitx-3.1.1/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/wangzhen/download/fcitx-3.1.1/doc'Making all in tools
make[2]: Entering directory `/usr/wangzhen/download/fcitx-3.1.1/tools'
gcc  -g -O2 -INONE -Wall   -o mb2txt  mb2txt.o  -LNONE -lX11
/usr/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status
make[2]: *** [mb2txt] Error 1
make[2]: Leaving directory `/usr/wangzhen/download/fcitx-3.1.1/tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/wangzhen/download/fcitx-3.1.1'
make: *** [all] Error 2
发表于 2006-7-31 08:23:16 | 显示全部楼层
No package 'xft' found

缺少xft开发包。搜索安装xft-devel包先
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-25 01:25 , Processed in 0.111865 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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