本文主要是介绍新路程------编译海思代码遇到的问题,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
问题如下,解决方案就在问题下方,我的ubuntu版本是14.04
**********************************************************************
“mkimage” command not found – U-Boot images will not be built
sudo apt-get install u-boot-tools
**********************************************************************
compr_zlib.c:39:18: fatal error: zlib.h: No such file or directory
#include <zlib.h>
sudo apt-get install zlib1g-dev
**********************************************************************
checking for ncurses/ncurses.h... no
configure: error: ncurses or ncursesw selected, but library not found (--without-ncurses to disable)
sudo apt-get install libncurses-dev
**********************************************************************
checking for C++ compiler default output file name...
configure: error: C++ compiler cannot create executables
See `config.log' for more details.
cp: cannot stat ‘/home/matt/Hi3516A_SDK_V1.0.6.0/osdrv/tools/pc/lzma_tool/lzma-4.32.7/src/lzma/lzma’: No such file or directory
make[1]: *** [all] Error 1
找到了这个文件
matt@ubuntu:/$ sudo find -name "config.log"
./home/matt/Hi3516A_SDK_V1.0.6.0/osdrv/tools/pc/squashfs4.2/tmp/xz-5.0.4/config.log
./home/matt/Hi3516A_SDK_V1.0.6.0/osdrv/tools/pc/cramfs_tool/tmp/util-linux-2.22-rc2/config.log
./home/matt/Hi3516A_SDK_V1.0.6.0/osdrv/tools/pc/jffs2_tool/tmp/lzo-2.03/config.log
./home/matt/Hi3516A_SDK_V1.0.6.0/osdrv/tools/pc/lzma_tool/lzma-4.32.7/config.log 应该看这个config.log(文件在我的资源中)
看到了一堆no
configure:2364: checking whether make sets $(MAKE)
configure:2386: result: yes
configure:2634: checking for g++
configure:2664: result: no
configure:2634: checking for c++
configure:2664: result: no
configure:2634: checking for gpp
configure:2664: result: no
configure:2634: checking for aCC
configure:2664: result: no
configure:2634: checking for CC
configure:2664: result: no
configure:2634: checking for cxx
configure:2664: result: no
configure:2634: checking for cc++
configure:2664: result: no
看起来似乎是g++没装好
sudo apt-get install build-essential
编译成功log如下:
Version: Linux-2.6.35 Nand Controller V610
Processing dir /home/matt/Hi3516A_SDK_V1.0.6.0/osdrv/pub/rootfs_uclibc/ into imagefile /home/matt/Hi3516A_SDK_V1.0.6.0/osdrv/pub/image_uclibc/rootfs_hi3516a_2k_4bit.yaffs2
Operation success complete. 459 objects in 27 directories 5888 NAND pages
Input parameter: pagetype: 1(2K), ecctype: 2(4bit)
~/Hi3516A_SDK_V1.0.6.0/osdrv
chmod 644 /home/matt/Hi3516A_SDK_V1.0.6.0/osdrv/pub/image_uclibc/rootfs_hi3516a_2k_4bit.yaffs2
find /home/matt/Hi3516A_SDK_V1.0.6.0/osdrv/pub/rootfs_uclibc/ -name '*svn' | xargs rm -rf
pushd /home/matt/Hi3516A_SDK_V1.0.6.0/osdrv/pub;tar czf rootfs_uclibc.tgz rootfs_uclibc;rm rootfs_uclibc -rf;popd
~/Hi3516A_SDK_V1.0.6.0/osdrv/pub ~/Hi3516A_SDK_V1.0.6.0/osdrv
~/Hi3516A_SDK_V1.0.6.0/osdrv
---------finish osdrv work
这篇关于新路程------编译海思代码遇到的问题的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!