QT 5.15.0 Qt MQTT Build errors
Unsolved
3rd Party Software
-
Greetings,
I am trying to build MQTT from here:
https://github.com/qt/qtmqtt/archive/v5.15.0.zip
Environment is QT 5.15.0 and MSVC2019 64bit
Doing a compile with QT creator, I get the following build errors, Any idea how to fix the issue ?
Thanks,
qmqttconnectionproperties.cpp qmqttcontrolpacket.cpp qmqttmessage.cpp Generating Code... D:\Work\QT\qtmqtt-5.15.0\src\mqtt\qmqttconnection.cpp(318): error C2838: 'ContinueAuthentication': illegal qualified name in member declaration D:\Work\QT\qtmqtt-5.15.0\src\mqtt\qmqttconnection.cpp(318): error C2065: 'ContinueAuthentication': undeclared identifier D:\Work\QT\qtmqtt-5.15.0\src\mqtt\qmqttconnection.cpp(322): error C2838: 'ReAuthenticate': illegal qualified name in member declaration D:\Work\QT\qtmqtt-5.15.0\src\mqtt\qmqttconnection.cpp(322): error C2065: 'ReAuthenticate': undeclared identifier cl -BxC:\Qt\5.15.0\msvc2019_64\bin\qmake.exe -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 -E C:\Qt\5.15.0\msvc2019_64\mkspecs\features\data\dummy.cpp 2>NUL >.moc\debug\moc_predefs.h cl -c -FID:\Work\QT\build-qtmqtt-Desktop_Qt_5_15_0_MSVC2019_64bit-Debug\include\QtMqtt\QtMqttDepends -YuD:\Work\QT\build-qtmqtt-Desktop_Qt_5_15_0_MSVC2019_64bit-Debug\include\QtMqtt\QtMqttDepends -Fp.pch\debug\Qt5Mqttd_pch.pch -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_LINKED_LIST -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 -ID:\Work\QT\qtmqtt-5.15.0\src\mqtt -I. -ID:/Work/QT/qtmqtt-5.15.0/include -ID:/Work/QT/qtmqtt-5.15.0/include/QtMqtt -I..\..\include -I..\..\include\QtMqtt -ID:/Work/QT/qtmqtt-5.15.0/include/QtMqtt/5.15.0 -ID:/Work/QT/qtmqtt-5.15.0/include/QtMqtt/5.15.0/QtMqtt -Itmp -IC:\Qt\5.15.0\msvc2019_64\include -IC:\Qt\5.15.0\msvc2019_64\include\QtNetwork -IC:\Qt\5.15.0\msvc2019_64\include\QtCore\5.15.0 -IC:\Qt\5.15.0\msvc2019_64\include\QtCore\5.15.0\QtCore -IC:\Qt\5.15.0\msvc2019_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.15.0\msvc2019_64\mkspecs\win32-msvc -Fo.obj\debug\ @C:\Users\Manu\AppData\Local\Temp\qmqtttopicfilter.obj.5932.13619.jom qmqtttopicfilter.cpp qmqtttopicname.cpp qmqtttype.cpp Generating Code... D:\Work\QT\qtmqtt-5.15.0\src\mqtt\qmqttconnection.cpp(1409): error C2838: 'ContinueAuthentication': illegal qualified name in member declaration D:\Work\QT\qtmqtt-5.15.0\src\mqtt\qmqttconnection.cpp(1409): error C2065: 'ContinueAuthentication': undeclared identifier D:\Work\QT\qtmqtt-5.15.0\src\mqtt\qmqttconnection.cpp(1410): error C2838: 'ReAuthenticate': illegal qualified name in member declaration D:\Work\QT\qtmqtt-5.15.0\src\mqtt\qmqttconnection.cpp(1410): error C2065: 'ReAuthenticate': undeclared identifier D:\Work\QT\qtmqtt-5.15.0\src\mqtt\qmqttconnection.cpp(1409): error C2051: case expression not constant D:\Work\QT\qtmqtt-5.15.0\src\mqtt\qmqttconnection.cpp(1410): error C2051: case expression not constant Generating Code... .. 10.0.18362.0\cppwinrt" D:\Work\QT\qtmqtt-5.15.0\src\mqtt\qmqttsubscription.h -o .moc\debug\moc_qmqttsubscription.cpp moc_qmqttclient.cpp jom: D:\Work\QT\build-qtmqtt-Desktop_Qt_5_15_0_MSVC2019_64bit-Debug\src\mqtt\Makefile [debug-all] Error 2 jom: D:\Work\QT\build-qtmqtt-Desktop_Qt_5_15_0_MSVC2019_64bit-Debug\src\mqtt\Makefile [release-all] Error 2 jom: D:\Work\QT\build-qtmqtt-Desktop_Qt_5_15_0_MSVC2019_64bit-Debug\src\Makefile [sub-mqtt-make_first] Error 2 jom: D:\Work\QT\build-qtmqtt-Desktop_Qt_5_15_0_MSVC2019_64bit-Debug\Makefile [sub-src-make_first] Error 2 17:18:45: The process "C:\Qt\Tools\QtCreator\bin\jom.exe" exited with code 2. Error while building/deploying project qtmqtt (kit: Desktop Qt 5.15.0 MSVC2019 64bit) When executing step "Make" 17:18:45: Elapsed time: 00:24.