编译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
离线
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
离线
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
还是一样的提示
离线
知道原因了,就是因为我的上级文件夹名带空格导致的
离线
我的解决方式:
sudo apt-get install python3-distutils libpython3-dev -y
参考: https://stackoverflow.com/questions/55749206/modulenotfounderror-no-module-named-distutils-core
离线