Qgroundcontrol compile error with Qt creator

Hi,

I am trying to compile the Qgroundcontrol.pro using Qt creator in Windows 64 bit but I encountered errors.
I was following exactly like the guideline below but still unsuccessful and could not resolve the error.
https://dev.qgroundcontrol.com/master/en/getting_started/

Kits: Desktop Qt 5.15.2 MSVC2019 64bit
Compiler: Microsoft Visual C++ Compiler 16.11.31729.502 (amd64)
Qt version: Qt 5.15.2 MSVC2019 64bit

Compile output:
15:04:43: Running steps for project qgroundcontrol…

15:04:43: Configuration unchanged, skipping qmake step.

15:04:43: Starting: “C:\Qt\Tools\QtCreator\bin\jom\jom.exe”

cl -c -Yc -FpQGroundControl_pch.pch -FoQGroundControl_pch.obj -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:throwingNew -Zc:referenceBinding -Zc:_cplusplus -Zi -MDd -std:c++17 -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 /WX /W3 /wd4005 /wd4290 /wd4267 /wd4100 -EHsc /FdQGroundControl.vc.pdb -DUNICODE -D_UNICODE -DWIN32 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -DWIN64 -DQGC_GST_TAISYNC_DISABLED -DQGC_GST_MICROHARD_DISABLED -D__STDC_LIMIT_MACROS -DDAILY_BUILD -DGIT_VERSION="“d4.2.0-61-g887629c33"” -DEIGEN_MPL2_ONLY -D_TTY_NOWARN -DQGC_DISABLE_PAIRING -DQGC_USE_ARDUPILOTMEGA_MESSAGES -DNOMINMAX -DXZ_DEC_ANY_CHECK -DXZ_USE_CRC64 -DQGC_APPLICATION_NAME="“QGroundControl”" -DQGC_ORG_NAME="“QGroundControl.org”" -DQGC_ORG_DOMAIN="“org.qgroundcontrol”" -DUNITTEST_BUILD -DQT_LOCATION_LIB -DQT_POSITIONINGQUICK_LIB -DQT_QUICKCONTROLS2_LIB -DQT_QUICKWIDGETS_LIB -DQT_QUICK_LIB -DQT_OPENGL_LIB -DQT_SVG_LIB -DQT_CHARTS_LIB -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_GUI_LIB -DQT_CONCURRENT_LIB -DQT_POSITIONING_LIB -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_SQL_LIB -DQT_XML_LIB -DQT_TEXTTOSPEECH_LIB -DQT_SERIALPORT_LIB -DQT_TESTLIB_LIB -DQT_CORE_LIB -DQT_TESTCASE_BUILDDIR="“C:/Users/smh10002218/Desktop/QgroundControl/build-qgroundcontrol-Desktop_Qt_5_15_2_MSVC2019_64bit-Debug”" -DQT_QML_DEBUG - C:\Users\smh10002218\Desktop\QgroundControl\qgroundcontrol\src\stable_headers.h

stable_headers.h

rc /NOLOGO -D_DEBUG -DUNICODE -D_UNICODE -DWIN32 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -DWIN64 -DQGC_GST_TAISYNC_DISABLED -DQGC_GST_MICROHARD_DISABLED -D__STDC_LIMIT_MACROS -DDAILY_BUILD -DGIT_VERSION="“d4.2.0-61-g887629c33"” -DEIGEN_MPL2_ONLY -D_TTY_NOWARN_ -DQGC_DISABLE_PAIRING -DQGC_USE_ARDUPILOTMEGA_MESSAGES -DNOMINMAX -DXZ_DEC_ANY_CHECK -DXZ_USE_CRC64 -DQGC_APPLICATION_NAME="“QGroundControl”" -DQGC_ORG_NAME="“QGroundControl.org”" -DQGC_ORG_DOMAIN="“org.qgroundcontrol”" -DUNITTEST_BUILD -DQT_LOCATION_LIB -DQT_POSITIONINGQUICK_LIB -DQT_QUICKCONTROLS2_LIB -DQT_QUICKWIDGETS_LIB -DQT_QUICK_LIB -DQT_OPENGL_LIB -DQT_SVG_LIB -DQT_CHARTS_LIB -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_GUI_LIB -DQT_CONCURRENT_LIB -DQT_POSITIONING_LIB -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_SQL_LIB -DQT_XML_LIB -DQT_TEXTTOSPEECH_LIB -DQT_SERIALPORT_LIB -DQT_TESTLIB_LIB -DQT_CORE_LIB -DQT_TESTCASE_BUILDDIR="“C:/Users/smh10002218/Desktop/QgroundControl/build-qgroundcontrol-Desktop_Qt_5_15_2_MSVC2019_64bit-Debug”" -DQT_QML_DEBUG -fo QGroundControl_resource.res QGroundControl_resource.rc

‘rc’ is not recognized as an internal or external command,

operable program or batch file.

C:\Users\smh10002218\Desktop\QgroundControl\qgroundcontrol\libs\msinttypes\stdint.h(52): fatal error C1083: Cannot open include file: ‘wchar.h’: No such file or directory

cl -c -nologo -Zc:wchar_t -FS -Zi -MDd -W3 -w44456 -w44457 -w44458 /FdQGroundControl.vc.pdb -DUNICODE -D_UNICODE -DWIN32 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -DWIN64 -DQGC_GST_TAISYNC_DISABLED -DQGC_GST_MICROHARD_DISABLED -D__STDC_LIMIT_MACROS -DDAILY_BUILD -DGIT_VERSION="“d4.2.0-61-g887629c33"” -DEIGEN_MPL2_ONLY -D_TTY_NOWARN_ -DQGC_DISABLE_PAIRING -DQGC_USE_ARDUPILOTMEGA_MESSAGES -DNOMINMAX -DXZ_DEC_ANY_CHECK -DXZ_USE_CRC64 -DQGC_APPLICATION_NAME="“QGroundControl”" -DQGC_ORG_NAME="“QGroundControl.org”" -DQGC_ORG_DOMAIN="“org.qgroundcontrol”" -DUNITTEST_BUILD -DQT_LOCATION_LIB -DQT_POSITIONINGQUICK_LIB -DQT_QUICKCONTROLS2_LIB -DQT_QUICKWIDGETS_LIB -DQT_QUICK_LIB -DQT_OPENGL_LIB -DQT_SVG_LIB -DQT_CHARTS_LIB -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_GUI_LIB -DQT_CONCURRENT_LIB -DQT_POSITIONING_LIB -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_SQL_LIB -DQT_XML_LIB -DQT_TEXTTOSPEECH_LIB -DQT_SERIALPORT_LIB -DQT_TESTLIB_LIB -DQT_CORE_LIB -DQT_TESTCASE_BUILDDIR="“C:/Users/smh10002218/Desktop/QgroundControl/build-qgroundcontrol-Desktop_Qt_5_15_2_MSVC2019_64bit-Debug”" -DQT_QML_DEBUG - @C:\Users\SMH100~1\AppData\Local\Temp\shpopen.obj.4820.1735.jom

shpopen.c

C:\Users\smh10002218\Desktop\QgroundControl\qgroundcontrol\libs\shapelib\shapefil.h(171): fatal error C1083: Cannot open include file: ‘stdio.h’: No such file or directory

cl -c -nologo -Zc:wchar_t -FS -Zi -MDd -W3 -w44456 -w44457 -w44458 /FdQGroundControl.vc.pdb -DUNICODE -D_UNICODE -DWIN32 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -DWIN64 -DQGC_GST_TAISYNC_DISABLED -DQGC_GST_MICROHARD_DISABLED -D__STDC_LIMIT_MACROS -DDAILY_BUILD -DGIT_VERSION="“d4.2.0-61-g887629c33"” -DEIGEN_MPL2_ONLY -D_TTY_NOWARN_ -DQGC_DISABLE_PAIRING -DQGC_USE_ARDUPILOTMEGA_MESSAGES -DNOMINMAX -DXZ_DEC_ANY_CHECK -DXZ_USE_CRC64 -DQGC_APPLICATION_NAME="“QGroundControl”" -DQGC_ORG_NAME="“QGroundControl.org”" -DQGC_ORG_DOMAIN="“org.qgroundcontrol”" -DUNITTEST_BUILD -DQT_LOCATION_LIB -DQT_POSITIONINGQUICK_LIB -DQT_QUICKCONTROLS2_LIB -DQT_QUICKWIDGETS_LIB -DQT_QUICK_LIB -DQT_OPENGL_LIB -DQT_SVG_LIB -DQT_CHARTS_LIB -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_GUI_LIB -DQT_CONCURRENT_LIB -DQT_POSITIONING_LIB -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_SQL_LIB -DQT_XML_LIB -DQT_TEXTTOSPEECH_LIB -DQT_SERIALPORT_LIB -DQT_TESTLIB_LIB -DQT_CORE_LIB -DQT_TESTCASE_BUILDDIR="“C:/Users/smh10002218/Desktop/QgroundControl/build-qgroundcontrol-Desktop_Qt_5_15_2_MSVC2019_64bit-Debug”" -DQT_QML_DEBUG - @C:\Users\SMH100~1\AppData\Local\Temp\safileio.obj.4820.1750.jom

safileio.c

C:\Users\smh10002218\Desktop\QgroundControl\qgroundcontrol\libs\shapelib\shapefil.h(171): fatal error C1083: Cannot open include file: ‘stdio.h’: No such file or directory

cl -c -nologo -Zc:wchar_t -FS -Zi -MDd -W3 -w44456 -w44457 -w44458 /FdQGroundControl.vc.pdb -DUNICODE -D_UNICODE -DWIN32 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -DWIN64 -DQGC_GST_TAISYNC_DISABLED -DQGC_GST_MICROHARD_DISABLED -D__STDC_LIMIT_MACROS -DDAILY_BUILD -DGIT_VERSION="“d4.2.0-61-g887629c33"” -DEIGEN_MPL2_ONLY -D_TTY_NOWARN_ -DQGC_DISABLE_PAIRING -DQGC_USE_ARDUPILOTMEGA_MESSAGES -DNOMINMAX -DXZ_DEC_ANY_CHECK -DXZ_USE_CRC64 -DQGC_APPLICATION_NAME="“QGroundControl”" -DQGC_ORG_NAME="“QGroundControl.org”" -DQGC_ORG_DOMAIN="“org.qgroundcontrol”" -DUNITTEST_BUILD -DQT_LOCATION_LIB -DQT_POSITIONINGQUICK_LIB -DQT_QUICKCONTROLS2_LIB -DQT_QUICKWIDGETS_LIB -DQT_QUICK_LIB -DQT_OPENGL_LIB -DQT_SVG_LIB -DQT_CHARTS_LIB -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_GUI_LIB -DQT_CONCURRENT_LIB -DQT_POSITIONING_LIB -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_SQL_LIB -DQT_XML_LIB -DQT_TEXTTOSPEECH_LIB -DQT_SERIALPORT_LIB -DQT_TESTLIB_LIB -DQT_CORE_LIB -DQT_TESTCASE_BUILDDIR="“C:/Users/smh10002218/Desktop/QgroundControl/build-qgroundcontrol-Desktop_Qt_5_15_2_MSVC2019_64bit-Debug”" -DQT_QML_DEBUG - @C:\Users\SMH100~1\AppData\Local\Temp\xz_dec_stream.obj.4820.1875.jom

xz_dec_stream.c

C:\Users\smh10002218\Desktop\QgroundControl\qgroundcontrol\libs\xz-embedded\userspace\xz_config.h(37): fatal error C1083: Cannot open include file: ‘stdlib.h’: No such file or directory

cl -c -nologo -Zc:wchar_t -FS -Zi -MDd -W3 -w44456 -w44457 -w44458 /FdQGroundControl.vc.pdb -DUNICODE -D_UNICODE -DWIN32 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -DWIN64 -DQGC_GST_TAISYNC_DISABLED -DQGC_GST_MICROHARD_DISABLED -D__STDC_LIMIT_MACROS -DDAILY_BUILD -DGIT_VERSION="“d4.2.0-61-g887629c33"” -DEIGEN_MPL2_ONLY -D_TTY_NOWARN_ -DQGC_DISABLE_PAIRING -DQGC_USE_ARDUPILOTMEGA_MESSAGES -DNOMINMAX -DXZ_DEC_ANY_CHECK -DXZ_USE_CRC64 -DQGC_APPLICATION_NAME="“QGroundControl”" -DQGC_ORG_NAME="“QGroundControl.org”" -DQGC_ORG_DOMAIN="“org.qgroundcontrol”" -DUNITTEST_BUILD -DQT_LOCATION_LIB -DQT_POSITIONINGQUICK_LIB -DQT_QUICKCONTROLS2_LIB -DQT_QUICKWIDGETS_LIB -DQT_QUICK_LIB -DQT_OPENGL_LIB -DQT_SVG_LIB -DQT_CHARTS_LIB -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_GUI_LIB -DQT_CONCURRENT_LIB -DQT_POSITIONING_LIB -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_SQL_LIB -DQT_XML_LIB -DQT_TEXTTOSPEECH_LIB -DQT_SERIALPORT_LIB -DQT_TESTLIB_LIB -DQT_CORE_LIB -DQT_TESTCASE_BUILDDIR="“C:/Users/smh10002218/Desktop/QgroundControl/build-qgroundcontrol-Desktop_Qt_5_15_2_MSVC2019_64bit-Debug”" -DQT_QML_DEBUG -

C:\Users\smh10002218\Desktop\QgroundControl\qgroundcontrol\libs\xz-embedded\userspace\xz_config.h(37): fatal error C1083: Cannot open include file: ‘stdlib.h’: No such file or directory

cl -c -nologo -Zc:wchar_t -FS -Zi -MDd -W3 -w44456 -w44457 -w44458 /FdQGroundControl.vc.pdb -DUNICODE -D_UNICODE -DWIN32 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -DWIN64 -DQGC_GST_TAISYNC_DISABLED -DQGC_GST_MICROHARD_DISABLED -D__STDC_LIMIT_MACROS -DDAILY_BUILD -DGIT_VERSION="“d4.2.0-61-g887629c33"” -DEIGEN_MPL2_ONLY -D_TTY_NOWARN_ -DQGC_DISABLE_PAIRING -DQGC_USE_ARDUPILOTMEGA_MESSAGES -DNOMINMAX -DXZ_DEC_ANY_CHECK -DXZ_USE_CRC64 -DQGC_APPLICATION_NAME="“QGroundControl”" -DQGC_ORG_NAME="“QGroundControl.org”" -DQGC_ORG_DOMAIN="“org.qgroundcontrol”" -DUNITTEST_BUILD -DQT_LOCATION_LIB -DQT_POSITIONINGQUICK_LIB -DQT_QUICKCONTROLS2_LIB -DQT_QUICKWIDGETS_LIB -DQT_QUICK_LIB -DQT_OPENGL_LIB -DQT_SVG_LIB -DQT_CHARTS_LIB -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_GUI_LIB -DQT_CONCURRENT_LIB -DQT_POSITIONING_LIB -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_SQL_LIB -DQT_XML_LIB -DQT_TEXTTOSPEECH_LIB -DQT_SERIALPORT_LIB -DQT_TESTLIB_LIB -DQT_CORE_LIB -DQT_TESTCASE_BUILDDIR="“C:/Users/smh10002218/Desktop/QgroundControl/build-qgroundcontrol-Desktop_Qt_5_15_2_MSVC2019_64bit-Debug”" -DQT_QML_DEBUG -

C:\Users\smh10002218\Desktop\QgroundControl\qgroundcontrol\libs\xz-embedded\userspace\xz_config.h(37): fatal error C1083: Cannot open include file: ‘stdlib.h’: No such file or directory

cl -c -nologo -Zc:wchar_t -FS -Zi -MDd -W3 -w44456 -w44457 -w44458 /FdQGroundControl.vc.pdb -DUNICODE -D_UNICODE -DWIN32 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -DWIN64 -DQGC_GST_TAISYNC_DISABLED -DQGC_GST_MICROHARD_DISABLED -D__STDC_LIMIT_MACROS -DDAILY_BUILD -DGIT_VERSION="“d4.2.0-61-g887629c33"” -DEIGEN_MPL2_ONLY -D_TTY_NOWARN_ -DQGC_DISABLE_PAIRING -DQGC_USE_ARDUPILOTMEGA_MESSAGES -DNOMINMAX -DXZ_DEC_ANY_CHECK -DXZ_USE_CRC64 -DQGC_APPLICATION_NAME="“QGroundControl”" -DQGC_ORG_NAME="“QGroundControl.org”" -DQGC_ORG_DOMAIN="“org.qgroundcontrol”" -DUNITTEST_BUILD -DQT_LOCATION_LIB -DQT_POSITIONINGQUICK_LIB -DQT_QUICKCONTROLS2_LIB -DQT_QUICKWIDGETS_LIB -DQT_QUICK_LIB -DQT_OPENGL_LIB -DQT_SVG_LIB -DQT_CHARTS_LIB -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_GUI_LIB -DQT_CONCURRENT_LIB -DQT_POSITIONING_LIB -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_SQL_LIB -DQT_XML_LIB -DQT_TEXTTOSPEECH_LIB -DQT_SERIALPORT_LIB -DQT_TESTLIB_LIB -DQT_CORE_LIB -DQT_TESTCASE_BUILDDIR="“C:/Users/smh10002218/Desktop/QgroundControl/build-qgroundcontrol-Desktop_Qt_5_15_2_MSVC2019_64bit-Debug”" -DQT_QML_DEBUG -

C:\Users\smh10002218\Desktop\QgroundControl\qgroundcontrol\libs\xz-embedded\userspace\xz_config.h(37): fatal error C1083: Cannot open include file: ‘stdlib.h’: No such file or directory

jom: C:\Users\smh10002218\Desktop\QgroundControl\build-qgroundcontrol-Desktop_Qt_5_15_2_MSVC2019_64bit-Debug\Makefile [QGroundControl_pch.obj] Error 2

jom: C:\Users\smh10002218\Desktop\QgroundControl\build-qgroundcontrol-Desktop_Qt_5_15_2_MSVC2019_64bit-Debug\Makefile [QGroundControl_resource.res] Error 1

jom: C:\Users\smh10002218\Desktop\QgroundControl\build-qgroundcontrol-Desktop_Qt_5_15_2_MSVC2019_64bit-Debug\Makefile [shpopen.obj] Error 2

jom: C:\Users\smh10002218\Desktop\QgroundControl\build-qgroundcontrol-Desktop_Qt_5_15_2_MSVC2019_64bit-Debug\Makefile [safileio.obj] Error 2

jom: C:\Users\smh10002218\Desktop\QgroundControl\build-qgroundcontrol-Desktop_Qt_5_15_2_MSVC2019_64bit-Debug\Makefile [xz_crc32.obj] Error 2

jom: C:\Users\smh10002218\Desktop\QgroundControl\build-qgroundcontrol-Desktop_Qt_5_15_2_MSVC2019_64bit-Debug\Makefile [xz_crc64.obj] Error 2

jom: C:\Users\smh10002218\Desktop\QgroundControl\build-qgroundcontrol-Desktop_Qt_5_15_2_MSVC2019_64bit-Debug\Makefile [xz_dec_lzma2.obj] Error 2

jom: C:\Users\smh10002218\Desktop\QgroundControl\build-qgroundcontrol-Desktop_Qt_5_15_2_MSVC2019_64bit-Debug\Makefile [xz_dec_stream.obj] Error 2

15:04:49: 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”

15:04:49: Elapsed time: 00:06.

I am fairly new and hope someone can point me to the right direction. Appreciate the help!