ardupilot编译出错:'__builtin_bswap16' was not declared in this scope
来源:互联网 发布:淘宝客推广链接代码 编辑:程序博客网 时间:2024/05/17 20:25
我做APM的二次开发基于windows系统,环境的配置见:
Building ArduPilot for Pixhawk/PX4 on Windows with Make
以前做基于APM飞控开发都是基于3.3之前的版本,后来想看看最新代码的更新情况,于是上github重新clone最新版本,不料编译总是报错,但是当前的编译环境配置之前都用的好好的,这次不行了,百度了好久,才终于找到答案。
编译报错如下:
e:/zhoupian/work/code/ardupilot/libraries/AP_Common/missing/byteswap.h:11:42: error: '__builtin_bswap16'was not declared in this scope
报错的主要原因是因为当前的编译器不支持代码中的内建函数,需要更新编译器。
更新方法比较简单,以前大多数都使用px4_toolchain_v14,更新到最新的V15就好了。
点击下载
0 0
- ardupilot编译出错:'__builtin_bswap16' was not declared in this scope
- linux 编译ffmpeg 出错:error: 'UINT64_C' was not declared in this scope
- linux 编译ffmpeg 出错:error: 'UINT64_C' was not declared in this scope
- [编译错误]:exit was not declared in this scope
- ‘cout’ was not declared in this scope
- 'wxCHANGE_DIR' was not declared in this scope
- 'setenv' was not declared in this scope
- 'UINT64_C' was not declared in this scope
- ‘UINT64_C’ was not declared in this scope
- ‘close’ was not declared in this scope
- was not declared in this scope
- Connect was not declared in this scope
- 'XXX' was not declared in this scope
- getcwd was not declared in this scope
- nullptr was not declared in this scope
- ‘close’ was not declared in this scope
- '_fileno' was not declared in this scope
- ‘inet_pton’ was not declared in this scope
- asp.net如何在图片上加水印文字
- apk签名后无法安装,Installation error:INSTALL_PARSE_FAILED_MANIFEST_MALFORMED
- C++ Protected 成员变量 也可以被外部修改
- Eclipse搭建Python开发环境
- iOS 开发证书
- ardupilot编译出错:'__builtin_bswap16' was not declared in this scope
- MongoDB的waring:ClientCursor::staticYield can't unlock b/c of recursive lock ns
- 第4周项目4-猴子选大王
- 第四周项目4-猴子选大王
- 使用Notepad++编辑linux上的文件方法
- mysql5.7版本免安装配置教程
- cache行为模型
- ajax方法详解
- Java学习之Iterator(迭代器)的一般用法