本文档内容主要记录了在编译RK3588工程时所遇到的一些问题,相关的问题可能也会发生在其他的工程编译里面,该文档的解决方法仅供参考
1、编译kernel出现 arch/arm64/boot/Makefile:31: recipe for target ‘arch/arm64/boot/Image.lz4’ failed 报错

 原因:lz4不存在或者版本过低。解决办法1:系编译环境缺少lz4组件导致,执行如下命令安装sudo apt-get updateapt-get install liblz4-tool若update执行失败,可参考如下链接,替换镜像源http://3ms.huawei.com/km/blogs/details/11561033

但大概率即使把源更新了,编译依然会报错,原因是因为官方的软件源为了稳定不会提供版本很新的代码,所以你通过apt-get install去下载安装的代码不是现在最新的版本。但有些编译又指定要很新的版本,这就产生了矛盾。所以可以通过去github上拉取最新版本的代码安装。如下,安装包见附件。
解决办法2:下载最新lz4源码,安装
$ git clone https://github.com/lz4/lz4.git
$ make
$ sudo make install
<<lz4-dev.zip>>
本项目,法1不能解决该问题,推荐法2。

2、
开发板上电运行,并自动选择从SD卡进入新系统。
终端登录账号:rock
密码:rock

3、编译debian时报错ERROR: Running build_debian failed!

4、报错./mk-base-debian.sh: line 29: cd: ubuntu-build-service/-desktop-: No such file or directory

原因:没有这个文件夹
解决方法:
sudo apt-get install binfmt-support qemu-user-static live-build
sudo dpkg -i ubuntu-build-service/packages/*
sudo apt-get install -f

5、报错E: Failed getting release file http://mirrors.ustc.edu.cn/debian/dists/bullseye/Release

原因:这是因为需要去外网下载debain的相关包,由于公司网的原因无法下载,导致编译失败
解决方法1:改为国内的源
+++ b/ubuntu-build-service/bullseye-desktop-arm64/configure
@@ -11,6 +11,11 @@ set -e
echo “I: create configuration”
export LB_BOOTSTRAP_INCLUDE=“apt-transport-https gnupg”
lb config \

  • –mirror-bootstrap “https://mirrors.tuna.tsinghua.edu.cn/debian” \
  • –mirror-chroot “https://mirrors.tuna.tsinghua.edu.cn/debian” \
  • –mirror-chroot-security “https://mirrors.tuna.tsinghua.edu.cn/debian-security”
    \
  • –mirror-binary “https://mirrors.tuna.tsinghua.edu.cn/debian” \
  • –mirror-binary-security “https://mirrors.tuna.tsinghua.edu.c
    n/debian-security”
    –apt-indices false
    –apt-recommends false
    –apt-secure false
    解决方法2:直接用已下好的预编译包。见附件。
    <<linaro-bullseye-alip-20220420-1.tar.gz>>

6、ERROR: Running build_recovery failed!

7、制作离线安装包并安装

8、sh: 1: genext2fs: not found

解决方法:安装ext2文件系统的生成器

9、/bin/sh: 1: flex: not found

解决办法:sudo apt install flex bison coreutils qemu qemu-user-static python3 qemu-user-binfmt

10、[EDGE ERROR] Build kernel failed, cmd: make CROSS_COMPILE=/usr1/edge/prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu- LLVM=1 LLVM_IAS=1 -j 16 A

解决方法:sudo apt-get install repo git ssh make gcc libssl-dev liblz4-tool expect g++ patchelf chrpath gawk texinfo chrpath diffstat binfmt-support qemu-user-static live-build bison flex fakeroot cmake gcc-multilib g+±multilib unzip device-tree-compiler ncurses-dev

11、scripts/basic/fixdep.c:92:10: fatal error: ‘sys/types.h’ file not found

解决方法:安装libc6-dev apt-get install libc6-dev

12、E: Unmet dependencies. Try ‘apt --fix-broken install’ with no packages (or specify a solution).

解决办法:apt --fix-broken install

13、You may also need to install pkg-config to find the ncurses installed in a non-default location.

解决方法:apt install pkg-config

14、dpkg: error: 1 expected program not found in PATH or not executable

解决方法:
sudo apt-get download libc-bin
dpkg -x libc-bin*.deb unpackdir/
sudo cp unpackdir/sbin/ldconfig /sbin/
sudo apt-get install --reinstall libc-bin
sudo apt-get -f install

15、Unable to find the ncurses package. Install ncurses (ncurses-devel or libncurses-dev depending on your distribution).

解决办法:apt install libncurses-dev

16、fatal error: cannot execute ‘cc1’: execvp: No such file or directory

原因:工具链中缺失cc1文件
解决方法:将完备的交叉工具链所需要的库和依赖拷贝到编译机中。

17、 fatal error: string.h: No such file or directory

原因:同问题16
解决方法:同问题16

18、/bin/sh: 1: flex: not found

原因:相关文件未安装
解决方法:sudo apt-get install flex bison

19、:0:12: fatal error: curses.h: No such file or directory

解决方法:安装libncurses5-dev 库
命令:sudo apt-get install libncurses5-dev

20、When using ADD with more than one source file, the destination must be a directory and end with a /

原因:缺失/符号。
解决方法:添加/符号

21、configure: error: *** gperf not found

解决方法:
安装:
sudo apt-get install gperf

22、/bin/bash: pkg-config: command not found

解决方法:
安装:
sudo apt-get install pkg-config

23、error: systemctl preset failed on samba-ad-dc.service: No such file or directory

解决方法:systemctl mask samba-ad-dc.service

24、/usr/lib/sudo/sudoers.so must be only be writable by owner
解决方法:
pkexec chmod go-w /usr/lib/sudo/sudoers.so

25、configure: error: cannot guess build type; you must specify one

解决方法:添加一个平台选项
./configure --build=arm-linux

RK3588编译问题集相关推荐

  1. nginx源码编译和集群及高可用

    实验环境 server7 nginx主机 server8 http server9 http server10 nginx [root@server7 ~]# tar zxf nginx-1.12.0 ...

  2. rk3588编译Ubuntu固件,Linux SDK开发

    基础认知 Linux SDK 是由 Firefly 官方提供的 Linux 软件开发工具包,旨在方便用户基于其进行模块开发与系统定制. SDK 目录树 各个芯片平台的 Linux SDK 目录树可能略 ...

  3. Vs2010编译错误集

    1.error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 在项目属性-&g ...

  4. visual studio编译错误集(转)

    1.error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 在项目属性-&g ...

  5. LibreCAD Windows编译问题集

    运行环境:win7系统,QT5.9.0(MSVC2015 32bit) 下载资源 LibreCAD Boost 说明:下载最新版本即可(当时下载的的版本为:LibreCAD 2.2.0,Boost 1 ...

  6. RK3588编译RKMPP库+编解码测试

    目录 编译RKMPP库 解码测试 编码测试 编译RKMPP库 RK官方MPP库地址: https://github.com/rockchip-linux/mpp 板子上的操作系统:ubuntu 20. ...

  7. 20221218解决在Ubuntu18.04下编译Firefly的Core-3588J出现lz4的问题

    20221218解决在Ubuntu18.04下编译Firefly的Core-3588J出现lz4的问题 2022/12/18 15:37 解决方法:编译最新的lz4的dev分支! https://wi ...

  8. msvc2013编译qt5.6源码

    1.回顾 说起到qt的编译,真是领人痛心啊,不仅编译选项繁多,而且编译时间比较久,总是能使想编译qt源码的人望而却步,呵呵...我就是其中一个,不知道从什么时候开始就想着把qt的源码编译一下,也尝试过 ...

  9. java预编译啥意思_java预编译 java jdbc 预编译语句和普通语句的区别

    java中什么是预编译precompile?总有一天你恍然大悟,父母是你花心思,花时间最少,却最爱你的人. 什么是预编译?起什么作用的? . 在java中如何实现预编译?祝你幸福!这句话真俗.小编会祝 ...

最新文章

  1. 利用交换机解决局域网ARP问题(51CTO博客出书活动)
  2. android keytool 不是内部命令或外部命令在 (win7下不能用的解决方法)
  3. keepalived(7)——操作脚本
  4. IBM AIX:Java进程大小监视
  5. 【渝粤教育】 国家开放大学2020年春季 1068小企业管理 参考试题
  6. 【VS开发】static、extern分析总结
  7. python 编码问题_Python电源挑战| 竞争编码问题
  8. 深入理解jQuery插件开发(转)
  9. java零碎要点013---JAVA执行js_java执行JavaScript_java执行js引擎不能识别document浏览器内置对象解决办法
  10. C#用正则表达式 获取网页源代码标签的属性或值
  11. 关于java前端的相关讲解
  12. ZUL页面注解语法与Java注解语法
  13. webpack搭建pixi.js开发环境
  14. Android中声音池SoundPool的使用
  15. 一文带你看透 Chrome 浏览器架构
  16. 小米android隐藏游戏,MIUI8小米手机开启隐藏选项
  17. 【Docker】安装 Portainer
  18. 【人脸识别】基于主成分分析PCA算法人脸识别门禁系统含Matlab源码
  19. 有赞,我们来谈谈尊重和感恩员工
  20. redis生成自增流水号每天自动从头开始

热门文章

  1. magic--创建魔方矩阵
  2. Fortify--安装与使用
  3. whoosh全文检索
  4. 专访阿里云AI科学家闵万里:AI试水电力调度是道让人兴奋的题目
  5. html 内容不换行,html标题不换行 html 什么代码可以不换行
  6. 定制鼠标右键新建菜单选项
  7. 大数据存储:存储成本的下降
  8. 径向基函数(rbf)神经网络 基础篇 奥利给 干就完了!
  9. Nginx透过代理获取真实客户端IP
  10. 安装element iu环境