您尚未登录。

楼主 #1 2020-05-20 17:27:41

SkyLine
会员
注册时间: 2020-05-20
已发帖子: 12
积分: 12

编译uboot提示recipe for target 'scripts/dtc/pylibfdt'

编译uboot时提示:
  CHK     include/config/uboot.release
  CHK     include/generated/timestamp_autogenerated.h
  UPD     include/generated/timestamp_autogenerated.h
scripts/dtc/pylibfdt/Makefile:8: /home/book/Lichee: 没有那个文件或目录
scripts/dtc/pylibfdt/Makefile:8: Nano/u-boot-nano-v2018.01/scripts/dtc/libfdt/Makefile.libfdt: 没有那个文件或目录
  CHK     include/generated/version_autogenerated.h
make[3]: *** No rule to make target 'Nano/u-boot-nano-v2018.01/scripts/dtc/libfdt/Makefile.libfdt'。 停止。
scripts/Makefile.build:425: recipe for target 'scripts/dtc/pylibfdt' failed
make[2]: *** [scripts/dtc/pylibfdt] Error 2
scripts/Makefile.build:425: recipe for target 'scripts/dtc' failed
make[1]: *** [scripts/dtc] Error 2
Makefile:491: recipe for target 'scripts' failed
make: *** [scripts] Error 2
make: *** 正在等待未完成的任务....
  CHK     include/config.h
  CFG     u-boot.cfg
我的gcc版本是gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)
且已经安装swig

离线

#2 2020-05-20 18:15:22

哇酷小二
wechat微信:whycan_cn
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,378
积分: 1902
个人网站

Re: 编译uboot提示recipe for target 'scripts/dtc/pylibfdt'

sudo apt-get install gcc make python libpython-dev git swig libssl-dev libncurses5-dev device-tree-compiler libncursesw5-dev gcc-arm-linux-gnueabihf u-boot-tools -y





离线

楼主 #3 2020-05-20 19:16:50

SkyLine
会员
注册时间: 2020-05-20
已发帖子: 12
积分: 12

Re: 编译uboot提示recipe for target 'scripts/dtc/pylibfdt'

哇酷小二 说:

sudo apt-get install gcc make python libpython-dev git swig libssl-dev libncurses5-dev device-tree-compiler libncursesw5-dev gcc-arm-linux-gnueabihf u-boot-tools -y

还是一样的提示

离线

楼主 #4 2020-05-21 17:10:42

SkyLine
会员
注册时间: 2020-05-20
已发帖子: 12
积分: 12

Re: 编译uboot提示recipe for target 'scripts/dtc/pylibfdt'

知道原因了,就是因为我的上级文件夹名带空格导致的

离线

#5 2020-06-20 16:10:30

流氓兔
会员
注册时间: 2020-02-01
已发帖子: 121
积分: 109.5

Re: 编译uboot提示recipe for target 'scripts/dtc/pylibfdt'

我的解决方式:

sudo apt-get install python3-distutils libpython3-dev -y

参考: https://stackoverflow.com/questions/55749206/modulenotfounderror-no-module-named-distutils-core

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn