6004.ubuntu18.04移植qgroundcontrol地面站

6004.ubuntu18.04移植qgroundcontrol地面站ubuntu18 04 移植 qgroundcontr 地面站 参考博客 下载 qgroundContr 源码 第 1 种方式 git clone recursive https github com mavlink qgroundcontr git 这样下载的源码比较完整 耗时比较慢

大家好,我是讯享网,很高兴认识大家。

ubuntu18.04移植qgroundcontrol地面站

参考博客:

下载qgroundControl源码

  • 第1种方式:
    git clone --recursive https://github.com/mavlink/qgroundcontrol.git
    这样下载的源码比较完整,耗时比较慢,中途可能就断掉,github还不支持断点续传,所以我下了多次并没有下载下来。我采用的是第二种方式分步下载。
  • 第2种方式:
    1 单独下载qgroundcontrol源码
    在这里插入图片描述
    讯享网
 git clone https://github.com/mavlink/qgroundcontrol.git 

讯享网

2 下载GPS模块源码
在这里插入图片描述

git clone https://github.com/PX4/GpsDrivers.git

3 下载mavlink代码
git clone https://github.com/mavlink/c_library_v2.git

https://github.com/mavlink/qgroundcontrol/tree/master/libs/mavlink/include/mavlink
在这里插入图片描述
4 下载Qt
每一个版本的qroundcontrol都有对应得qt版本,在编译qgroundcontrol地面站时,如果版本不对,会有提示,根据提示下载对应得版本即可.
本文在编译时由于下载qgroundcontrl源码比较新,在编译时提示qt版本太旧,需要Qt5.11.1以上,所以下载 Qt5.12.1版本
下载地址: https://download.qt.io/official_releases/qt/5.12/5.12.1/

配置Qt相关环境参考博客

https://blog.csdn.net/oenvy12/article/details//

5 编译源码
子源码下载安放路径如下图所示
在这里插入图片描述
在这里插入图片描述
6 编译问题
error: sdl2 development package not found
安装库

讯享网sudo apt-get install espeak libespeak-dev libudev-dev libsdl2-dev 

7 编译成功
在这里插入图片描述

小讯
上一篇 2025-01-16 11:01
下一篇 2025-01-14 21:29

相关推荐

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请联系我们,一经查实,本站将立刻删除。
如需转载请保留出处:https://51itzy.com/kjqy/83161.html