海思SDK编译实践 -- hi3798mv100,报错

源代码是这个 hi3798mv100: mirror of https://github.com/glinuz/hi3798mv100

windows10下的Ubuntu 20版本,编译的时候,总是冒这个错误

root@desktop1111:/mnt/d/STB/hi3798mv100-master/HiSTBLinuxV100R005C00SPC041B020# make build -j4 2>&1  | tee -a buildlog.txt

make[5]: Entering directory '/mnt/d/STB/hi3798mv100-master/HiSTBLinuxV100R005C00SPC041B020/out/hi3798mv100/hi3798mdmo1g/obj/source/rootfs/iptables/iptables-1.4.21/extensions'
  CC       libxt_AUDIT.o
  CC       libxt_CHECKSUM.o
  CC       libxt_CLASSIFY.o
  CC       libxt_CONNSECMARK.o
  CC       libxt_CT.o
  CC       libxt_DSCP.o
  CC       libxt_HMARK.o
  CC       libxt_IDLETIMER.o
  CC       libxt_LED.o
  CC       libxt_NFLOG.o
  CC       libxt_NFQUEUE.o
  CC       libxt_RATEEST.o
  CC       libxt_SECMARK.o
  CC       libxt_SYNPROXY.o
  CC       libxt_TCPMSS.o
  CC       libxt_TCPOPTSTRIP.o
libxt_DSCP.c:45:42: error: 'XT_DSCP_MAX' undeclared here (not in a function)
   .type = XTTYPE_UINT8, .min = 0, .max = XT_DSCP_MAX,
                                          ^
make[5]: *** [GNUmakefile:118: libxt_DSCP.o] Error 1
make[5]: *** Waiting for unfinished jobs....
  CC      drivers/mmc/host/himciv200/himciv200_dbg.o
make[5]: Leaving directory '/mnt/d/STB/hi3798mv100-master/HiSTBLinuxV100R005C00SPC041B020/out/hi3798mv100/hi3798mdmo1g/obj/source/rootfs/iptables/iptables-1.4.21/extensions'
make[4]: *** [Makefile:356: all-recursive] Error 1
make[4]: Leaving directory '/mnt/d/STB/hi3798mv100-master/HiSTBLinuxV100R005C00SPC041B020/out/hi3798mv100/hi3798mdmo1g/obj/source/rootfs/iptables/iptables-1.4.21'
make[3]: *** [Makefile:283: all] Error 2
make[3]: Leaving directory '/mnt/d/STB/hi3798mv100-master/HiSTBLinuxV100R005C00SPC041B020/out/hi3798mv100/hi3798mdmo1g/obj/source/rootfs/iptables/iptables-1.4.21'
make[2]: *** [Makefile:40: /mnt/d/STB/hi3798mv100-master/HiSTBLinuxV100R005C00SPC041B020/out/hi3798mv100/hi3798mdmo1g/obj/source/rootfs/iptables/tmp/sbin/xtables-multi] Error 2
make[2]: Leaving directory '/mnt/d/STB/hi3798mv100-master/HiSTBLinuxV100R005C00SPC041B020/source/rootfs/iptables'
make[1]: *** [Makefile:173: iptables.build] Error 2
make[1]: Leaving directory '/mnt/d/STB/hi3798mv100-master/HiSTBLinuxV100R005C00SPC041B020/source/rootfs'
make: *** [Makefile:142: rootfs] Error  2
make: *** Waiting for unfinished jobs....

.

.

.

  CC [M]  drivers/msp/vfmw/softlib/hwmedia_v1.1/src/hwdec/hwcodec/h264idct.o
  CC [M]  drivers/msp/vfmw/softlib/hwmedia_v1.1/src/imedia_viddec.o
/mnt/d/STB/hi3798mv100-master/HiSTBLinuxV100R005C00SPC041B020/source/kernel/linux-3.18.y/drivers/msp/vfmw/softlib/hwmedia_v1.1/src/imedia_viddec.c: In function 'IMedia_Viddec_Create':
/mnt/d/STB/hi3798mv100-master/HiSTBLinuxV100R005C00SPC041B020/source/kernel/linux-3.18.y/drivers/msp/vfmw/softlib/hwmedia_v1.1/src/imedia_viddec.c:588:64: error: 'IMEDIA_FLAG_DISABLE_ARM' undeclared (first use in this function)
     pstAVCodecContext->arm_disable_flag = (pstParams->iFlags & IMEDIA_FLAG_DISABLE_ARM);
                                                                ^
/mnt/d/STB/hi3798mv100-master/HiSTBLinuxV100R005C00SPC041B020/source/kernel/linux-3.18.y/drivers/msp/vfmw/softlib/hwmedia_v1.1/src/imedia_viddec.c:588:64: note: each undeclared identifier is reported only once for each function it appears in
/mnt/d/STB/hi3798mv100-master/HiSTBLinuxV100R005C00SPC041B020/source/kernel/linux-3.18.y/drivers/msp/vfmw/softlib/hwmedia_v1.1/src/imedia_viddec.c: In function 'IMedia_Viddec_FrameDecode':
/mnt/d/STB/hi3798mv100-master/HiSTBLinuxV100R005C00SPC041B020/source/kernel/linux-3.18.y/drivers/msp/vfmw/softlib/hwmedia_v1.1/src/imedia_viddec.c:1491:9: error: implicit declaration of function 'IMedia_OS_Milliseconds' [-Werror=implicit-function-declaration]
         ullCurrentSysTime = IMedia_OS_Milliseconds();
         ^
cc1: all warnings being treated as errors
make[7]: *** [/mnt/d/STB/hi3798mv100-master/HiSTBLinuxV100R005C00SPC041B020/source/kernel/linux-3.18.y/scripts/Makefile.build:262: drivers/msp/vfmw/softlib/hwmedia_v1.1/src/imedia_viddec.o] Error 1
make[6]: *** [/mnt/d/STB/hi3798mv100-master/HiSTBLinuxV100R005C00SPC041B020/source/kernel/linux-3.18.y/scripts/Makefile.build:406: drivers/msp/vfmw/softlib] Error 2
make[5]: *** [/mnt/d/STB/hi3798mv100-master/HiSTBLinuxV100R005C00SPC041B020/source/kernel/linux-3.18.y/scripts/Makefile.build:406: drivers/msp/vfmw] Error 2
make[4]: *** [/mnt/d/STB/hi3798mv100-master/HiSTBLinuxV100R005C00SPC041B020/source/kernel/linux-3.18.y/scripts/Makefile.build:406: drivers/msp] Error 2
make[3]: *** [/mnt/d/STB/hi3798mv100-master/HiSTBLinuxV100R005C00SPC041B020/source/kernel/linux-3.18.y/Makefile:946: drivers] Error 2
make[3]: Leaving directory '/mnt/d/STB/hi3798mv100-master/HiSTBLinuxV100R005C00SPC041B020/out/hi3798mv100/hi3798mdmo1g/obj/source/kernel/linux-3.18.y'
make[2]: *** [Makefile:145: sub-make] Error 2
make[2]: Leaving directory '/mnt/d/STB/hi3798mv100-master/HiSTBLinuxV100R005C00SPC041B020/source/kernel/linux-3.18.y'
make[1]: *** [Makefile:139: /mnt/d/STB/hi3798mv100-master/HiSTBLinuxV100R005C00SPC041B020/out/hi3798mv100/hi3798mdmo1g/obj/source/kernel/linux-3.18.y/arch/arm/boot/uImage] Error 2
make[1]: Leaving directory '/mnt/d/STB/hi3798mv100-master/HiSTBLinuxV100R005C00SPC041B020/source/kernel'
make: *** [Makefile:131: linux] Error 2

[1;31m #### make target "build -j4" failed !!!(01:34:02 (hh:mm:ss)) ####[1;0m

没搞懂这到底是啥问题

评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值