编译Hi3518E V200R001C01SPC030包osdrv遇到的问题和解决办法

编译用户都是root权限

问题1:

gcc -o mkyaffs2image100 mkyaffs2image.o yaffs_ecc.o yaffs_packedtags2.o yaffs_tagsvalidity.o oob_config_v100.o -static
/usr/bin/ld: i386:x86-64 architecture of input file `mkyaffs2image.o' is incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `yaffs_ecc.o' is incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `yaffs_packedtags2.o' is incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `yaffs_tagsvalidity.o' is incompatible with i386 output
collect2: error: ld returned 1 exit status
make[2]: *** [mkyaffs2image100] Error 1
make[2]: Leaving directory `/home/hisi/work/hisi_sdk/Hi3518E_SDK_V1.0.3.0/osdrv/tools/pc/mkyaffs2image/mkyaffs2image‘’
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/hisi/work/hisi_sdk/Hi3518E_SDK_V1.0.3.0/osdrv/tools/pc/mkyaffs2image'
make: *** [hipctools] Error 2

解决办法:

1.因为是编译了整个osdrv ,所以不要全部clean ,直接进入出错目录清理即可,

2.命令如下:cd  /home/hisi/work/hisi_sdk/Hi3518E_SDK_V1.0.3.0/osdrv/tools/pc/mkyaffs2image/mkyaffs2image

     make clean

3. 注意自己的路径替换即可:

问题2:

CC      compr_zlib.o
compr_zlib.c:39:18: fatal error: zlib.h: No such file or directory
 #include
                  ^
compilation terminated.
make[2]: *** [/home/hisi/work/hisi_sdk/Hi3518E_SDK_V1.0.3.0/osdrv/tools/pc/jffs2_tool/tmp/mtd-utils-1.5.0/compr_zlib.o] Error 1
make[2]: Leaving directory `/home/hisi/work/hisi_sdk/Hi3518E_SDK_V1.0.3.0/osdrv/tools/pc/jffs2_tool/tmp/mtd-utils-1.5.0'
make[1]: *** [/home/hisi/work/hisi_sdk/Hi3518E_SDK_V1.0.3.0/osdrv/tools/pc/jffs2_tool/tmp/sbin/mkfs.jffs2] Error 2
make[1]: Leaving directory `/home/hisi/work/hisi_sdk/Hi3518E_SDK_V1.0.3.0/osdrv/tools/pc/jffs2_tool'
make: *** [hipctools] Error 2

解决办法:

1.首先保证虚拟机可以上网,打开网页测试即可,如果不能上网,自己百度解决

2.输入命令 apt-get install zlib1g-dev

3.如果没有apt-get 命令自己安装下,

你可能感兴趣的:(海思3518EV200,海思SDK包编译错误,编译错误,3518E,3518EV200)