64位ubuntu16.04搭建嵌入式linux开发环境的奇葩问题

12 篇文章 1 订阅
6 篇文章 0 订阅

奇葩问题1:选择ubuntu镜像启动安装时,黑屏,使用网上方法去掉3D图形加速也不行

宿主机上运行如下命令,重启宿主机

netsh winsock reset

 

奇葩问题2:将交叉编译链路径添加进PATH 后运行arm-none-linux-gnueabi-gcc依然出现:No such file or directory

sudo apt-get install lib32ncurses5

 

奇葩问题3:编译内核出现Can't use 'defined(@array)' (Maybe you should just omit the defined()?) at kernel/timeconst.pl line 373.

将kernel/timeconst.pl 文件中的

if (!defined(@val)) {

替换为

if (!@val) {

 

奇葩问题4:不能make menuconfig,会出现error "mixed implicit and normal rules"

将编译目录下的Makefile中的

config %config: scripts_basic outputmakefile FORCE

改为

%config: scripts_basic outputmakefile FORCE

 

奇葩问题5:编译内核出现drivers/Makefile:59: *** missing separator.  Stop.

查看drivers/Makefile发现

obj-$(CONFIG_TC)		+= tc/
+ obj-$(CONFIG_UWB)		+= uwb/
obj-$(CONFIG_USB_OTG_UTILS)	+= usb/otg/

将其改为

obj-$(CONFIG_TC)		+= tc/
obj-$(CONFIG_UWB)		+= uwb/
obj-$(CONFIG_USB_OTG_UTILS)	+= usb/otg/

 

奇葩问题6:编译内核出现arm-none-linux-gnueabi/bin/as: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory

网上方法

sudo apt-get install lib32ncurses5 ia32-libs

发现不行,提示

Package ia32-libs is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  lib32ncurses5 lib32z1

使用

sudo apt-get install lib32ncurses5 lib32z1

成功解决

 

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值