ubuntu版本22.04.1
1.解压安装包
拷贝sdk并解压出来,注意安装包较大请预留好硬盘空间
2.预安装编译应用
先安装如下应用,在编译过程中需要使用到的依赖
sudo apt install build-essential cmake flex bison u-boot-tools openssl libssl-dev texinfo
3.安装和更换python2
编译使用的是python2,预先进行安装配置
sudo apt install python2
sudo ln -s /usr/bin/python2 /usr/bin/python
4.编译错误
以下错误都是我自己遇到的,参考网上的解决办法,有一些没有遇到,如果出现请自行搜索解决
libfakeroot.c:99:40: error: ‘_STAT_VER’ undeclared (first use in this function)
在libfakeroot.c 增加
#ifndef _STAT_VER
#if defined (__aarch64__)
#define _STAT_VER 0
#elif defined (__x86_64__)
#define _STAT_VER 1
#else
#define _STAT_VER 3
#endif
#endif
c-stack.c:55:26: error: missing binary operator before token "(" 55 | #elif HAVE_LIBSIGSEGV && SIGSTKSZ < 16384
进入c-stack.c的文件夹下
wget https://raw.githubusercontent.com/keyfour/openwrt/2722d51c5cf6a296b8ecf7ae09e46690403a6c3d/tools/m4/patches/011-fix-sigstksz.patch
patch c-stack.c < 011-fix-sigstksz.patch
gdbusauth.c:1302:11: error: ‘%s’ directive argument is null
if(line != NULL)
debug_print ("SERVER: WaitingForBegin, read '%s'", line);
gdbusmessage.c:2702:30: error: ‘%s’ directive argument is null
if(signature_str!= NULL)
tupled_signature_str = g_strdup_printf ("(%s)", signature_str);
(.text+0x0): multiple definition of `yylloc'; dtc-lexer.lex.o (symbol from plugin)
标签:mini,STAT,VER,ubuntu22.04,编译,video,T113,error,include From: https://www.cnblogs.com/chencarl/p/18062425