qn1533613062

qn1533613062

2个粉丝

36

问答

0

专栏

4

资料

qn1533613062  发布于  2018-08-07 14:43:43
采纳率 0%
36个问答
4299

完整编译Hi3519V101_SDK_V1.0.1.0遇到的问题及处理方法

 
转载:https://blog.csdn.net/Mengxihe29/article/details/52439098?locationNum=14&fps=1

问题1
解开发布包,直接编译sample,报错
/home/wigewige/share/develop/kandao/hisi/yak-0928/KD-Hisi3519v101-SRC/mpp_big-little/sample/hifb/../common/sample_comm.h:45:21: fatal error: hi_mipi.h: No such file or directory
#include "hi_mipi.h"

compilation terminated.

解决

先编译OSDRV


问题2
make all

~/share/develop/kandao/hisi/Hi3519V101_SDK_V1.0.1.0/osdrv/opensource/kernel/linux-3.18.y ~/share/develop/kandao/hisi/Hi3519V101_SDK_V1.0.1.0/osdrv
"mkimage" command not found - U-Boot images will not be built

解决
wigewige@ubuntu:~/share/develop/kandao/hisi/Hi3519V101_SDK_V1.0.1.0/osdrv$ sudo apt-get install u-boot-tools


问题3
遇到编译mkyaffs2 x64 impatition i386

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/wigewige/share/develop/kandao/hisi/Hi3519V101_SDK_V1.0.1.0/osdrv/tools/pc/mkyaffs2image/mkyaffs2image'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/wigewige/share/develop/kandao/hisi/Hi3519V101_SDK_V1.0.1.0/osdrv/tools/pc/mkyaffs2image'
make: *** [hipctools] Error 2

解决
wigewige@ubuntu:~/share/develop/kandao/hisi/Hi3519V101_SDK_V1.0.1.0/osdrv/tools/pc/mkyaffs2image/mkyaffs2image$ make clean


问题4
  CC      compr_zlib.o
compr_zlib.c:39:18: fatal error: zlib.h: No such file or directory
#include

compilation terminated.
make[2]: *** [/home/wigewige/share/develop/kandao/hisi/Hi3519V101_SDK_V1.0.1.0/osdrv/tools/pc/jffs2_tool/tmp/mtd-utils-1.5.0/compr_zlib.o] Error 1
make[2]: Leaving directory `/home/wigewige/share/develop/kandao/hisi/Hi3519V101_SDK_V1.0.1.0/osdrv/tools/pc/jffs2_tool/tmp/mtd-utils-1.5.0'
make[1]: *** [/home/wigewige/share/develop/kandao/hisi/Hi3519V101_SDK_V1.0.1.0/osdrv/tools/pc/jffs2_tool/tmp/sbin/mkfs.jffs2] Error 2
make[1]: Leaving directory `/home/wigewige/share/develop/kandao/hisi/Hi3519V101_SDK_V1.0.1.0/osdrv/tools/pc/jffs2_tool'
make: *** [hipctools] Error 2

解决
wigewige@ubuntu:~/share/develop/kandao/hisi/Hi3519V101_SDK_V1.0.1.0/osdrv/tools/pc/jffs2_tool/tmp/mtd-utils-1.5.0$ sudo apt-get install zlib1g-dev



问题5
CC      compr_zlib.o
  CC      compr_lzo.o
compr_lzo.c:31:23: fatal error: lzo/lzo1x.h: No such file or directory
#include

                       ^
compilation terminated.
make: *** [/home/wigewige/share/develop/kandao/hisi/Hi3519V101_SDK_V1.0.1.0/osdrv/tools/pc/jffs2_tool/tmp/mtd-utils-1.5.0/compr_lzo.o] Error 1

解决
wigewige@ubuntu:~/share/develop/kandao/hisi/Hi3519V101_SDK_V1.0.1.0/osdrv/tools/pc/jffs2_tool/tmp/mtd-utils-1.5.0$ sudo apt-get install liblzo2-dev


问题6
configure: error: ncurses or ncursesw selected, but library not found (--without-ncurses to disable)
make[1]: *** [/home/wigewige/share/develop/kandao/hisi/Hi3519V101_SDK_V1.0.1.0/osdrv/tools/pc/cramfs_tool/tmp/sbin/mkfs.cramfs] Error 1
make[1]: Leaving directory `/home/wigewige/share/develop/kandao/hisi/Hi3519V101_SDK_V1.0.1.0/osdrv/tools/pc/cramfs_tool'
make: *** [hipctools] Error 2

解决
sudo apt-get install libncurses5-dev libncursesw5-dev


问题7
checking for C++ compiler default output file name...
configure: error: C++ compiler cannot create executables
See `config.log' for more details.
make[2]: Entering directory `/home/wigewige/share/develop/kandao/hisi/Hi3519V101_SDK_V1.0.1.0/osdrv/tools/pc/lzma_tool/lzma-4.32.7'
make[2]: *** No targets specified and no makefile found.  Stop.
make[2]: Leaving directory `/home/wigewige/share/develop/kandao/hisi/Hi3519V101_SDK_V1.0.1.0/osdrv/tools/pc/lzma_tool/lzma-4.32.7'
~/share/develop/kandao/hisi/Hi3519V101_SDK_V1.0.1.0/osdrv/tools/pc/lzma_tool
cp: cannot stat ‘/home/wigewige/share/develop/kandao/hisi/Hi3519V101_SDK_V1.0.1.0/osdrv/tools/pc/lzma_tool/lzma-4.32.7/src/lzma/lzma’: No such file or directory
make[1]: *** [all] Error 1
make[1]: Leaving directory `/home/wigewige/share/develop/kandao/hisi/Hi3519V101_SDK_V1.0.1.0/osdrv/tools/pc/lzma_tool'
make: *** [hipctools] Error 2
wigewige@ubuntu:~/share/develop/kandao/hisi/Hi3519V101_SDK_V1.0.1.0/osdrv$

解决
wigewige@ubuntu:~/share/develop/kandao/hisi/Hi3519V101_SDK_V1.0.1.0/osdrv/tools/pc/lzma_tool/lzma-4.32.7$ sudo apt-get install g++

我来回答
回答3个
时间排序
认可量排序

gsgui

0个粉丝

12

问答

0

专栏

0

资料

gsgui 2018-08-09 17:11:17
认可0
好帖。。:victory:

vcil

0个粉丝

4

问答

0

专栏

0

资料

vcil 2018-08-19 11:03:06
认可0
感谢楼主!

serialcom

0个粉丝

0

问答

0

专栏

0

资料

serialcom 2018-09-19 17:43:24
认可0
支持一下。
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
+ 添加网盘链接/附件

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
相关问答
无更多相似问答 去提问
举报反馈

举报类型

  • 内容涉黄/赌/毒
  • 内容侵权/抄袭
  • 政治相关
  • 涉嫌广告
  • 侮辱谩骂
  • 其他

详细说明

易百纳技术社区