我现在用ltib编译imx6的一个arm源码。我从厂家那里获得的源码包是在ubuntu10的系统里面编译的。现在我要用到qt5的原因那个系统版本太低,然后我习惯用centos系统,当我想在centos6.5编译的时候,运行./ltib就出现错误,能解释一下为什么吗?是不能在centos里面编译吗?我这里有错误日志。日志详细信息请看附件。
Processing: mtd-utils
=======================
Build path taken because: no prebuilt rpm,
rpmbuild --dbpath ///opt/freescale/ltib/var/lib/rpm --target i686 --define '_unpackaged_files_terminate_build 0' --define '_target_cpu i686' --define '__strip strip' --define '_topdir /opt/freescale/ltib/usr/src/rpm' --define '_prefix /opt/freescale/ltib/usr' --define '_tmppath /opt/imax6/L3.0.35_4.1.0_130816_source/source/ltib/tmp' --define '_rpmdir /opt/freescale/ltib/usr/src/rpm/RPMS' --define '_mandir /opt/freescale/ltib/usr/share/man' --define '_sysconfdir /opt/freescale/ltib/etc' --define '_localstatedir /var' -bb --clean --rmsource /opt/imax6/L3.0.35_4.1.0_130816_source/source/ltib/dist/lfs-5.1/mtd-utils/mtd-utils.spec
Building target platforms: i686
Building for target i686
Executing(%prep): /bin/sh -e /opt/imax6/L3.0.35_4.1.0_130816_source/source/ltib/tmp/rpm-tmp.87232
+ umask 022
+ cd /opt/freescale/ltib/usr/src/rpm/BUILD
+ cd /opt/freescale/ltib/usr/src/rpm/BUILD
+ rm -rf mtd-utils
+ /bin/gzip -dc /opt/freescale/ltib/usr/src/rpm/SOURCES/mtd-utils-1.5.0.tar.gz
。。。。。。。。。。。。。。。。。。。。。。
CC compr_rtime.o
CC compr_zlib.o
CC compr_lzo.o
compr_lzo.c:31:23: error: lzo/lzo1x.h: No such file or directory
compr_lzo.c: In function 'jffs2_lzo_cmpr':
compr_lzo.c:53: error: 'lzo_uint' undeclared (first use in this function)
compr_lzo.c:53: error: (Each undeclared identifier is reported only once
compr_lzo.c:53: error: for each function it appears in.)
compr_lzo.c:53: error: expected ';' before 'compress_size'
compr_lzo.c:56: warning: implicit declaration of function 'lzo1x_999_compress'
compr_lzo.c:56: error: 'compress_size' undeclared (first use in this function)
compr_lzo.c:58: error: 'LZO_E_OK' undeclared (first use in this function)
compr_lzo.c: In function 'jffs2_lzo_decompress':
compr_lzo.c:74: error: 'lzo_uint' undeclared (first use in this function)
compr_lzo.c:74: error: expected ';' before 'dl'
compr_lzo.c:76: warning: implicit declaration of function 'lzo1x_decompress_safe'
compr_lzo.c:76: error: 'dl' undeclared (first use in this function)
compr_lzo.c:78: error: 'LZO_E_OK' undeclared (first use in this function)
compr_lzo.c: In function 'jffs2_lzo_init':
compr_lzo.c:97: error: 'LZO1X_999_MEM_COMPRESS' undeclared (first use in this function)
make: *** [/opt/freescale/ltib/usr/src/rpm/BUILD/mtd-utils/compr_lzo.o] Error 1
error: Bad exit status from /opt/imax6/L3.0.35_4.1.0_130816_source/source/ltib/tmp/rpm-tmp.87232 (%build)
|