今天拿拿到T113开发板,编译全志 T113:
#tar xzvf t113-linux-***.tgz
#git reset --hard
返回上级目录
#sudo chown kk:kk -R T113
(否则会出现:you should not run configure as root (set FORCE_UNSAFE_CONFIGURE=1 in environment,
若出现此问题,在/etc/profile 中加入
export set FORCE_UNSAFE_CONFIGURE=1
即可)
重新进入 T113
先安装 python3,否则后面会报错
#sudo apt-get install python-is-python3
#./build.sh init
#./build.sh qt
目前为止出现以下问题:
1 _STAT_VER 错误
libfakeroot.c: In function ‘chown’:
libfakeroot.c:99:40: error: ‘_STAT_VER’ undeclared (first use in this function)
99 | #define INT_NEXT_STAT(a,b) NEXT_STAT64(_STAT_VER,a,b)
搜索 libfakeroot.c 所在目录并进入(find ./ -name 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
2 解决:c-stack.c:55:26: error: missing binary operator before token “(“ 55
搜索 c-stack.c 所在目录并进入(find ./ -name c-stack.c) :
wget h-t-t-p-s://raw.fastgit.org/keyfour/openwrt/2722d51c5cf6a296b8ecf7ae09e46690403a6c3d/tools/m4/patches/011-fix-sigstksz.patch --no-check-certificate
下载补丁文件并安装
#patch c-stack.c < 011-fix-sigstksz.patch
3 gdbusauth.c:1302:11: error: ‘%s’ directive argument is null
有几个类似这样子的错误,找到文件相应的目录,在错误前加多一行:
if(signature_str!= NULL)
4 编译 ./build.sh uboot 会提示以下错误 :
usr/bin/ld: scripts/dtc/dtc-parser.tab.o:(.bss+0x10): multiple definition of ‘yylloc‘;
在 brandy-2.0/u-boot-2018 根目录中的 Makefile 加入
HOSTCLFAGS += -fcommon
5 "mkimage" command not found
#sudo apt-get install u-boot-tools
6 提示缺少 openssl.h
#sudo apt install openssl
#sudo apt install libssl-dev
7 编译打包 ./build.sh pack 之后出现
ERROR: unable to open file boot-resource.fex
ERROR: update mbr file fail
ERROR: update_mbr failed
安装以下包即可
#sudo apt-get install libc6:i386(libc6-i386) libgcc1:i386 libstdc++6:i386
如果安装不成功,提示缺少依赖关系,则要修改 软件源 sources.list (将原文件替换)
vim /etc/apt/sources.list
deb jammy main restricted universe multiverse
deb jammy-security main restricted universe multiverse
deb jammy-updates main restricted universe multiverse
deb jammy-backports main restricted universe multiverse
# deb-src jammy main restricted universe multiverse
# deb-src jammy-security main restricted universe multiverse
# deb-src jammy-updates main restricted universe multiverse
# deb-src jammy-backports main restricted universe multiverse
## Pre-released source, not recommended.
# deb jammy-proposed main restricted universe multiverse
# deb-src jammy-proposed main restricted universe multiverse
deb jammy main restricted universe multiverse
deb jammy-updates main restricted universe multiverse
deb jammy-backports main restricted universe multiverse
deb jammy-security main restricted universe multiverse
# deb-src jammy main restricted universe multiverse
# deb-src jammy-updates main restricted universe multiverse
# deb-src jammy-backports main restricted universe multiverse
# deb-src jammy-security main restricted universe multiverse
## Pre-released source, not recommended.
# deb jammy-proposed main restricted universe multiverse
# deb-src jammy-proposed main restricted universe multiverse
阅读(1384) | 评论(0) | 转发(0) |