QGroundControl 3.2 开发环境搭建



最近在在ggc的官网上,看到QGroundControl 又有更新了,有了一些新特。可惜的是要向运行最新的代码,必须得重新搭建环境。

具体的要求见官网 https://github.com/mavlink/qgroundcontrol

即需要安装VS2015 和qt5.7.1。因此我就迫不及待亟待的安装了以上两个软件,结果是程序是运行不起来。

最终各种折腾,终于把qgroundcontrol源码编译成功,总结了两点:

1、要安装qt-opensource-windows-x86-msvc2015-5.7.1.exe 不要安装qt-opensource-windows-x86-winrt-msvc2015-5.7.1.exe,除非你的电脑是windows10系统。

2、居然现在的VS studio直接安装后,都不自动安装c++编译了,需要手动安装,安装的方法可以是:

VS2015安装C++的内容

因为选了默认的安装,安装完发现主要是C#的内容,C++的内容没有,于是需要继续安装C++的内容。

问题描述:VS2015中没有C++编程的部分。

解决方案如下:

(1)打开VS2015后【文件】→【新建】→【项目】,出现的内容如下所示:



(2)双击【安装通用Windows平台工具】,出现如下界面




(3)漫长的安装过程,慢慢等待。

备注:如果您的网络和我的一样,没法找到安装包。那您也还是需要翻墙,否则会出现找不到安装包

(4)安装完成






Supported Builds

Native Builds

QGroundControl builds are supported for OSX, Linux, Windows, iOS and Android. QGroundControl uses Qt as its cross-platform support library and uses QtCreator as its default build environment.

  • OSX: OSX 10.7 or higher, 64 bit, clang compiler (IMPORTANT: XCode 8 requires a workaround described below)
  • Ubuntu: 64 bit, gcc compiler
  • Windows: Vista or higher, 32 bit, Visual Studio 2015 compiler
  • iOS: 8.0 and higher
  • Android: Jelly Bean (4.1) and higher. Standard QGC is built against ndk version 19.
  • Qt version: 5.7.1 ONLY
Install QT

You need to install Qt as described below instead of using pre-built packages from say, a Linux distribution, because QGroundControl needs access to private Qt headers.

  • Download the Qt installer
    • Make sure to install Qt version 5.7.1 NOT 5.4.x, 5.6.x, 5.8.x, etc.
    • Ubuntu: Set the downloaded file to executable using:chmod +x. Install to default location for use with ./qgroundcontrol-start.sh. If you install Qt to a non-default location you will need to modify qgroundcontrol-start.sh in order to run downloaded builds.
    • Windows: Make sure to install VS 2015 32 bit package.

猜你喜欢

转载自blog.csdn.net/zhashuiguangzi/article/details/76146197
3.2