ardupilot在Ubuntu12.04.5-32bit-x86环境下的编译,简易版编译环境搭建,实际使用

1. 前提条件
已经下载了ardupilot的压缩包,注意一定是压缩包,因为如果采取解压缩tar命令可以解决涉及到的文件权限的问题。
2安装
2.1 Permissions
You need to make your user a member of the dialout group:
sudo usermod -a -G dialout $USER
2.2 Reload the path (log-out and log-in to make permanent):
. ~/.profile
2.3. 解压缩ardupilot
tar –xvf ardupilot.zip
这里一定需要确保用户对ardupilot拥有读写执行(如果是文件夹就是“进入”)的权利
2.4 执行脚本Run the install-prereqs-ubuntu.sh script:
ardupilot/Tools/scripts/install-prereqs-ubuntu.sh –y
脚本运行失败,请看步骤7
3. 编译Compiler
因为2.4 ardupilot/Tools/scripts/install-prereqs-ubuntu.sh –y这个步骤已经下载了gcc-arm-none-eabi,并且解压缩到了/opt/ gcc-arm-none-eabi/目录下了,所以只需要配置环境变量
1配置环境变量
export PATH=$PATH:/opt/gcc-arm-none-eabi-4_6-2012q2/bin
2下面的编译可以不需要,因为只是加快编译速度
1)安装ccache
sudo apt-get install ccache
2)建立链接
cd /usr/lib/ccache
sudo ln -s /usr/bin/ccache arm-none-eabi-g++
sudo ln -s /usr/bin/ccache arm-none-eabi-gcc
3)配置环境变量
export PATH=$PA
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值