问题记录:unable to execute ‘swig‘: No such file or directory

发布时间:2024年01月10日

在编译uboot的时候报如下错误:

unable to execute 'swig': No such file or directory
error: command 'swig' failed with exit status 1
scripts/dtc/pylibfdt/Makefile:26: recipe for target 'scripts/dtc/pylibfdt/_libfdt.so' failed
make[3]: *** [scripts/dtc/pylibfdt/_libfdt.so] Error 1
scripts/Makefile.build:425: recipe for target 'scripts/dtc/pylibfdt' failed
make[2]: *** [scripts/dtc/pylibfdt] Error 2
make[2]: *** 正在等待未完成的任务....
? UPD ? ? include/generated/version_autogenerated.h
? CC ? ? ?arch/arm/lib/asm-offsets.s
? CC ? ? ?lib/asm-offsets.s
scripts/Makefile.build:425: recipe for target 'scripts/dtc' failed
make[1]: *** [scripts/dtc] Error 2
Makefile:494: recipe for target 'scripts' failed
make: *** [scripts] Error 2
make: *** 正在等待未完成的任务....
? CHK ? ? include/generated/asm-offsets.h
? CHK ? ? include/generated/generic-asm-offsets.h
? UPD ? ? include/generated/asm-offsets.h
? UPD ? ? include/generated/generic-asm-offsets.h

应该是缺少依赖库,安装如下软件即可:

sudo apt-get install swig python-dev python3-dev

文章来源:https://blog.csdn.net/qq_34752070/article/details/135506948
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。