Compile MQTT library & need to update to latest 5.11
-
Hi,
Use the full path to the
qmake
executable of the Qt version your want to use.You are currently using your distribution provided Qt.
-
Answer :- it installed successfully but after installation got "qt version of 5.2.1" on ubuntu 14.04 system instead of "qt version of 5.11.1"
Ah sorry, I didn't get this :(
As @SGaist said, you must call
qmake
with full path if you have multiple versions installed.But then it should work - good luck.
Regards
-
@bhu24 said in Compile MQTT library & need to update to latest 5.11:
error: error: unrecognized command line option '-std=c++1z'
I'm not sure why
c++1z
(= "c++17") is forced, but your compiler may be too old for that.Can you see if
c++1z
is given in any of the.pro
or.pri
files? -
@aha_1980 still issue is not resolved
Previous - error: error: unrecognized command line option '-std=c++1z'
NEW - error: [.pch/Qt5Mqtt.gch/c++] Error 1one error gone but new issue arise!!!
Solved issue - error: error: unrecognized command line option '-Wdate-time'
-
That's because you're currently using an out of date compiler.
-
@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...