官方参考链接:https://nuttx.apache.org/docs/latest/quickstart/install.html Getting started ==> Installing
主要记录一下按照链接指导搭建中出现的问题。
1. Kconfig安装执行make install报如下错误
/bin/mkdir -p '/usr/local/lib'
/bin/bash ./libtool --mode=install /usr/bin/install -c libs/parser/libkconfig-parser.la '/usr/local/lib'
libtool: install: /usr/bin/install -c libs/parser/.libs/libkconfig-parser-4.11.0.so /usr/local/lib/libkconfig-parser-4.11.0.so
/usr/bin/install: cannot create regular file '/usr/local/lib/libkconfig-parser-4.11.0.so': Permission denied
Makefile:990: recipe for target 'install-libLTLIBRARIES' failed
make[2]: *** [install-libLTLIBRARIES] Error 1
Makefile:1924: recipe for target 'install-am' failed
make[1]: *** [install-am] Error 2
Makefile:1918: recipe for target 'install' failed
make: *** [install] Error 2
解决办法:
切换到root权限sudo su,然后接续make install
2. 使用Kconfig 执行 tools/configure.sh xxx:xxx的时候报如下错误
kconfig-conf: error while loading shared libraries: libkconfig-parser-4.11.0.so: cannot open shared object file: No such file or directory
解决办法:参考了这位博主的办法
https://blog.csdn.net/xiao2yizhizai/article/details/54375366
将kconfig-frontends的安装路径(一般为 /usr/local/lib)添加到 /etc 目录下的 ld.so.conf 文件中,然后执行ldconfig工具:
sudo vim /etc/ld.so.conf
在文件中添加: include /usr/local/lib,保存并退出
sudo ldconfig
然后继续