NUTTX学习笔记(一)

明天开始就要赶一个项目了,可能要过段时间再搞,先把目前的阶段总结一下。

1. 参考文献

这里推荐两个博主,我基本是参考他们的博客:

  1. https://blog.csdn.net/xiao2yizhizai/article/details/54375366
  2. https://blog.csdn.net/yt454287063

2. 目前做的工作

  1. 下载nuttx,包括下载nuttx,app,tools
  2. 查看芯片的型号,和readme文件
  3. 了解如何配置.config文件,以及如何查找并修改某个参数
  4. 构建基础环境

3.遇到的问题

  1. 关于install kconfig 时出现的问题
    此时我已经执行到博主Godenfreemans第二章的内容. 出现一样没有配置kconfig的问题,这时候报错是

/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

查阅资料得知要用管理员权限。执行

sudo make install

  1. 出现关于kconfig-mconf的问题
    然后虽然安装好啦,但是提醒我如果想在一个特定的文件夹执行,我需要怎么做,参考如下:

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the ‘-LLIBDIR’
flag during linking and do at least one of the following:

  • add LIBDIR to the ‘LD_LIBRARY_PATH’ environment variable
    during execution
  • add LIBDIR to the ‘LD_RUN_PATH’ environment variable
    during linking
  • use the ‘-Wl,-rpath -Wl,LIBDIR’ linker flag
  • have your system administrator add LIBDIR to ‘/etc/ld.so.conf’
    See any operating system documentation about shared libraries for
    more information, such as the ld(1) and ld.so(8) manual pages.

然后会出现这个问题:

kconfig-mconf: error while loading shared libraries: libkconfig-parser-3.12.0.so: cannot open shared object file: No such file or directory

按照另一博客,是由于路径没有包含的原因。

3. 接下来的工作

虽然后面要过一段时间再弄,还是想计划一下:

  1. 先完成stm31f103zet6的系统适配,熟悉底层硬件驱动如何执行。
  2. 熟悉cmake环境,研究pixhawk代码如何让执行
  3. 将之前的工作移植到f4单片机或者飞思卡尔的单片机

预计完成时间:10月底

  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

zhao23333

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值