Expected Behavior
Build the qgroundcontrol.pro in qt creator without errors after cloning from GitHub
Current Behavior
Fail to build QGC on windows
Steps to Reproduce:
Please provide an unambiguous set of steps to reproduce the current behavior
- Build with Qt Creator
System Information
When posting bug reports, include the following information
- Operating System: Windows 11
- QGC Version: master
- QGC build: from ** git clone --recursive -j8 GitHub - mavlink/qgroundcontrol: Cross-platform ground control station for drones (Android, iOS, Mac OS, Linux, Windows) && git submodule update --recursive **
- Qt Creator: 7.0.1 with Default LLVM 64 bit based on MSVC2019
- Flight Controller: N/A
- Autopilot (with version): N/A
Detailed Description
** I am new to this and nor do I code **
The very first error I come across as I run the .pro file without any changes is
#pragma warning(pop, 0)
_C:\Users\Mavrick\Desktop\QGC\qgroundcontrol\src\comm\QGCMAVLink.h:42:
error: #pragma warning expected ')' [-Werror,-Wunknown-pragmas]
#pragma warning(pop, 0)"_
Tried to find what it means - the search ends up empty so changed it to the following based on CPP reference:
#pragma warning(pop)
Next I got jom errors and some developers suggested to use nmake instead but I still keep getting the following exit code:
clang-cl: error: argument unused during compilation: '-MP' [-Werror,-Wunused-command-line-argument]
jom: C:\Users\Mavrick\Desktop\QGC\build-qgroundcontrol-Desktop_Qt_5_15_2_MSVC2019_64bit-Debug\Makefile [QGCMapEngine.obj] Error 1
01:59:25: 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"
Log Files and Screenshots
(Redirecting to latest version of document (master))
:-1: error: argument unused during compilation: '-MP' [-Werror,-Wunused-command-line-argument]
jom: C:\Users\Mavrick\Desktop\QGC\build-qgroundcontrol-Desktop_Qt_5_15_2_MSVC2019_64bit-Debug\Makefile [QGroundControl_pch.obj] Error 1