Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Unable to build QT:Mqtt module



  • I have cloned the the source via git://code.qt.io/qt/qtmqtt.git.

    I'm using Qt Creator 4.12.0
    Based on Qt 5.14.2 (MSVC 2017, 32 bit)
    Kits
    0a79055f-c3c2-4f65-a189-ea66918d025a-image.png

    This is the error

    e0416c4f-d318-4e65-8bc7-47d4290ffda9-image.png

    This is in the general messages

    Project ERROR: Unknown module(s) in QT: mqtt
    Project MESSAGE: perl -w C:\Qt\5.14.2\msvc2017_64\bin\syncqt.pl -module QtMqtt -version 5.15.0 -outdir "C:/New folder (3)/build-qtmqtt-Desktop_Qt_5_14_2_MSVC2017_64bit-Debug" -builddir "C:/New folder (3)/build-qtmqtt-Desktop_Qt_5_14_2_MSVC2017_64bit-Debug" C:/New folder (3)/qtmqtt

    Has anyone experienced this issue? Thank you in advance.


  • Qt Champions 2019

    @adi619 Please post error messages as text not screen shots.
    Try to put your build folder in a folder without spaces (currently you have "c:\New folder (3)"), such folders often cause problems.



  • 15:05:16: Running steps for project qtmqtt...
    15:05:17: Starting: "C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe" "C:\New folder (3)\qtmqtt\qtmqtt.pro" -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    Info: creating stash file C:\New folder (3)\build-qtmqtt-Desktop_Qt_5_14_2_MSVC2017_64bit-Debug.qmake.stash
    Info: creating cache file C:\New folder (3)\build-qtmqtt-Desktop_Qt_5_14_2_MSVC2017_64bit-Debug.qmake.cache
    15:05:17: The process "C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe" exited normally.
    15:05:17: Starting: "C:\Qt\Tools\QtCreator\bin\jom.exe" -f "C:/New folder (3)/build-qtmqtt-Desktop_Qt_5_14_2_MSVC2017_64bit-Debug/Makefile" qmake_all

    jom 1.1.3 - empower your cores

    cd src\ && C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile "C:\New folder (3)\qtmqtt\src\src.pro" -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    cd src\ && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile qmake_all
    cd mqtt\ && C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile "C:\New folder (3)\qtmqtt\src\mqtt\mqtt.pro" -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    

    Project MESSAGE: perl -w C:\Qt\5.14.2\msvc2017_64\bin\syncqt.pl -module QtMqtt -version 5.15.0 -outdir "C:/New folder (3)/build-qtmqtt-Desktop_Qt_5_14_2_MSVC2017_64bit-Debug" -builddir "C:/New folder (3)/build-qtmqtt-Desktop_Qt_5_14_2_MSVC2017_64bit-Debug" C:/New folder (3)/qtmqtt
    Use of uninitialized value $directory in concatenation (.) or string at C:\Qt\5.14.2\msvc2017_64\bin\syncqt.pl line 691.
    fileparse(): need a valid pathname at C:\Qt\5.14.2\msvc2017_64\bin\syncqt.pl line 694.
    Project ERROR: Failed to run: perl -w C:\Qt\5.14.2\msvc2017_64\bin\syncqt.pl -module QtMqtt -version 5.15.0 -outdir "C:/New folder (3)/build-qtmqtt-Desktop_Qt_5_14_2_MSVC2017_64bit-Debug" -builddir "C:/New folder (3)/build-qtmqtt-Desktop_Qt_5_14_2_MSVC2017_64bit-Debug" C:/New folder (3)/qtmqtt
    jom: C:\New folder (3)\build-qtmqtt-Desktop_Qt_5_14_2_MSVC2017_64bit-Debug\src\Makefile [sub-mqtt-qmake_all] Error 3
    jom: C:\New folder (3)\build-qtmqtt-Desktop_Qt_5_14_2_MSVC2017_64bit-Debug\Makefile [sub-src-qmake_all] Error 2
    15:05:19: The process "C:\Qt\Tools\QtCreator\bin\jom.exe" exited with code 2.
    Error while building/deploying project qtmqtt (kit: Desktop Qt 5.14.2 MSVC2017 64bit)
    When executing step "qmake"


  • Lifetime Qt Champion

    Hi,

    You should avoid paths with spaces and special characters like the parenthesis.



  • @jsulm 18:58:54: Running steps for project qtmqtt...
    18:58:54: Starting: "C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe" C:\qtmqtttest\qtmqtt\qtmqtt.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    Info: creating stash file C:\qtmqtttest\build-qtmqtt-Desktop_Qt_5_14_2_MSVC2017_64bit-Debug.qmake.stash
    Info: creating cache file C:\qtmqtttest\build-qtmqtt-Desktop_Qt_5_14_2_MSVC2017_64bit-Debug.qmake.cache
    18:58:55: The process "C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe" exited normally.
    18:58:55: Starting: "C:\Qt\Tools\QtCreator\bin\jom.exe" -f C:/qtmqtttest/build-qtmqtt-Desktop_Qt_5_14_2_MSVC2017_64bit-Debug/Makefile qmake_all

    jom 1.1.3 - empower your cores

    cd src\ && C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile C:\qtmqtttest\qtmqtt\src\src.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    cd src\ && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile qmake_all
    cd mqtt\ && C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile C:\qtmqtttest\qtmqtt\src\mqtt\mqtt.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    

    Project MESSAGE: perl -w C:\Qt\5.14.2\msvc2017_64\bin\syncqt.pl -module QtMqtt -version 5.15.0 -outdir C:/qtmqtttest/build-qtmqtt-Desktop_Qt_5_14_2_MSVC2017_64bit-Debug -builddir C:/qtmqtttest/build-qtmqtt-Desktop_Qt_5_14_2_MSVC2017_64bit-Debug C:/qtmqtttest/qtmqtt
    <srcbase> = C:/qtmqtttest/qtmqtt
    <bldbase> = C:/qtmqtttest/build-qtmqtt-Desktop_Qt_5_14_2_MSVC2017_64bit-Debug
    <outbase> = C:/qtmqtttest/build-qtmqtt-Desktop_Qt_5_14_2_MSVC2017_64bit-Debug
    QtMqtt: created fwd-include header(s) for <srcbase>/src/mqtt/ { qmqttauthenticationproperties.h (2), qmqttclient.h (2), qmqttclient_p.h (1), qmqttconnection_p.h (1), qmqttconnectionproperties.h (4), qmqttconnectionproperties_p.h (1), qmqttcontrolpacket_p.h (1), qmqttglobal.h (1), qmqttmessage.h (2), qmqttmessage_p.h (1), qmqttpublishproperties.h (3), qmqttpublishproperties_p.h (1), qmqttsubscription.h (2), qmqttsubscription_p.h (1), qmqttsubscriptionproperties.h (3), qmqtttopicfilter.h (2), qmqtttopicname.h (2), qmqtttype.h (3) }
    QtMqtt: created version header
    QtMqtt: created master header
    QtMqtt: created headers.pri file
    cd mqtt\ && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile qmake_all
    cd examples\ && C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile C:\qtmqtttest\qtmqtt\examples\examples.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    cd examples\ && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile qmake_all
    cd tests\ && C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile C:\qtmqtttest\qtmqtt\tests\tests.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    cd mqtt\ && C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile C:\qtmqtttest\qtmqtt\examples\mqtt\mqtt.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    cd mqtt\ && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile qmake_all
    cd consolepubsub\ && C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile C:\qtmqtttest\qtmqtt\examples\mqtt\consolepubsub\consolepubsub.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    cd consolepubsub\ && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile qmake_all
    C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile.qtmqtt_pub C:\qtmqtttest\qtmqtt\examples\mqtt\consolepubsub\qtmqtt_pub.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile.qtmqtt_pub qmake_all
    C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile.qtmqtt_sub C:\qtmqtttest\qtmqtt\examples\mqtt\consolepubsub\qtmqtt_sub.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    cd quickpublication\ && C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile C:\qtmqtttest\qtmqtt\examples\mqtt\quickpublication\quickpublication.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    cd simpleclient\ && C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile C:\qtmqtttest\qtmqtt\examples\mqtt\simpleclient\simpleclient.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    cd quicksubscription\ && C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile C:\qtmqtttest\qtmqtt\examples\mqtt\quicksubscription\quicksubscription.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    cd quickpublication\ && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile qmake_all
    cd simpleclient\ && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile qmake_all
    C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile.qtmqtt_sub qmake_all
    cd subscriptions\ && C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile C:\qtmqtttest\qtmqtt\examples\mqtt\subscriptions\subscriptions.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    cd subscriptions\ && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile qmake_all
    cd quicksubscription\ && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile qmake_all
    cd tests\ && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile qmake_all
    cd auto\ && C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile C:\qtmqtttest\qtmqtt\tests\auto\auto.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    cd auto\ && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile qmake_all
    cd benchmarks\ && C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile C:\qtmqtttest\qtmqtt\tests\benchmarks\benchmarks.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    cd cmake\ && C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile C:\qtmqtttest\qtmqtt\tests\auto\cmake\cmake.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    cd cmake\ && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile qmake_all
    cd conformance\ && C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile C:\qtmqtttest\qtmqtt\tests\auto\conformance\conformance.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    cd qmqttconnectionproperties\ && C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile C:\qtmqtttest\qtmqtt\tests\auto\qmqttconnectionproperties\qmqttconnectionproperties.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    cd qmqttclient\ && C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile C:\qtmqtttest\qtmqtt\tests\auto\qmqttclient\qmqttclient.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    cd qmqttlastwillproperties\ && C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile C:\qtmqtttest\qtmqtt\tests\auto\qmqttlastwillproperties\qmqttlastwillproperties.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    cd qmqttcontrolpacket\ && C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile C:\qtmqtttest\qtmqtt\tests\auto\qmqttcontrolpacket\qmqttcontrolpacket.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    cd qmqttconnectionproperties\ && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile qmake_all
    cd benchmarks\ && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile qmake_all
    cd qmqttclient\ && C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile C:\qtmqtttest\qtmqtt\tests\benchmarks\qmqttclient\qmqttclient.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    cd qmqttclient\ && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile qmake_all
    cd qmqttclient\ && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile qmake_all
    cd qmqttlastwillproperties\ && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile qmake_all
    cd qmqttcontrolpacket\ && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile qmake_all
    cd qmqttpublishproperties\ && C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile C:\qtmqtttest\qtmqtt\tests\auto\qmqttpublishproperties\qmqttpublishproperties.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    cd qmqtttopicname\ && C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile C:\qtmqtttest\qtmqtt\tests\auto\qmqtttopicname\qmqtttopicname.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    cd qmqttsubscription\ && C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile C:\qtmqtttest\qtmqtt\tests\auto\qmqttsubscription\qmqttsubscription.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    cd qmqttsubscriptionproperties\ && C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile C:\qtmqtttest\qtmqtt\tests\auto\qmqttsubscriptionproperties\qmqttsubscriptionproperties.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    cd qmqtttopicfilter\ && C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile C:\qtmqtttest\qtmqtt\tests\auto\qmqtttopicfilter\qmqtttopicfilter.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    cd qmqtttopicname\ && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile qmake_all
    cd qmqttpublishproperties\ && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile qmake_all
    cd qmqttsubscription\ && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile qmake_all
    cd qmqttsubscriptionproperties\ && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile qmake_all
    cd qmqtttopicfilter\ && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile qmake_all
    cd conformance\ && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile qmake_all
    cd websocketsubscription\ && C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile C:\qtmqtttest\qtmqtt\examples\mqtt\websocketsubscription\websocketsubscription.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    cd websocketsubscription\ && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile qmake_all
    18:59:41: The process "C:\Qt\Tools\QtCreator\bin\jom.exe" exited normally.
    18:59:41: Starting: "C:\Qt\Tools\QtCreator\bin\jom.exe"
    cd src\ && ( if not exist Makefile C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile C:\qtmqtttest\qtmqtt\src\src.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug" ) && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile
    cd mqtt\ && ( if not exist Makefile C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile C:\qtmqtttest\qtmqtt\src\mqtt\mqtt.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug" ) && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile
    C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile.Debug all
    cl -c -Yc -Fp.pch\debug\Qt5Mqttd_pch.pch -Fo.pch\debug\Qt5Mqttd_pch.obj -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:__cplusplus -Zi -MDd -std:c++17 -utf-8 /wd4530 /wd4577 -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 /Fd.obj\debug\Qt5Mqttd.vc.pdb -DUNICODE -D_UNICODE -DWIN32 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -DWIN64 -DQT_NO_LINKED_LIST -DQT_NO_FOREACH -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_MQTT_LIB -DQT_BUILDING_QT -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_QML_DEBUG -DQT_NO_EXCEPTIONS -DQT_NETWORK_LIB -DQT_CORE_LIB -D_WINDLL -IC:\qtmqtttest\qtmqtt\src\mqtt -I. -I....\include -I....\include\QtMqtt -I....\include\QtMqtt\5.15.0 -I....\include\QtMqtt\5.15.0\QtMqtt -Itmp -IC:\Qt\5.14.2\msvc2017_64\include -IC:\Qt\5.14.2\msvc2017_64\include\QtNetwork -IC:\Qt\5.14.2\msvc2017_64\include\QtCore\5.14.2 -IC:\Qt\5.14.2\msvc2017_64\include\QtCore\5.14.2\QtCore -IC:\Qt\5.14.2\msvc2017_64\include\QtCore -I.moc\debug -IC:\openssl\include -IC:\Utils\my_sql\mysql-5.7.25-winx64\include -IC:\Utils\postgresql\pgsql\include -IC:\Qt\5.14.2\msvc2017_64\mkspecs\win32-msvc -TP ....\include\QtMqtt\QtMqttDepends
    QtMqttDepends
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.25.28610\include\cstddef(12): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
    rc /NOLOGO -D_DEBUG -DUNICODE -D_UNICODE -DWIN32 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -DWIN64 -DQT_NO_LINKED_LIST -DQT_NO_FOREACH -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_MQTT_LIB -DQT_BUILDING_QT -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_QML_DEBUG -DQT_NO_EXCEPTIONS -DQT_NETWORK_LIB -DQT_CORE_LIB -D_WINDLL -fo .obj\debug\Qt5Mqttd_resource.res Qt5Mqttd_resource.rc
    'rc' is not recognized as an internal or external command,
    operable program or batch file.
    jom: C:\qtmqtttest\build-qtmqtt-Desktop_Qt_5_14_2_MSVC2017_64bit-Debug\src\mqtt\Makefile.Debug [.pch\debug\Qt5Mqttd_pch.obj] Error 2
    jom: C:\qtmqtttest\build-qtmqtt-Desktop_Qt_5_14_2_MSVC2017_64bit-Debug\src\mqtt\Makefile.Debug [.obj\debug\Qt5Mqttd_resource.res] Error 1
    jom: C:\qtmqtttest\build-qtmqtt-Desktop_Qt_5_14_2_MSVC2017_64bit-Debug\src\mqtt\Makefile [debug-all] Error 2
    'rc' is not recognized as an internal or external command,
    operable program or batch file.
    jom: C:\qtmqtttest\build-qtmqtt-Desktop_Qt_5_14_2_MSVC2017_64bit-Debug\src\mqtt\Makefile.Release [.pch\release\Qt5Mqtt_pch.obj] Error 2
    jom: C:\qtmqtttest\build-qtmqtt-Desktop_Qt_5_14_2_MSVC2017_64bit-Debug\src\mqtt\Makefile.Release [.obj\release\Qt5Mqtt_resource.res] Error 1
    C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile.Release all
    cl -c -Yc -Fp.pch\release\Qt5Mqtt_pch.pch -Fo.pch\release\Qt5Mqtt_pch.obj -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:__cplusplus -O2 -Zi -MD -std:c++17 -utf-8 /wd4530 /wd4577 -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 /Fd.obj\release\Qt5Mqtt.vc.pdb -DUNICODE -D_UNICODE -DWIN32 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -DWIN64 -DQT_NO_LINKED_LIST -DQT_NO_FOREACH -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_MQTT_LIB -DQT_BUILDING_QT -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DNDEBUG -DQT_QML_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -D_WINDLL -IC:\qtmqtttest\qtmqtt\src\mqtt -I. -I....\include -I....\include\QtMqtt -I....\include\QtMqtt\5.15.0 -I....\include\QtMqtt\5.15.0\QtMqtt -Itmp -IC:\Qt\5.14.2\msvc2017_64\include -IC:\Qt\5.14.2\msvc2017_64\include\QtNetwork -IC:\Qt\5.14.2\msvc2017_64\include\QtCore\5.14.2 -IC:\Qt\5.14.2\msvc2017_64\include\QtCore\5.14.2\QtCore -IC:\Qt\5.14.2\msvc2017_64\include\QtCore -I.moc\release -IC:\openssl\include -IC:\Utils\my_sql\mysql-5.7.25-winx64\include -IC:\Utils\postgresql\pgsql\include -IC:\Qt\5.14.2\msvc2017_64\mkspecs\win32-msvc -TP ....\include\QtMqtt\QtMqttDepends
    QtMqttDepends
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.25.28610\include\cstddef(12): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
    rc /NOLOGO -DUNICODE -D_UNICODE -DWIN32 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -DWIN64 -DQT_NO_LINKED_LIST -DQT_NO_FOREACH -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_MQTT_LIB -DQT_BUILDING_QT -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DNDEBUG -DQT_QML_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -D_WINDLL -fo .obj\release\Qt5Mqtt_resource.res Qt5Mqtt_resource.rc
    jom: C:\qtmqtttest\build-qtmqtt-Desktop_Qt_5_14_2_MSVC2017_64bit-Debug\src\mqtt\Makefile [release-all] Error 2
    jom: C:\qtmqtttest\build-qtmqtt-Desktop_Qt_5_14_2_MSVC2017_64bit-Debug\src\Makefile [sub-mqtt-make_first] Error 2
    jom: C:\qtmqtttest\build-qtmqtt-Desktop_Qt_5_14_2_MSVC2017_64bit-Debug\Makefile [sub-src-make_first] Error 2
    18:59:43: The process "C:\Qt\Tools\QtCreator\bin\jom.exe" exited with code 2.
    Error while building/deploying project qtmqtt (kit: Desktop Qt 5.14.2 MSVC2017 64bit)
    When executing step "Make"
    18:59:43: Elapsed time: 00:50.



  • I'm using an enterprise laptop, but I do have the CLA account. I tried to build in a normal PC and everything works with the same config. But I do not know why I'm getting the error on the Company's laptop. Would that make any difference?



  • @SGaist Yes I have removed them but nothing has changed. I even started QT in Administrator mode. But the same result.

    19:32:36: Running steps for project qtmqtt...
    19:32:36: Starting: "C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe" C:\qtmqtttest\qtmqtt\qtmqtt.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    Info: creating stash file C:\qtmqtttest\build-qtmqtt-Desktop_Qt_5_14_2_MSVC2017_64bit-Debug.qmake.stash
    Info: creating cache file C:\qtmqtttest\build-qtmqtt-Desktop_Qt_5_14_2_MSVC2017_64bit-Debug.qmake.cache
    19:32:37: The process "C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe" exited normally.
    19:32:37: Starting: "C:\Qt\Tools\QtCreator\bin\jom.exe" -f C:/qtmqtttest/build-qtmqtt-Desktop_Qt_5_14_2_MSVC2017_64bit-Debug/Makefile qmake_all

    jom 1.1.3 - empower your cores

    cd src\ && C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile C:\qtmqtttest\qtmqtt\src\src.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    cd src\ && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile qmake_all
    cd mqtt\ && C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile C:\qtmqtttest\qtmqtt\src\mqtt\mqtt.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    

    Project MESSAGE: perl -w C:\Qt\5.14.2\msvc2017_64\bin\syncqt.pl -module QtMqtt -version 5.15.0 -outdir C:/qtmqtttest/build-qtmqtt-Desktop_Qt_5_14_2_MSVC2017_64bit-Debug -builddir C:/qtmqtttest/build-qtmqtt-Desktop_Qt_5_14_2_MSVC2017_64bit-Debug C:/qtmqtttest/qtmqtt
    <srcbase> = C:/qtmqtttest/qtmqtt
    <bldbase> = C:/qtmqtttest/build-qtmqtt-Desktop_Qt_5_14_2_MSVC2017_64bit-Debug
    <outbase> = C:/qtmqtttest/build-qtmqtt-Desktop_Qt_5_14_2_MSVC2017_64bit-Debug
    QtMqtt: created fwd-include header(s) for <srcbase>/src/mqtt/ { qmqttauthenticationproperties.h (2), qmqttclient.h (2), qmqttclient_p.h (1), qmqttconnection_p.h (1), qmqttconnectionproperties.h (4), qmqttconnectionproperties_p.h (1), qmqttcontrolpacket_p.h (1), qmqttglobal.h (1), qmqttmessage.h (2), qmqttmessage_p.h (1), qmqttpublishproperties.h (3), qmqttpublishproperties_p.h (1), qmqttsubscription.h (2), qmqttsubscription_p.h (1), qmqttsubscriptionproperties.h (3), qmqtttopicfilter.h (2), qmqtttopicname.h (2), qmqtttype.h (3) }
    QtMqtt: created version header
    QtMqtt: created master header
    QtMqtt: created headers.pri file
    cd mqtt\ && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile qmake_all
    cd examples\ && C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile C:\qtmqtttest\qtmqtt\examples\examples.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    cd examples\ && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile qmake_all
    cd tests\ && C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile C:\qtmqtttest\qtmqtt\tests\tests.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    cd mqtt\ && C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile C:\qtmqtttest\qtmqtt\examples\mqtt\mqtt.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    cd mqtt\ && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile qmake_all
    cd consolepubsub\ && C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile C:\qtmqtttest\qtmqtt\examples\mqtt\consolepubsub\consolepubsub.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    cd consolepubsub\ && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile qmake_all
    C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile.qtmqtt_pub C:\qtmqtttest\qtmqtt\examples\mqtt\consolepubsub\qtmqtt_pub.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile.qtmqtt_pub qmake_all
    C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile.qtmqtt_sub C:\qtmqtttest\qtmqtt\examples\mqtt\consolepubsub\qtmqtt_sub.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    cd simpleclient\ && C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile C:\qtmqtttest\qtmqtt\examples\mqtt\simpleclient\simpleclient.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    cd quicksubscription\ && C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile C:\qtmqtttest\qtmqtt\examples\mqtt\quicksubscription\quicksubscription.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    cd quickpublication\ && C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile C:\qtmqtttest\qtmqtt\examples\mqtt\quickpublication\quickpublication.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    cd quicksubscription\ && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile qmake_all
    cd quickpublication\ && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile qmake_all
    C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile.qtmqtt_sub qmake_all
    cd subscriptions\ && C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile C:\qtmqtttest\qtmqtt\examples\mqtt\subscriptions\subscriptions.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    cd simpleclient\ && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile qmake_all
    cd subscriptions\ && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile qmake_all
    cd websocketsubscription\ && C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile C:\qtmqtttest\qtmqtt\examples\mqtt\websocketsubscription\websocketsubscription.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    cd websocketsubscription\ && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile qmake_all
    cd tests\ && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile qmake_all
    cd auto\ && C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile C:\qtmqtttest\qtmqtt\tests\auto\auto.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    cd auto\ && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile qmake_all
    cd benchmarks\ && C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile C:\qtmqtttest\qtmqtt\tests\benchmarks\benchmarks.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    cd cmake\ && C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile C:\qtmqtttest\qtmqtt\tests\auto\cmake\cmake.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    cd cmake\ && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile qmake_all
    cd conformance\ && C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile C:\qtmqtttest\qtmqtt\tests\auto\conformance\conformance.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    cd qmqttconnectionproperties\ && C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile C:\qtmqtttest\qtmqtt\tests\auto\qmqttconnectionproperties\qmqttconnectionproperties.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    cd qmqttcontrolpacket\ && C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile C:\qtmqtttest\qtmqtt\tests\auto\qmqttcontrolpacket\qmqttcontrolpacket.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    cd qmqttclient\ && C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile C:\qtmqtttest\qtmqtt\tests\auto\qmqttclient\qmqttclient.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    cd qmqttlastwillproperties\ && C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile C:\qtmqtttest\qtmqtt\tests\auto\qmqttlastwillproperties\qmqttlastwillproperties.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    cd conformance\ && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile qmake_all
    cd qmqttconnectionproperties\ && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile qmake_all
    cd qmqttcontrolpacket\ && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile qmake_all
    cd qmqttclient\ && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile qmake_all
    cd qmqttlastwillproperties\ && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile qmake_all
    cd qmqttpublishproperties\ && C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile C:\qtmqtttest\qtmqtt\tests\auto\qmqttpublishproperties\qmqttpublishproperties.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    cd qmqttsubscription\ && C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile C:\qtmqtttest\qtmqtt\tests\auto\qmqttsubscription\qmqttsubscription.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    cd qmqttsubscriptionproperties\ && C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile C:\qtmqtttest\qtmqtt\tests\auto\qmqttsubscriptionproperties\qmqttsubscriptionproperties.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    cd qmqtttopicname\ && C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile C:\qtmqtttest\qtmqtt\tests\auto\qmqtttopicname\qmqtttopicname.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    cd qmqttpublishproperties\ && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile qmake_all
    cd qmqtttopicfilter\ && C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile C:\qtmqtttest\qtmqtt\tests\auto\qmqtttopicfilter\qmqtttopicfilter.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    cd qmqtttopicname\ && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile qmake_all
    cd qmqttsubscription\ && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile qmake_all
    cd qmqttsubscriptionproperties\ && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile qmake_all
    cd qmqtttopicfilter\ && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile qmake_all
    cd benchmarks\ && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile qmake_all
    cd qmqttclient\ && C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile C:\qtmqtttest\qtmqtt\tests\benchmarks\qmqttclient\qmqttclient.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
    cd qmqttclient\ && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile qmake_all
    19:33:18: The process "C:\Qt\Tools\QtCreator\bin\jom.exe" exited normally.
    19:33:18: Starting: "C:\Qt\Tools\QtCreator\bin\jom.exe"
    cd src\ && ( if not exist Makefile C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile C:\qtmqtttest\qtmqtt\src\src.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug" ) && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile
    cd mqtt\ && ( if not exist Makefile C:\Qt\5.14.2\msvc2017_64\bin\qmake.exe -o Makefile C:\qtmqtttest\qtmqtt\src\mqtt\mqtt.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug" ) && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile
    C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile.Debug all
    cl -c -Yc -Fp.pch\debug\Qt5Mqttd_pch.pch -Fo.pch\debug\Qt5Mqttd_pch.obj -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:__cplusplus -Zi -MDd -std:c++17 -utf-8 /wd4530 /wd4577 -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 /Fd.obj\debug\Qt5Mqttd.vc.pdb -DUNICODE -D_UNICODE -DWIN32 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -DWIN64 -DQT_NO_LINKED_LIST -DQT_NO_FOREACH -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_MQTT_LIB -DQT_BUILDING_QT -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_QML_DEBUG -DQT_NO_EXCEPTIONS -DQT_NETWORK_LIB -DQT_CORE_LIB -D_WINDLL -IC:\qtmqtttest\qtmqtt\src\mqtt -I. -I....\include -I....\include\QtMqtt -I....\include\QtMqtt\5.15.0 -I....\include\QtMqtt\5.15.0\QtMqtt -Itmp -IC:\Qt\5.14.2\msvc2017_64\include -IC:\Qt\5.14.2\msvc2017_64\include\QtNetwork -IC:\Qt\5.14.2\msvc2017_64\include\QtCore\5.14.2 -IC:\Qt\5.14.2\msvc2017_64\include\QtCore\5.14.2\QtCore -IC:\Qt\5.14.2\msvc2017_64\include\QtCore -I.moc\debug -IC:\openssl\include -IC:\Utils\my_sql\mysql-5.7.25-winx64\include -IC:\Utils\postgresql\pgsql\include -IC:\Qt\5.14.2\msvc2017_64\mkspecs\win32-msvc -TP ....\include\QtMqtt\QtMqttDepends
    QtMqttDepends
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.25.28610\include\cstddef(12): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
    rc /NOLOGO -D_DEBUG -DUNICODE -D_UNICODE -DWIN32 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -DWIN64 -DQT_NO_LINKED_LIST -DQT_NO_FOREACH -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_MQTT_LIB -DQT_BUILDING_QT -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_QML_DEBUG -DQT_NO_EXCEPTIONS -DQT_NETWORK_LIB -DQT_CORE_LIB -D_WINDLL -fo .obj\debug\Qt5Mqttd_resource.res Qt5Mqttd_resource.rc
    'rc' is not recognized as an internal or external command,
    operable program or batch file.
    jom: C:\qtmqtttest\build-qtmqtt-Desktop_Qt_5_14_2_MSVC2017_64bit-Debug\src\mqtt\Makefile.Debug [.pch\debug\Qt5Mqttd_pch.obj] Error 2
    jom: C:\qtmqtttest\build-qtmqtt-Desktop_Qt_5_14_2_MSVC2017_64bit-Debug\src\mqtt\Makefile.Debug [.obj\debug\Qt5Mqttd_resource.res] Error 1
    jom: C:\qtmqtttest\build-qtmqtt-Desktop_Qt_5_14_2_MSVC2017_64bit-Debug\src\mqtt\Makefile [debug-all] Error 2
    'rc' is not recognized as an internal or external command,
    operable program or batch file.
    jom: C:\qtmqtttest\build-qtmqtt-Desktop_Qt_5_14_2_MSVC2017_64bit-Debug\src\mqtt\Makefile.Release [.pch\release\Qt5Mqtt_pch.obj] Error 2
    jom: C:\qtmqtttest\build-qtmqtt-Desktop_Qt_5_14_2_MSVC2017_64bit-Debug\src\mqtt\Makefile.Release [.obj\release\Qt5Mqtt_resource.res] Error 1
    C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile.Release all
    cl -c -Yc -Fp.pch\release\Qt5Mqtt_pch.pch -Fo.pch\release\Qt5Mqtt_pch.obj -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:__cplusplus -O2 -Zi -MD -std:c++17 -utf-8 /wd4530 /wd4577 -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 /Fd.obj\release\Qt5Mqtt.vc.pdb -DUNICODE -D_UNICODE -DWIN32 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -DWIN64 -DQT_NO_LINKED_LIST -DQT_NO_FOREACH -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_MQTT_LIB -DQT_BUILDING_QT -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DNDEBUG -DQT_QML_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -D_WINDLL -IC:\qtmqtttest\qtmqtt\src\mqtt -I. -I....\include -I....\include\QtMqtt -I....\include\QtMqtt\5.15.0 -I....\include\QtMqtt\5.15.0\QtMqtt -Itmp -IC:\Qt\5.14.2\msvc2017_64\include -IC:\Qt\5.14.2\msvc2017_64\include\QtNetwork -IC:\Qt\5.14.2\msvc2017_64\include\QtCore\5.14.2 -IC:\Qt\5.14.2\msvc2017_64\include\QtCore\5.14.2\QtCore -IC:\Qt\5.14.2\msvc2017_64\include\QtCore -I.moc\release -IC:\openssl\include -IC:\Utils\my_sql\mysql-5.7.25-winx64\include -IC:\Utils\postgresql\pgsql\include -IC:\Qt\5.14.2\msvc2017_64\mkspecs\win32-msvc -TP ....\include\QtMqtt\QtMqttDepends
    QtMqttDepends
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.25.28610\include\cstddef(12): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
    rc /NOLOGO -DUNICODE -D_UNICODE -DWIN32 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -DWIN64 -DQT_NO_LINKED_LIST -DQT_NO_FOREACH -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_MQTT_LIB -DQT_BUILDING_QT -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DNDEBUG -DQT_QML_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -D_WINDLL -fo .obj\release\Qt5Mqtt_resource.res Qt5Mqtt_resource.rc
    jom: C:\qtmqtttest\build-qtmqtt-Desktop_Qt_5_14_2_MSVC2017_64bit-Debug\src\mqtt\Makefile [release-all] Error 2
    jom: C:\qtmqtttest\build-qtmqtt-Desktop_Qt_5_14_2_MSVC2017_64bit-Debug\src\Makefile [sub-mqtt-make_first] Error 2
    jom: C:\qtmqtttest\build-qtmqtt-Desktop_Qt_5_14_2_MSVC2017_64bit-Debug\Makefile [sub-src-make_first] Error 2
    19:33:19: The process "C:\Qt\Tools\QtCreator\bin\jom.exe" exited with code 2.
    Error while building/deploying project qtmqtt (kit: Desktop Qt 5.14.2 MSVC2017 64bit)
    When executing step "Make"
    19:33:19: Elapsed time: 00:43.



  • @jsulm C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.25.28610\include\cstddef:12: error: C1083: Cannot open include file: 'stddef.h': No such file or directory .

    This is the issue that I get


Log in to reply