# Problem Building QGC in Visual Studio using QT

**URL:** <https://discuss.bluerobotics.com/t/problem-building-qgc-in-visual-studio-using-qt/10751>\
**Category:** QGroundControl\
**Created:** [October 6, 2021, 12:05pm UTC](https://discuss.bluerobotics.com/t/problem-building-qgc-in-visual-studio-using-qt/10751 "2021-10-06T12:05:16Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![EliotBR](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/eliotbr/32/6937_2.png) [@EliotBR](https://discuss.bluerobotics.com/u/EliotBR)\
**Post date:** [October 13, 2021, 12:06pm UTC](https://discuss.bluerobotics.com/t/problem-building-qgc-in-visual-studio-using-qt/10751/8 "2021-10-13T12:06:02Z")

</div>

We discussed this via DM and seem to have solved the issue.

### Installation Instructions

The latest `master` was updated to Qt 5.15 very recently, and the build docs unfortunately haven’t yet been updated to match. On a fresh Windows machine, the steps I took were as follows:

1. Downloaded and installed [git](https://git-scm.com/downloads)
2. Downloaded and installed [Visual Studio Community 2019 64-bit](https://visualstudio.microsoft.com/vs/)
3. Downloaded and installed the “Desktop Development with C++” compiler  
 ![Screen Shot 2021-10-13 at 9.27.01 pm](https://us1.discourse-cdn.com/flex019/uploads/bluerobotics/original/2X/f/f5d9a99bf11ffc55bf7005161c8bb3425267e0b7.png)
4. Downloaded and run [Qt Online Installer](https://www.qt.io/download-open-source)
5. Downloaded and installed Qt 5.15.2 MSVC 2019 64-bit, and Qt Charts (I don’t need to build for Android)  
 ![Screen Shot 2021-10-13 at 9.37.58 pm](https://us1.discourse-cdn.com/flex019/uploads/bluerobotics/original/2X/0/00b4a1554bcdbcaf591af37f238b150a419c8940.jpeg)
6. Downloaded and done the “Complete” install for both [gstreamer and gstreamer-devel msvc-x86\_64-1.18.1 64 bit](https://github.com/mavlink/qgroundcontrol/blob/master/src/VideoReceiver/README.md#64-bit)
7. [Git cloned the sources](https://dev.qgroundcontrol.com/master/en/getting_started/#source-code) of the `qgroundcontrol` repo and updated the submodules
8. Opened Qt Creator
9. Gone to `File/Open` and navigated to `qgroundcontrol\qgroundcontrol.pro`
10. Configured it as Qt 5.15 MSVC 2019 64-bit
11. Pressed the green play button to build and open

Perhaps of particular note are steps 8 through 11. **Visual Studio (from step 2) is ONLY used for getting the relevant compilers (step 3). Actually building QGC should be done through Qt Creator.**

### Old Versions

If you for some reason happen to want to build an old version (instead of working off the latest `master`) then the relevant changes are

1. Downloaded and installed [Visual Studio Community 2017 64-bit](https://visualstudio.microsoft.com/vs/older-downloads/) (requires making a free account)

…

1. Downloaded and installed Qt 5.12.6 MSVC 2017 64-bit, and Qt Charts (Android ARMv7 optional)  
 ![Screen Shot 2021-10-13 at 8.34.54 pm](https://us1.discourse-cdn.com/flex019/uploads/bluerobotics/original/2X/5/5d57092b21c788a285be677bbdd8a70069530cc7.jpeg)

…

1. Clone the sources, but checkout the desired commit/tag/branch before updating submodules - `f2d0b8c` is the last commit the day before the Qt 5.15 changeover, and `v4.1.4` is the last tag before it

…

1. Configured it as Qt 5.12.6 MSVC 2019 64-bit  
for the old Qt 5.12.6 option)

---

_[View the full topic](https://discuss.bluerobotics.com/t/problem-building-qgc-in-visual-studio-using-qt/10751)._
