# Hope Someone Can Help Me – Failed to Compile QGC Master on Windows 10 with Qt 6.8.2

**URL:** <https://discuss.px4.io/t/hope-someone-can-help-me-failed-to-compile-qgc-master-on-windows-10-with-qt-6-8-2/44174>\
**Category:** QGroundControl\
**Created:** [March 5, 2025, 7:23am UTC](https://discuss.px4.io/t/hope-someone-can-help-me-failed-to-compile-qgc-master-on-windows-10-with-qt-6-8-2/44174 "2025-03-05T07:23:03Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![s5377689](https://discuss.px4.io/user_avatar/discuss.px4.io/s5377689/32/18697_2.png) [@s5377689](https://discuss.px4.io/u/s5377689)\
**Post date:** [March 5, 2025, 7:23am UTC](https://discuss.px4.io/t/hope-someone-can-help-me-failed-to-compile-qgc-master-on-windows-10-with-qt-6-8-2/44174/1 "2025-03-05T07:23:03Z")

</div>

I ran the following commands:  
git clone --recursive -j8 [GitHub - mavlink/qgroundcontrol: Cross-platform ground control station for drones (Android, iOS, Mac OS, Linux, Windows)](https://github.com/mavlink/qgroundcontrol.git)  
cd D:\qgroundcontrol  
git submodule update --recursive

I have installed:

- `gstreamer-1.0-devel-msvc-x86_64-1.18.6.msi`
- `gstreamer-1.0-msvc-x86_64-1.18.6.msi`

System environment variable:

- **GSTREAMER\_1\_0\_ROOT\_MSVC\_X86\_64** = `C:\gstreamer\1.0\msvc_x86_64`  
 ![image](https://discuss.px4.io/uploads/default/original/3X/a/5/a5798d0d77b539efa2d9bdfca3517393c25aaaf9.png)  
I keep failing to compile QGC Master. I would really appreciate any help.

---

<div class="post-metadata">

**Author:** ![bylla\_anusha](https://discuss.px4.io/user_avatar/discuss.px4.io/bylla_anusha/32/17961_2.png) [@bylla\_anusha](https://discuss.px4.io/u/bylla_anusha)\
**Post date:** [March 6, 2025, 8:44am UTC](https://discuss.px4.io/t/hope-someone-can-help-me-failed-to-compile-qgc-master-on-windows-10-with-qt-6-8-2/44174/3 "2025-03-06T08:44:38Z")

</div>

Hii, There’s no need to install GStreamer separately, as it is automatically included with QGroundControl.

---

<div class="post-metadata">

**Author:** ![s5377689](https://discuss.px4.io/user_avatar/discuss.px4.io/s5377689/32/18697_2.png) [@s5377689](https://discuss.px4.io/u/s5377689)\
**Post date:** [March 7, 2025, 12:35am UTC](https://discuss.px4.io/t/hope-someone-can-help-me-failed-to-compile-qgc-master-on-windows-10-with-qt-6-8-2/44174/4 "2025-03-07T00:35:48Z")

</div>

If not installed, an error will occur.

C:\Program Files\CMake\share\cmake-3.31\Modules\FindPackageHandleStandardArgs.cmake:233: error: Could NOT find PkgConfig (missing: PKG\_CONFIG\_EXECUTABLE)

```
Reason given by package: The command
  "C:/gstreamer/1.0/msvc_x86_64/bin/pkg-config.exe" --dont-define-prefix --define-variable=prefix=C:/gstreamer/1.0/msvc_x86_64 --define-variable=libdir=C:/gstreamer/1.0/msvc_x86_64/lib --define-variable=includedir=C:/gstreamer/1.0/msvc_x86_64/include --version
failed with output:

```

---

<div class="post-metadata">

**Author:** ![bylla\_anusha](https://discuss.px4.io/user_avatar/discuss.px4.io/bylla_anusha/32/17961_2.png) [@bylla\_anusha](https://discuss.px4.io/u/bylla_anusha)\
**Post date:** [March 7, 2025, 10:41am UTC](https://discuss.px4.io/t/hope-someone-can-help-me-failed-to-compile-qgc-master-on-windows-10-with-qt-6-8-2/44174/5 "2025-03-07T10:41:31Z")

</div>

![Screenshot (22)](https://discuss.px4.io/uploads/default/original/3X/3/4/342730e763d1b7d0b1d4fee88689c0070e40c862.png)

You don’t need to add those paths to the environment variable. Instead, just delete the QGC and then re-clone it.

---

<div class="post-metadata">

**Author:** ![s5377689](https://discuss.px4.io/user_avatar/discuss.px4.io/s5377689/32/18697_2.png) [@s5377689](https://discuss.px4.io/u/s5377689)\
**Post date:** [March 8, 2025, 9:34am UTC](https://discuss.px4.io/t/hope-someone-can-help-me-failed-to-compile-qgc-master-on-windows-10-with-qt-6-8-2/44174/6 "2025-03-08T09:34:17Z")

</div>

I need the Windows version, not the Android version.  
I am using MSVC 2022.

---

<div class="post-metadata">

**Author:** ![bylla\_anusha](https://discuss.px4.io/user_avatar/discuss.px4.io/bylla_anusha/32/17961_2.png) [@bylla\_anusha](https://discuss.px4.io/u/bylla_anusha)\
**Post date:** [March 10, 2025, 12:22pm UTC](https://discuss.px4.io/t/hope-someone-can-help-me-failed-to-compile-qgc-master-on-windows-10-with-qt-6-8-2/44174/7 "2025-03-10T12:22:54Z")

</div>

Apologies for the confusion earlier. I originally mentioned the error while working on Android, but I encountered the same issue while working on Windows as well. By the way, did you download the GStreamer development installer?

---

<div class="post-metadata">

**Author:** ![s5377689](https://discuss.px4.io/user_avatar/discuss.px4.io/s5377689/32/18697_2.png) [@s5377689](https://discuss.px4.io/u/s5377689)\
**Post date:** [March 10, 2025, 12:39pm UTC](https://discuss.px4.io/t/hope-someone-can-help-me-failed-to-compile-qgc-master-on-windows-10-with-qt-6-8-2/44174/8 "2025-03-10T12:39:35Z")

</div>

Yes, I downloaded and installed gstreamer-1.0-devel-msvc-x86\_64-1.18.6.msi and gstreamer-1.0-msvc-x86\_64-1.18.6.msi. I also tried versions 1.22.6 and 1.24.6, but none of them worked.

---

<div class="post-metadata">

**Author:** ![bylla\_anusha](https://discuss.px4.io/user_avatar/discuss.px4.io/bylla_anusha/32/17961_2.png) [@bylla\_anusha](https://discuss.px4.io/u/bylla_anusha)\
**Post date:** [March 13, 2025, 8:42am UTC](https://discuss.px4.io/t/hope-someone-can-help-me-failed-to-compile-qgc-master-on-windows-10-with-qt-6-8-2/44174/9 "2025-03-13T08:42:17Z")

</div>

If you know where the GStreamer folder is located, simply add to your system’s environment variable **PATH**.

“E:\gstreamer\1.0\msvc\_x86\_64\bin” like this and this is my path.

---

<div class="post-metadata">

**Author:** ![bylla\_anusha](https://discuss.px4.io/user_avatar/discuss.px4.io/bylla_anusha/32/17961_2.png) [@bylla\_anusha](https://discuss.px4.io/u/bylla_anusha)\
**Post date:** [March 13, 2025, 8:43am UTC](https://discuss.px4.io/t/hope-someone-can-help-me-failed-to-compile-qgc-master-on-windows-10-with-qt-6-8-2/44174/10 "2025-03-13T08:43:54Z")

</div>

trust me it will work.

---

<div class="post-metadata">

**Author:** ![s5377689](https://discuss.px4.io/user_avatar/discuss.px4.io/s5377689/32/18697_2.png) [@s5377689](https://discuss.px4.io/u/s5377689)\
**Post date:** [March 13, 2025, 8:54am UTC](https://discuss.px4.io/t/hope-someone-can-help-me-failed-to-compile-qgc-master-on-windows-10-with-qt-6-8-2/44174/11 "2025-03-13T08:54:45Z")

</div>

I have already added the environment variable.  
If the system cannot find GStreamer, it will show this error: **missing: PKG\_CONFIG\_EXECUTABLE**.

---

<div class="post-metadata">

**Author:** ![bylla\_anusha](https://discuss.px4.io/user_avatar/discuss.px4.io/bylla_anusha/32/17961_2.png) [@bylla\_anusha](https://discuss.px4.io/u/bylla_anusha)\
**Post date:** [March 13, 2025, 9:21am UTC](https://discuss.px4.io/t/hope-someone-can-help-me-failed-to-compile-qgc-master-on-windows-10-with-qt-6-8-2/44174/12 "2025-03-13T09:21:40Z")

</div>

![Screenshot (79)](https://discuss.px4.io/uploads/default/original/3X/6/f/6f0419a9f59124409d229d7050ec8591733d4e64.png)

this one is present or not in your folder?

---

<div class="post-metadata">

**Author:** ![bylla\_anusha](https://discuss.px4.io/user_avatar/discuss.px4.io/bylla_anusha/32/17961_2.png) [@bylla\_anusha](https://discuss.px4.io/u/bylla_anusha)\
**Post date:** [March 13, 2025, 10:24am UTC](https://discuss.px4.io/t/hope-someone-can-help-me-failed-to-compile-qgc-master-on-windows-10-with-qt-6-8-2/44174/13 "2025-03-13T10:24:49Z")

</div>

- Apply the Changes:
- Click **OK** in all windows to confirm the changes.
- Make sure to close and reopen any command prompt or terminal windows for the changes to take effect.
- **Verify the Update:**
- Open a **Command Prompt** and run the command:

pkg-config --version

You should see the version number, confirming that `pkg-config` is correctly set up. clean and rebuild.  
After ensuring that `pkg-config` is available and configured correctly, try running your CMake build again. If the issue was related to `pkg-config` not being found, it should now be resolved.

---

<div class="post-metadata">

**Author:** ![s5377689](https://discuss.px4.io/user_avatar/discuss.px4.io/s5377689/32/18697_2.png) [@s5377689](https://discuss.px4.io/u/s5377689)\
**Post date:** [March 14, 2025, 12:44am UTC](https://discuss.px4.io/t/hope-someone-can-help-me-failed-to-compile-qgc-master-on-windows-10-with-qt-6-8-2/44174/14 "2025-03-14T00:44:54Z")

</div>

My issue is with the initial problem, not with pkg-config not being found. The error about pkg-config only appears when GStreamer is not installed. I just want to emphasize that I have installed GStreamer, which is why I am not seeing the “pkg-config not found” error.  
I already downloaded and installed gstreamer-1.0-devel-msvc-x86\_64-1.18.6.msi and gstreamer-1.0-msvc-x86\_64-1.18.6.msi. I also tried versions 1.22.6 and 1.24.6, but none of them worked.
