Error "When executing step "Make" - QT's fun an totally cryptic errors, any ideas?

On a Windows 10 system with Visual Studio 2015 installed. Running QT version 5.11.3 as per the guide.

QT produces the following error during compile time:

jom: C:\build-qgroundcontrol-Desktop_Qt_5_11_3_MSVC2015_32bit-Profile\Makefile [release] Error 2
09:21:37: The process “C:\Qt\Tools\QtCreator\bin\jom.exe” exited with code 2.
Error while building/deploying project qgroundcontrol (kit: Desktop Qt 5.11.3 MSVC2015 32bit)
When executing step “Make”

Any ideas as to what is happening would be very appreciated. Thank you.

Is that the whole build output?

JulianOes - Thank you for looking at this. Here is the complete compile output from the build attempt:

11:18:24: Running steps for project qgroundcontrol…
11:18:24: Configuration unchanged, skipping qmake step.
11:18:24: Starting: “C:\Qt\Tools\QtCreator\bin\jom.exe”
C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile.Release

rc /NOLOGO -DUNICODE -D_UNICODE -DWIN32 -D__STDC_LIMIT_MACROS -DQGC_GST_TAISYNC_ENABLED -DQGC_GST_MICROHARD_ENABLED -DGIT_VERSION="“Development master:0d91cbbcd 2019-07-16 11:50:54 -0700"” -DEIGEN_MPL2_ONLY -D_TTY_NOWARN_ -DQT_NO_DEBUG -DQT_MESSAGELOGCONTEXT -DQGC_USE_ARDUPILOTMEGA_MESSAGES -DNOMINMAX -DQGC_APPLICATION_NAME="“QGroundControl”" -DQGC_ORG_NAME="“QGroundControl.org”" -DQGC_ORG_DOMAIN="“org.qgroundcontrol”" -DQT_NO_DEBUG -DQT_LOCATION_LIB -DQT_POSITIONINGQUICK_LIB -DQT_QUICKWIDGETS_LIB -DQT_QUICK_LIB -DQT_OPENGL_LIB -DQT_SVG_LIB -DQT_PRINTSUPPORT_LIB -DQT_CHARTS_LIB -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_GUI_LIB -DQT_CONCURRENT_LIB -DQT_POSITIONING_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:/build-qgroundcontrol-Desktop_Qt_5_11_3_MSVC2015_32bit-Profile”" -DQT_QML_DEBUG -DNDEBUG -fo C:\build-qgroundcontrol-Desktop_Qt_5_11_3_MSVC2015_32bit-Profile\obj\QGroundControl_resource.res QGroundControl_resource.rc

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

operable program or batch file.

jom: C:\build-qgroundcontrol-Desktop_Qt_5_11_3_MSVC2015_32bit-Profile\Makefile.Release [C:\build-qgroundcontrol-Desktop_Qt_5_11_3_MSVC2015_32bit-Profile\obj\QGroundControl_resource.res] Error 1

cl -c -FIstable_headers.h -Yustable_headers.h -Fprelease\QGroundControl_pch.pch -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:throwingNew -O2 -Zi -MD /Gy /Zo -GL -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 /W3 /wd4996 /wd4005 /wd4290 -EHsc /Fdobj\QGroundControl.vc.pdb -DUNICODE -D_UNICODE -DWIN32 -D__STDC_LIMIT_MACROS -DQGC_GST_TAISYNC_ENABLED -DQGC_GST_MICROHARD_ENABLED -DGIT_VERSION="“Development master:0d91cbbcd 2019-07-16 11:50:54 -0700"” -DEIGEN_MPL2_ONLY -D_TTY_NOWARN_ -DQT_NO_DEBUG -DQT_MESSAGELOGCONTEXT -DQGC_USE_ARDUPILOTMEGA_MESSAGES -DNOMINMAX -DQGC_APPLICATION_NAME="“QGroundControl”" -DQGC_ORG_NAME="“QGroundControl.org”" -DQGC_ORG_DOMAIN="“org.qgroundcontrol”" -DQT_NO_DEBUG -DQT_LOCATION_LIB -DQT_POSITIONINGQUICK_LIB -DQT_QUICKWIDGETS_LIB -DQT_QUICK_LIB -DQT_OPENGL_LIB -DQT_SVG_LIB -DQT_PRINTSUPPORT_LIB -DQT_CHARTS_LIB -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_GUI_LIB -DQT_CONCURRENT_LIB -DQT_POSITIONING_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:/build-qgroundcontrol-Desktop_Qt_5_11_3_MSVC2015_32bit-Profile”" -DQT_QML_DEBUG -DNDEBUG -IC:\QGC -I. -IC:\Qt\5.11.3\msvc2015\include -IC:\Qt\5.11.3\msvc2015\include\QtLocation -IC:\QGC\libs\lib\msinttypes -IC:\QGC\libs\mavlink\include\mavlink\v2.0 -IC:\QGC\libs\mavlink\include\mavlink\v2.0\ardupilotmega -IC:\QGC\libs\eigen -IC:\QGC\libs\shapelib -IC:\QGC\libs\lib\sdl2\msvc\include -IC:\QGC -Iinclude/ui -IC:\QGC\src -IC:\QGC\src\api -IC:\QGC\src\AnalyzeView -IC:\QGC\src\Camera -IC:\QGC\src\AutoPilotPlugins -IC:\QGC\src\FlightDisplay -IC:\QGC\src\FlightMap -IC:\QGC\src\FlightMap\Widgets -IC:\QGC\src\FollowMe -IC:\QGC\src\GPS -IC:\QGC\src\Joystick -IC:\QGC\src\PlanView -IC:\QGC\src\MissionManager -IC:\QGC\src\PositionManager -IC:\QGC\src\QmlControls -IC:\QGC\src\QtLocationPlugin -IC:\QGC\src\QtLocationPlugin\QMLControl -IC:\QGC\src\Settings -IC:\QGC\src\Terrain -IC:\QGC\src\VehicleSetup -IC:\QGC\src\ViewWidgets -IC:\QGC\src\Audio -IC:\QGC\src\comm -Isrc/input -Isrc/lib/qmapcontrol -IC:\QGC\src\uas -IC:\QGC\src\ui -Isrc/ui/linechart -Isrc/ui/map -Isrc/ui/mapdisplay -Isrc/ui/mission -Isrc/ui/px4_configuration -IC:\QGC\src\ui\toolbar -Isrc/ui/uas -IC:\QGC\src\AutoPilotPlugins\Common -IC:\QGC\src\FirmwarePlugin -IC:\QGC\src\Vehicle -IC:\QGC\src\VehicleSetup -IC:\QGC\src\AutoPilotPlugins\APM -IC:\QGC\src\FirmwarePlugin\APM -IC:\QGC\src\AutoPilotPlugins\PX4 -IC:\QGC\src\FirmwarePlugin\PX4 -IC:\QGC\src\FactSystem -IC:\QGC\src\FactSystem\FactControls -IC:\QGC\src\Taisync -IC:\QGC\src\Microhard -IC:\QGC\src\Airmap\dummy -IC:\QGC\src\VideoStreaming -IC:\Qt\5.11.3\msvc2015\include\QtLocation\5.11.3 -IC:\Qt\5.11.3\msvc2015\include\QtLocation\5.11.3\QtLocation -IC:\Qt\5.11.3\msvc2015\include\QtPositioningQuick\5.11.3 -IC:\Qt\5.11.3\msvc2015\include\QtPositioningQuick\5.11.3\QtPositioningQuick -IC:\Qt\5.11.3\msvc2015\include\QtPositioningQuick -IC:\Qt\5.11.3\msvc2015\include\QtQuickWidgets -IC:\Qt\5.11.3\msvc2015\include\QtQuick\5.11.3 -IC:\Qt\5.11.3\msvc2015\include\QtQuick\5.11.3\QtQuick -IC:\Qt\5.11.3\msvc2015\include\QtQuick -IC:\Qt\5.11.3\msvc2015\include\QtOpenGL -IC:\Qt\5.11.3\msvc2015\include\QtSvg -IC:\Qt\5.11.3\msvc2015\include\QtPrintSupport -IC:\Qt\5.11.3\msvc2015\include\QtCharts -IC:\Qt\5.11.3\msvc2015\include\QtWidgets -IC:\Qt\5.11.3\msvc2015\include\QtMultimedia -IC:\Qt\5.11.3\msvc2015\include\QtGui\5.11.3 -IC:\Qt\5.11.3\msvc2015\include\QtGui\5.11.3\QtGui -IC:\Qt\5.11.3\msvc2015\include\QtGui -IC:\Qt\5.11.3\msvc2015\include\QtANGLE -IC:\Qt\5.11.3\msvc2015\include\QtConcurrent -IC:\Qt\5.11.3\msvc2015\include\QtPositioning\5.11.3 -IC:\Qt\5.11.3\msvc2015\include\QtPositioning\5.11.3\QtPositioning -IC:\Qt\5.11.3\msvc2015\include\QtPositioning -IC:\Qt\5.11.3\msvc2015\include\QtQml\5.11.3 -IC:\Qt\5.11.3\msvc2015\include\QtQml\5.11.3\QtQml -IC:\Qt\5.11.3\msvc2015\include\QtQml -IC:\Qt\5.11.3\msvc2015\include\QtNetwork -IC:\Qt\5.11.3\msvc2015\include\QtSql -IC:\Qt\5.11.3\msvc2015\include\QtXml -IC:\Qt\5.11.3\msvc2015\include\QtTextToSpeech -IC:\Qt\5.11.3\msvc2015\include\QtSerialPort -IC:\Qt\5.11.3\msvc2015\include\QtTest -IC:\Qt\5.11.3\msvc2015\include\QtCore\5.11.3 -IC:\Qt\5.11.3\msvc2015\include\QtCore\5.11.3\QtCore -IC:\Qt\5.11.3\msvc2015\include\QtCore -Imoc -I\include -IC:\Qt\5.11.3\msvc2015\mkspecs\win32-msvc -Foobj\ @C:\WINDOWS\QGCSettings.obj.3688.2562.jom
QGCSettings.cc
jom: C:\build-qgroundcontrol-Desktop_Qt_5_11_3_MSVC2015_32bit-Profile\Makefile [release] Error 2
11:18:37: The process “C:\Qt\Tools\QtCreator\bin\jom.exe” exited with code 2.
Error while building/deploying project qgroundcontrol (kit: Desktop Qt 5.11.3 MSVC2015 32bit)
When executing step “Make”
11:18:37: Elapsed time: 00:14.

Have you read through these? https://www.google.com/search?q=‘rc’+is+not+recognized+as+an+internal+or+external+command%2Coperable+program+or+batch+file.+qt

JulianOes - Thank you for pointing me in the right direction.

‘rc’ is not recognized as an internal or external command, operable program or batch file.

Honestly that is a pretty clear error, but not one I expected. After learning more about QT Creator
it becomes apparent as to how and why this error could occur. I was able to get the error resolved and my build completed. I am going to post a write up to help anyone else that sees this issue or one similar.

1 Like

Linking the fix: Fix for ‘rc’ is not recognized and “Error while building when executing step “Make” (Full Fix)