Compile MQTT library & need to update to latest 5.11
-
@jsulm yes as you can see in screen shot
-
Got compiler output window as follows:
home/balkrishna/Desktop/qt/qtmqtt/include/QtMqtt/QtMqttDepends -o .pch/Qt5Mqtt.gch/c++
g++: error: unrecognized command line option '-std=c++1z'
make[2]: Leaving directory/home/balkrishna/build-qtmqtt-Qt_5_11_1-Debug/src/mqtt' make[1]: Leaving directory
/home/balkrishna/build-qtmqtt-Qt_5_11_1-Debug/src'
make[2]: *** [.pch/Qt5Mqtt.gch/c++] Error 1
make[1]: *** [sub-mqtt-make_first] Error 2
make: *** [sub-src-make_first] Error 2
12:29:01: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project qtmqtt (kit: Qt 5.11.1)
When executing step 'Make' -
In Genral message window shows following :
/home/balkrishna/Qt5.11.1/5.11.1/gcc_64/mkspecs/features/qmake_use.prf(6): 'take_first' is not a recognized replace function.
Project ERROR: Library '' is not defined.
/home/balkrishna/Qt5.11.1/5.11.1/gcc_64/mkspecs/features/qmake_use.prf(6): 'take_first' is not a recognized replace function.
Project ERROR: Library '' is not defined.- In Issue window show following:
error: error: unrecognized command line option '-std=c++1z'
error: [.pch/Qt5Mqtt.gch/c++] Error 1Any thing is wrong from my side so please let me know and suggest which things should i cross check to resolve this issue
-
-
@bhu24 said in Compile MQTT library & need to update to latest 5.11:
yes as you can see in screen shot
No, I can't as you did not post the screen-shot of your Kit...
-
-
If you're getting the code from GitHub don't forget to checkout a release, otherwise, you'll be working from the dev branch and the code might fail to compile.
so, instead of just
git clone git://code.qt.io/qt/qtmqtt.git
do
git clone git://code.qt.io/qt/qtmqtt.git && git checkout v5.15.0