一、前言
本文记录ubutu18.04下自定义meauconfig的安装使用
二、安装
参考链接:
https://nuttx.apache.org/docs/latest/quickstart/install.html
或者可以看这里
(1)先安装前置软件
sudo apt install \
bison flex gettext texinfo libncurses5-dev libncursesw5-dev \
gperf automake libtool pkg-config build-essential gperf genromfs \
libgmp-dev libmpc-dev libmpfr-dev libisl-dev binutils-dev libelf-dev \
libexpat-dev gcc-multilib g++-multilib picocom u-boot-tools util-linux
(2)拉取仓库并且编译
git clone https://bitbucket.org/nuttx/tools.git
cd tools/kconfig-frontends
./configure --enable-mconf --disable-nconf --disable-gconf --disable-qconf
make
make install
(3)变更链接库位置
kconfig-frontends的安装路径(一般为 /usr/local/lib)添加到 /etc 目录下的 ld.so.conf 文件中,然后执行ldconfig工具:
sudo vim /etc/ld.so.conf
在文件中添加: include /usr/local/lib,保存并退出
sudo ldconfig
三、测试
git clone https://github.com/skif-web/demo-kbuild.git
➜ demo-kbuild git:(master) ls
getLast.sh KConfig README.md
运行
kconfig-mconf KConfig
参考链接
https://www.cnblogs.com/zjutlitao/p/15253933.html
https://blog.youkuaiyun.com/weifengdq/article/details/122372497
https://nuttx.apache.org/docs/latest/quickstart/install.html