# Need help setting up QGroundControl for Qt or Visual Studio

**URL:** <https://discuss.bluerobotics.com/t/need-help-setting-up-qgroundcontrol-for-qt-or-visual-studio/10765>\
**Category:** QGroundControl\
**Created:** [October 7, 2021, 2:30pm UTC](https://discuss.bluerobotics.com/t/need-help-setting-up-qgroundcontrol-for-qt-or-visual-studio/10765 "2021-10-07T14:30:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nigel](https://avatars.discourse-cdn.com/v4/letter/n/e47774/32.png) [@Nigel](https://discuss.bluerobotics.com/u/Nigel)\
**Post date:** [October 7, 2021, 2:30pm UTC](https://discuss.bluerobotics.com/t/need-help-setting-up-qgroundcontrol-for-qt-or-visual-studio/10765/1 "2021-10-07T14:30:06Z")

</div>

I tried to set up QGroundControl in Qt creator and Visual Studio but with both application I got an error that I do not know how to solve.

The problem I got with Qt creator is that I cant use the design tool and because I don’t know how to use the 5.12.6 version of Qt in the creator, I can’t use the MavLink commands.

With Visual Studio when I try to build the code I get an error with cmake, where there is a library non static.

---

<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 8, 2021, 3:48am UTC](https://discuss.bluerobotics.com/t/need-help-setting-up-qgroundcontrol-for-qt-or-visual-studio/10765/2 "2021-10-08T03:48:40Z")

</div>

Hi @Nigel, welcome to the forum 🙂

There’s a recent and very similar question to this [here](https://discuss.bluerobotics.com/t/problem-building-qgc-in-visual-studio-using-qt/10751) which is likely relevant. In particular,

> [@Problem Building QGC in Visual Studio using QT](https://discuss.bluerobotics.com/t/problem-building-qgc-in-visual-studio-using-qt/10751/2):
>
> Have you followed the [getting started instructions](https://dev.qgroundcontrol.com/master/en/getting_started/) exactly?  
> QGC has very strict build requirements, so if you’re using an incorrect version of Visual Studio or Qt it likely won’t work. Also make sure you’ve [updated the submodules](https://dev.qgroundcontrol.com/master/en/getting_started/#:~:text=git%20submodule%20update%20--recursive) in your cloned source directory, otherwise some of the required code will be missing.

If that and the other comments in that topic don’t solve the issue, please follow up with what you’ve tried so far and the error message(s) you’re receiving, so we can try to help figure out what’s not set up correctly 🙂

---

<div class="post-metadata">

**Author:** ![Nigel](https://avatars.discourse-cdn.com/v4/letter/n/e47774/32.png) [@Nigel](https://discuss.bluerobotics.com/u/Nigel)\
**Post date:** [October 8, 2021, 12:13pm UTC](https://discuss.bluerobotics.com/t/need-help-setting-up-qgroundcontrol-for-qt-or-visual-studio/10765/3 "2021-10-08T12:13:08Z")

</div>

Yes I am following the getting started instructions and updated the submodules after cloning. tried building it in visual studio 2017 and 2019 with the Qt extension. In the extension I linked the 5.12.6 qmake.exe to set the version but it kept giving an error that asked for the 5.15.0, so I added a link to that version as well.

But now I got this error:

```auto
Severity	Code	Description	Project	File	Line	Suppression State
Error CMake Error: The inter-target dependency graph contains the following strongly connected component (cycle):
  "libevents_parser" of type SHARED_LIBRARY
    depends on "comm" (weak)
    depends on "qgc" (weak)
    depends on "ADSB" (weak)
    depends on "Airmap" (weak)
    ...
  "VehicleSetup" of type SHARED_LIBRARY
    depends on "compression" (weak)
    depends on "qgc" (weak)
    depends on "ADSB" (weak)
At least one of these targets is not a STATIC_LIBRARY. Cyclic dependencies are allowed only among static libraries.

```

---

<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 11, 2021, 5:20am UTC](https://discuss.bluerobotics.com/t/need-help-setting-up-qgroundcontrol-for-qt-or-visual-studio/10765/4 "2021-10-11T05:20:31Z")

</div>

> [@Nigel](#):
>
> tried building it in visual studio 2017 and 2019 with the Qt extension.

Are you able to try building with Qt Creator instead?

> [@Nigel](#):
>
> In the extension I linked the 5.12.6 qmake.exe to set the version but it kept giving an error that asked for the 5.15.0, so I added a link to that version as well.

I don’t believe that should be necessary, but 5.15.0 was mentioned in the other thread as well - I’ll try to make some time tomorrow to set up Windows and go through the build process to see if I find any issues with it (last time I needed to was about a year ago at a different company, although from memory it doesn’t look like the process has changed).

---

<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:07pm UTC](https://discuss.bluerobotics.com/t/need-help-setting-up-qgroundcontrol-for-qt-or-visual-studio/10765/5 "2021-10-13T12:07:49Z")

</div>

> [@EliotBR](#):
>
> I don’t believe that should be necessary, but 5.15.0 was mentioned in the other thread as well - I’ll try to make some time tomorrow to set up Windows and go through the build process to see if I find any issues with it

@Nigel Following up on this, I ended up discussing and debugging this in more depth with @Mina. Would you mind following the resulting instructions [here](https://discuss.bluerobotics.com/t/problem-building-qgc-in-visual-studio-using-qt/10751/8) and seeing if you still have build issues?

---

<div class="post-metadata">

**Author:** ![Nigel](https://avatars.discourse-cdn.com/v4/letter/n/e47774/32.png) [@Nigel](https://discuss.bluerobotics.com/u/Nigel)\
**Post date:** [October 15, 2021, 8:28am UTC](https://discuss.bluerobotics.com/t/need-help-setting-up-qgroundcontrol-for-qt-or-visual-studio/10765/6 "2021-10-15T08:28:02Z")

</div>

It worked!! Thank you very much.
