WIN10 compile QGroundControlV4.0.5

I always thought that it is difficult to compile QGC under WIN10 environment, so I always compile QGC under Ubuntu environment of virtual machine, because there is a configured environment provided by others. There are version restrictions
for QT and visual studio in WIN10 environment , and they will change over time. Please refer to the official website to download the corresponding version, instead of copying the blog on the CSDN. In April 2020, the official website requires Visual Studio 2017 installation When you use C ++ as shown in the figure below, QT5.12.6. Other versions of QT QT installation and git installation can refer to this blog post. The git official website is very slow. It is recommended to take the domestic mirror download. Note that if you do not have a ladder, download from github Very slow, it is recommended to go to the code cloud. You can refer to the tutorial. It is really cool to run the broadband. After this instruction , there is a config file in the folder where the download address of the submodule is written. As follows, you can change their address to the code cloud. The address, except for the last GPS change, will report an error, the other is no problem, greatly accelerated




Insert picture description here







git submodule init
qgroundcontrol\.git

[submodule "libs/OpenSSL/android_openssl"]
	active = true
	url = https://github.com/Auterion/android_openssl
[submodule "libs/mavlink/include/mavlink/v2.0"]
	active = true
	url = https://github.com/mavlink/c_library_v2.git
[submodule "libs/gst-plugins-good"]
	active = true
	url = https://github.com/mavlink/gst-plugins-good.git
[submodule "src/GPS/Drivers"]
	active = true
	url = https://github.com/PX4/GpsDrivers.git

After modification, git submodule update
open QT to compile and compile the source code. Error: C2220
Insert picture description here
solution source.
Insert picture description here
Insert picture description here
Comment out these three lines of code.

  # WarningsAsErrorsOn {
      #  QMAKE_CXXFLAGS_WARN_ON += /WX
   # }

You're done and have fun
Insert picture description here
Insert picture description here

Released eight original articles · won praise 11 · views 2923

Guess you like

Origin blog.csdn.net/weixin_44457020/article/details/105357478
Recommended