Fatal error: QtMqtt/qmqttglobal.h: No such file or directory
-
wrote on 7 May 2020, 16:09 last edited by
Hello. I am trying to install mqtt in linux. I have downloaded the source files from github. Qmake works fine, but make gives this error: fatal error: QtMqtt/qmqttglobal.h: No such file or directory. I have also searched for qmqttglobal.h and it is at its place. My operating system is Linux and my qt version is 5.12.4. What else should I try?
-
Hello. I am trying to install mqtt in linux. I have downloaded the source files from github. Qmake works fine, but make gives this error: fatal error: QtMqtt/qmqttglobal.h: No such file or directory. I have also searched for qmqttglobal.h and it is at its place. My operating system is Linux and my qt version is 5.12.4. What else should I try?
wrote on 7 May 2020, 16:11 last edited by@20Stefan05 have you built and install the QtMqtt module?
-
wrote on 7 May 2020, 16:19 last edited by 20Stefan05 5 Jul 2020, 16:24
@Pablo-J-Rogina, I don't think so.I have tried to build it in the qt creator, but it had many errors. How should I install and build the module?
-
wrote on 7 May 2020, 17:03 last edited by eyllanesc 5 Jul 2020, 17:03
@20Stefan05 You shouldn't use Qt Creator to compile mqtt, instead run the following in terminal:
git clone https://github.com/qt/qtmqtt.git cd qtmqtt qmake . make sudo make install
-
@20Stefan05 You shouldn't use Qt Creator to compile mqtt, instead run the following in terminal:
git clone https://github.com/qt/qtmqtt.git cd qtmqtt qmake . make sudo make install
wrote on 7 May 2020, 18:08 last edited by@eyllanesc I did that, but at running make, I get Fatal error: QtMqtt/qmqttglobal.h: No such file or directory
-
Hi,
Are you sure you are using the correct version of Qt to build that module ?
Do you have pearl installed ?
Did you checkout the correct branch ? -
Hi,
Are you sure you are using the correct version of Qt to build that module ?
Do you have pearl installed ?
Did you checkout the correct branch ?wrote on 7 May 2020, 18:18 last edited by@SGaist I have pearl installed. I am using Qt 5.12.4.
-
You did not answer all questions.
Beside that, are you using the full path to qmake ?
-
wrote on 7 May 2020, 18:29 last edited by
@SGaist I don't know what is the correct branch. At the qmake I am entering the qtmqtt directory and just type "qmake".
-
Usually you would use the branch matching the Qt version you want to use.
How did you install Qt 5.12.4 ?
-
Usually you would use the branch matching the Qt version you want to use.
How did you install Qt 5.12.4 ?
wrote on 7 May 2020, 18:40 last edited by@SGaist I have installed the qt maintenance tool and from it - the Qt 5.12.4. Should I try to make it in the Qt/5.12.4/gcc_64/bin?
-
As I already wrote, use the full path to qmake. Otherwise you are going to use your distribution provided Qt.
9/12