全志搭建环境的一些问题解决

本文针对嵌入式开发中常见的编译错误提供了详细的解决方案,包括安装必要的工具如 flex、g++ 和 texinfo 等,还解决了与共享库 libstdc++.so.6 相关的问题及一些特定脚本运行时遇到的错误。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

You must install ‘flex’ on your build machine
解决:sudo apt-get install flex

You may have to install ‘g++’ on your build machine
解决:sudo apt-get install g++

You must install ‘makeinfo’ on your build machine
解决sudo apt-get install texinfo

./stdio.h:456:1: error: ‘gets’ undeclared here (not in a function)
_GL_WARN_ON_USE (gets, “gets is a security hole - use fgets instead”)
解决:https://www.cnblogs.com/zll123/p/6865900.html

“mkimage” command not found - U-Boot images will not be built
解决:sudo apt-get update
Sudo apt-get upgrade
sudo apt-get install uboot-mkimage

./scripts/build_rootfs.sh: line 19: fakeroot: command not found
解决:sudo apt-get install fakeroot

awk: line 2: function strtonum never defined
解决:sudo apt-get install gawk

error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
解决:sudo apt-get install lib32stdc++6
sudo apt-get install libstdc++6

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

_小白鱼儿_

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值