本帖最后由 FSL_TICS_imx 于 2014-10-9 15:57 编辑
工作环境:virtualbox虚拟Ubuntu 9.04
SDK:L3.0.35_4.1.0_130816_source
编译过程:严格按照Setting_Up_LTIB_host和i.MX_6Dual6Quad_SABRE-SD_Linux_User's_Guide说明的步骤进行,第一次编译的时候错误如下:
Build path taken because: directory build, no prebuilt rpm,
Cowardly refusing to clobber existing directory:
/opt/freescale/ltib/usr/src/rpm/BUILD/flex-2.5.37
Remove this by hand if you really want to rebuild this package from scratch
于是按照错误的提示把flex-2.5.37文件夹删除重新编译还是出错。第二次的错误比较多不方便贴上来,等下看能否用附件提交,log的最后部分如下:
/opt/freescale/ltib/usr/src/rpm/BUILD/flex-2.5.37/missing: line 52: makeinfo: command not found
WARNING: `makeinfo' is missing on your system. You should only need it if
you modified a `.texi' or `.texinfo' file, or any other file
indirectly affecting the aspect of the manual. The spurious
call might also be the consequence of using a buggy `make' (AIX,
DU, IRIX). You might want to install the `Texinfo' package or
the `GNU make' package. Grab either from any GNU archive site.
TEXINPUTS=".:$TEXINPUTS" \
MAKEINFO='/bin/bash /opt/freescale/ltib/usr/src/rpm/BUILD/flex-2.5.37/missing --run makeinfo -I .' \
texi2dvi --pdf --batch flex.texi
/bin/bash: texi2dvi: command not found
make[2]: *** [flex.pdf] Error 127
make[2]: Leaving directory `/opt/freescale/ltib/usr/src/rpm/BUILD/flex-2.5.37/doc'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/opt/freescale/ltib/usr/src/rpm/BUILD/flex-2.5.37'
make: *** [install] Error 2
error: Bad exit status from /home/sai/ltib/tmp/rpm-tmp.35129 (%install)
RPM build errors:
Bad exit status from /home/sai/ltib/tmp/rpm-tmp.35129 (%install)
Build time for flex: 24 seconds
Failed building flex
Died at ./ltib line 1392.
traceback:
main::build_host_rpms:1392
main::host_checks:1447
main:554
Started: Wed Sep 17 22:22:14 2014
Ended: Wed Sep 17 22:22:39 2014
Elapsed: 25 seconds
These packages failed to build:
开始我以为是缺少makeinfo和texi2dvi的问题,但是问了另外一个已经编译成功的同事,他的虚拟机上也没有这两个文件。
看到论坛里很多初学者也遇到同样的问题,但是都是提问了没有公布解决办法。这个问题搞了很多天了,很无奈,很打击,希望得到专家的解答。
另外问一个问题,其他同事已经编译安装好的sdk,如果我要直接拷过来用,要拷贝哪些文件夹? |