码迷,mamicode.com
首页 > 其他好文 > 详细

pixhawk 固件Firmware内执行make px4fmu-v2_default 编译报错解决办法

时间:2016-07-30 11:54:12      阅读:2407      评论:0      收藏:0      [点我收藏+]

标签:

执行下列指令报错
  1. make px4fmu-v2_default
  1. /bin/sh: 1: Tools/check_cmake.sh: Permission denied
  2. Makefile:44: Not a valid CMake version or CMake not installed.
  3. Makefile:45: On Ubuntu, install or upgrade via:
  4. Makefile:46:
  5. Makefile:47: 3rd party PPA:
  6. Makefile:48: sudo add-apt-repository ppa:george-edison55/cmake-3.x -y
  7. Makefile:49: sudo apt-get update
  8. Makefile:50: sudo apt-get install cmake
  9. Makefile:51:
  10. Makefile:52: Official website:
  11. Makefile:53: wget https://cmake.org/files/v3.4/cmake-3.4.3-Linux-x86_64.sh
  12. Makefile:54: chmod +x cmake-3.4.3-Linux-x86_64.sh
  13. Makefile:55: sudo mkdir /opt/cmake-3.4.3
  14. Makefile:56: sudo ./cmake-3.4.3-Linux-x86_64.sh --prefix=/opt/cmake-3.4.3 --exclude-subdir
  15. Makefile:57: export PATH=/opt/cmake-3.4.3/bin:$PATH
  16. Makefile:58:
  17. Makefile:59: *** Fatal. Stop.
在报错信息里有解决办法:
因为自己的文件不是下载的,是从同事哪里copy来的,所以会报错,自己按照提示信息走了一遍,发现走不通,还是有很多错误。自己才疏学浅,没办法,于是就开始重新按照步骤下载
  1. mkdir -p ~/src
  2. cd ~/src
  3. git clone https://github.com/PX4/Firmware.git
  4. cd Firmware
  5. git submodule update --init --recursive
  6. cd ..
下载完后,终于编译通过了


结束






pixhawk 固件Firmware内执行make px4fmu-v2_default 编译报错解决办法

标签:

原文地址:http://www.cnblogs.com/lovechen/p/5720505.html

(1)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!