打印
[i.MX]

i.mx6+ltib+centos 编译出错

[复制链接]
1574|5
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
xiaozhao86|  楼主 | 2014-11-26 14:49 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
我现在用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)


相关帖子

沙发
xiaozhao86|  楼主 | 2014-11-26 14:49 | 只看该作者

已解决,解决方法参考链接。
lists.gnu.org/archive/html/ltib/2011-09/msg00046

使用特权

评论回复
板凳
xiaozhao86|  楼主 | 2014-11-26 14:49 | 只看该作者
在线等回复

使用特权

评论回复
地板
mini1986| | 2015-4-20 14:18 | 只看该作者
i.mx6+ltib+ubuntu成功的飘过......

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

2

主题

8

帖子

0

粉丝