【已解決】海思SDK編譯實踐 -- hi3798mv100,報錯

zhang1701發表於2024-10-30

2023-07-02 20:11:00 釋出
原始碼是這個 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

沒搞懂這到底是啥問題
————————————————-------------------------------------------------
作者2023.07.20
在vmware+ubuntu 16下編譯,沒有再出現該問題。
估計是ubuntu版本和64bit/32bit的問題。

相關文章