# Compile error when trying to build QGC

**URL:** <https://discuss.px4.io/t/compile-error-when-trying-to-build-qgc/30243>\
**Category:** Development\
**Created:** [December 30, 2022, 7:16am UTC](https://discuss.px4.io/t/compile-error-when-trying-to-build-qgc/30243 "2022-12-30T07:16:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Manan](https://discuss.px4.io/letter_avatar_proxy/v4/letter/m/51bf81/32.png) [@Manan](https://discuss.px4.io/u/Manan)\
**Post date:** [December 30, 2022, 7:16am UTC](https://discuss.px4.io/t/compile-error-when-trying-to-build-qgc/30243/1 "2022-12-30T07:16:34Z")

</div>

Hii all,

I am new to QGC , I opened up the qgroundcontrol.pro file in qt creator and tried to build and run the code, it successfully build first time after when i rebuild again it shows an error every time.

 ![Screenshot 2022-12-30 122405](https://discuss.px4.io/uploads/default/original/2X/1/1a6b3cf09df5c8401caa5b31ed36f347ba25e683.png)

jom: C:\Users\kusha\source\repos\New folder\Makefile [PlanMasterControllerTest.obj] Error 2  
C:\Users\kusha\source\repos\vyorius\src\comm\MockLink.h(73): error C2039: ‘TypeMock’: is not a member of ‘LinkConfiguration’  
C:\Users\kusha\source\repos\vyorius\src\comm\LinkConfiguration.h(19): note: see declaration of ‘LinkConfiguration’  
C:\Users\kusha\source\repos\vyorius\src\comm\MockLink.h(73): error C2065: ‘TypeMock’: undeclared identifier  
C:\Users\kusha\source\repos\vyorius\src\comm\MockLink.h(73): error C2039: ‘TypeMock’: is not a member of ‘LinkConfiguration’  
C:\Users\kusha\source\repos\vyorius\src\comm\LinkConfiguration.h(19): note: see declaration of ‘LinkConfiguration’  
C:\Users\kusha\source\repos\vyorius\src\comm\MockLink.h(73): error C2065: ‘TypeMock’: undeclared identifier  
Generating Code…  
jom: C:\Users\kusha\source\repos\New folder\Makefile [MissionControllerTest.obj] Error 2  
Generating Code…  
jom: C:\Users\kusha\source\repos\New folder\Makefile [SimpleMissionItemTest.obj] Error 2  
Generating Code…  
jom: C:\Users\kusha\source\repos\New folder\Makefile [CameraCalcTest.obj] Error 2  
Generating Code…  
jom: C:\Users\kusha\source\repos\New folder\Makefile [TransectStyleComplexItemTest.obj] Error 2  
12:45:26: The process “C:\Qt\Tools\QtCreator\bin\jom\jom.exe” exited with code 2.  
Error while building/deploying project qgroundcontrol (kit: Desktop Qt 5.15.2 MSVC2019 64bit)  
When executing step “Make”

Please help me to fix this issue

---

<div class="post-metadata">

**Author:** ![xanthas](https://discuss.px4.io/user_avatar/discuss.px4.io/xanthas/32/15048_2.png) [@xanthas](https://discuss.px4.io/u/xanthas)\
**Post date:** [December 14, 2023, 4:42am UTC](https://discuss.px4.io/t/compile-error-when-trying-to-build-qgc/30243/2 "2023-12-14T04:42:15Z")

</div>

Any Update on the error? @rroche @JulianOes This error seems to be there for a year now. I have been trying to build using different versions of qt creator and qgroundcontrol. None of them seems to be a stable version. And this one is the most common error. Can you please let me know how to get going on development with QGC for custom build.  
This is the error I am getting after I do CONFIG+=installer in qmake additional arguments:

 ![Screenshot from 2023-12-14 10-20-24](https://discuss.px4.io/uploads/default/original/2X/c/c04ed7d2e1ee5c2797fa83787b24084fd2ba7668.jpeg)

---

<div class="post-metadata">

**Author:** ![Karl\_S](https://discuss.px4.io/user_avatar/discuss.px4.io/karl_s/32/14567_2.png) [@Karl\_S](https://discuss.px4.io/u/Karl_S)\
**Post date:** [December 16, 2023, 4:41am UTC](https://discuss.px4.io/t/compile-error-when-trying-to-build-qgc/30243/3 "2023-12-16T04:41:47Z")

</div>

Use the stable version:

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) --single-branch --branch Stable\_V4.3

---

<div class="post-metadata">

**Author:** ![xanthas](https://discuss.px4.io/user_avatar/discuss.px4.io/xanthas/32/15048_2.png) [@xanthas](https://discuss.px4.io/u/xanthas)\
**Post date:** [December 16, 2023, 11:02am UTC](https://discuss.px4.io/t/compile-error-when-trying-to-build-qgc/30243/4 "2023-12-16T11:02:34Z")

</div>

Thank you for the link.
