Unsolved Compile MQTT library & need to update to latest 5.11
-
@bhu24 Can you show your pro file
-
@jsulm ![alt text]( image url)
I am using "qtmqtt" folder to compile mqtt library is right or wrong??? please let me know
-
@bhu24 I'm wondering from where this -std=c++1z is coming.
Usually it should be configured likeCONFIG += c++11
in one of the pro files.
-
@jsulm
i tried that also one by one but no use- CONFIG += c++11
- CONFIG += c++12
- CONFIG += c++13
-
@bhu24 What I mean is: you should check the pro files and see whether the c++ standard is set there and how.
Note: there is no C++12 or C++13 -
-
@bhu24 Can you show how they mentioned c++ there, I don't want to check out the project.
-
@jsulm ![alt text]( image url)
here you can see.
can i uninstall all and again start from new installation
Please help me for selection of qt version, cmake, qmake, and gcc or g++ complier for installation and compilation of "qtmqtt" library. -
@bhu24 Can you try from command line instead of QtCreator?
Go to the qtmqtt source directory:PATH_TO_YOUR_QT_BIN/qmake make make install
Note: use absolute path to qmake to make sure you use Qt you want to use.
-
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