LinuxSir.cn,穿越时空的Linuxsir!

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

Yuking请进, 交叉编译fcitx的问题

[复制链接]
发表于 2005-12-9 14:08:51 | 显示全部楼层 |阅读模式
zaurus是sharp的linux pda,现在有了基于x的rom,我想在上面使用fcitx输入法,嵌入式的系统要小巧嘛
架设好嵌入式环境后configure和make,configure虽然没有报错,但是好象有也问题,可能是我的编译环境比较简陋,但是顺利的编译过xmms和连连看了,结果如下,你帮我看看吧。

root@darkstar:/tmp/fcitx/fcitx-3.1.1# ./configure --host=armv5tel-cacko-linux --build=i686-linux
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for armv5tel-cacko-linux-strip... armv5tel-cacko-linux-strip
checking build system type... i686-pc-linux-gnu
checking host system type... armv5tel-cacko-linux-gnu
checking for armv5tel-cacko-linux-gcc... armv5tel-cacko-linux-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether armv5tel-cacko-linux-gcc accepts -g... yes
checking for armv5tel-cacko-linux-gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of armv5tel-cacko-linux-gcc... gcc3
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether make sets $(MAKE)... (cached) yes
checking for armv5tel-cacko-linux-ranlib... armv5tel-cacko-linux-ranlib
checking for ld used by GCC... /opt/cross/arm/3.4.4-xscale-softvfp/armv5tel-cacko-linux/bin/ld
checking if the linker (/opt/cross/arm/3.4.4-xscale-softvfp/armv5tel-cacko-linux/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for iconv... yes
checking how to link with libiconv... -liconv
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... armv5tel-cacko-linux-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... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for pkg-config... /usr/bin/pkg-config
checking for xft >= 0.0.0... yes
checking XFT_CFLAGS... -I/opt/cross/arm/3.4.4-xscale-softvfp/armv5tel-cacko-linux/include -I/opt/cross/arm/3.4.4-xscale-softvfp/armv5tel-cacko-linux/include/freetype2
checking XFT_LIBS... -L/opt/cross/arm/3.4.4-xscale-softvfp/armv5tel-cacko-linux/lib -lXft -lfreetype -lXrender -lfontconfig
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... yes
checking for vfork... yes
checking for working fork... cross
configure: WARNING: result yes guessed because of cross compilation
checking for working vfork... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... no
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 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: config.h is unchanged
config.status: executing depfiles commands
root@darkstar:/tmp/fcitx/fcitx-3.1.1# make
make  all-recursive
make[1]: Entering directory `/tmp/fcitx/fcitx-3.1.1'
Making all in doc
make[2]: Entering directory `/tmp/fcitx/fcitx-3.1.1/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/tmp/fcitx/fcitx-3.1.1/doc'
Making all in tools
make[2]: Entering directory `/tmp/fcitx/fcitx-3.1.1/tools'
armv5tel-cacko-linux-gcc  -g -O2 -I/usr/X11R6/include -I/opt/cross/arm/3.4.4-xscale-softvfp/armv5tel-cacko-linux/include -I/opt/cross/arm/3.4.4-xscale-softvfp/armv5tel-cacko-linux/include/freetype2   -D_USE_XFT -Wall   -o txt2mb  txt2mb.o  -L/usr/X11R6/lib -L/opt/cross/arm/3.4.4-xscale-softvfp/armv5tel-cacko-linux/lib -lXft -lfreetype -lXrender -lfontconfig   -lX11 -liconv
/opt/cross/arm/3.4.4-xscale-softvfp/lib/gcc/armv5tel-cacko-linux/3.4.4/../../../../armv5tel-cacko-linux/bin/ld: skipping incompatible /usr/X11R6/lib/libXft.so when searching for -lXft
/opt/cross/arm/3.4.4-xscale-softvfp/lib/gcc/armv5tel-cacko-linux/3.4.4/../../../../armv5tel-cacko-linux/bin/ld: skipping incompatible /usr/X11R6/lib/libXft.a when searching for -lXft
/opt/cross/arm/3.4.4-xscale-softvfp/lib/gcc/armv5tel-cacko-linux/3.4.4/../../../../armv5tel-cacko-linux/bin/ld: skipping incompatible /usr/X11R6/lib/libXrender.so when searching for -lXrender
/opt/cross/arm/3.4.4-xscale-softvfp/lib/gcc/armv5tel-cacko-linux/3.4.4/../../../../armv5tel-cacko-linux/bin/ld: skipping incompatible /usr/X11R6/lib/libXrender.a when searching for -lXrender
/opt/cross/arm/3.4.4-xscale-softvfp/lib/gcc/armv5tel-cacko-linux/3.4.4/../../../../armv5tel-cacko-linux/bin/ld: skipping incompatible /usr/X11R6/lib/libfontconfig.so when searching for -lfontconfig
/opt/cross/arm/3.4.4-xscale-softvfp/lib/gcc/armv5tel-cacko-linux/3.4.4/../../../../armv5tel-cacko-linux/bin/ld: skipping incompatible /usr/X11R6/lib/libfontconfig.a when searching for -lfontconfig
/opt/cross/arm/3.4.4-xscale-softvfp/lib/gcc/armv5tel-cacko-linux/3.4.4/../../../../armv5tel-cacko-linux/bin/ld: skipping incompatible /usr/X11R6/lib/libX11.so when searching for -lX11
/opt/cross/arm/3.4.4-xscale-softvfp/lib/gcc/armv5tel-cacko-linux/3.4.4/../../../../armv5tel-cacko-linux/bin/ld: skipping incompatible /usr/X11R6/lib/libX11.a when searching for -lX11
txt2mb.o(.text+0x9c): In function `main':
/tmp/fcitx-3.1.1/tools/txt2mb.c:69: undefined reference to `rpl_malloc'
txt2mb.o(.text+0x2d4):/tmp/fcitx-3.1.1/tools/txt2mb.c:268: undefined reference to `rpl_malloc'
txt2mb.o(.text+0x2e8):/tmp/fcitx-3.1.1/tools/txt2mb.c:269: undefined reference to `rpl_malloc'
txt2mb.o(.text+0x2fc):/tmp/fcitx-3.1.1/tools/txt2mb.c:270: undefined reference to `rpl_malloc'
txt2mb.o(.text+0x690):/tmp/fcitx-3.1.1/tools/txt2mb.c:115: undefined reference to `rpl_malloc'
txt2mb.o(.text+0x6d8):/tmp/fcitx-3.1.1/tools/txt2mb.c:121: more undefined references to `rpl_malloc' follow
collect2: ld returned 1 exit status
make[2]: *** [txt2mb] Error 1
make[2]: Leaving directory `/tmp/fcitx/fcitx-3.1.1/tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/fcitx/fcitx-3.1.1'
make: *** [all] Error 2
root@darkstar:/tmp/fcitx/fcitx-3.1.1#

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
 楼主| 发表于 2005-12-12 15:07:05 | 显示全部楼层
也没有必要用最新的版本,不过1.0,1.6,1.8.5,2.0.1,2.0.2的版本我也试过了,就是一个错误,在make的时候最后一步
armv5tel-linux-gcc -O2 -fno-strength-reduce -Wall -D_USE_XFT `xft-config --libs` IC.o py.o ime.o InputWindow.o KeyList.o main.o MainWindow.o MyErrorsHandlers.o punc.o pyMapTable.o pyParser.o PYFA.o sp.o SetLocale.o tools.o ui.o wbx.o xim.o  IMdkit/lib/libXimd.a -o fcitx
/opt/cross/arm/3.4.4-xscale-softvfp/lib/gcc/armv5tel-cacko-linux/3.4.4/../../../../armv5tel-cacko-linux/bin/ld: IMdkit/lib/libXimd.a(IMConn.o): Relocations in generic ELF (EM: 3)
IMdkit/lib/libXimd.a: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make: *** [fcitx] Error 1
root@darkstar:~/Desktop/fcitx-2.0.1#

这是在交叉环境中的编译,当然本地编译没有这个问题。
有谁知道libXimd.a这个文件是做什么用的,就差一点就能用fcitx了啊。
回复 支持 反对

使用道具 举报

发表于 2008-5-12 18:08:04 | 显示全部楼层
why?!
5 years later, cause the same problem, i'm still typing in abc...
回复 支持 反对

使用道具 举报

发表于 2009-3-6 14:33:19 | 显示全部楼层
hehe
Six years later , 123451 passed by with the same problem, and he found the reason from google.
To solve it, you need gettext installed.
回复 支持 反对

使用道具 举报

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

本版积分规则

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