fatal error: QtMqtt/qmqttglobal.h: No such file or directory
-
Hi,
I am using Qt5.12.12 on Ubuntu20, today,
I download the mqtt source from: https://github.com/qt/qtmqtt/archive/refs/tags/v5.12.10.tar.gz
when I was building the mqtt, I got this error:
fatal error: QtMqtt/qmqttglobal.h: No such file or directory
Then I searched this problem on this forum, and I found this topic:https://forum.qt.io/topic/91776/qtmqtt-make-error-on-linux-qmqttglobal-h-no-such-file-or-directory/17
It shows, if download the source from git tag page, the error will appear. but if use git clone to download the source, the error will gone. After testing both, it is right.
Then I tried to find the diffirence between the source files, they are same. but after removing the
.git
dir from the source folder cloned by git, there error appeared! And if I create a.git
dir to the source folder download from git tag page, the build error disappeared too.I think this might be a bug.
I have tested it on Windows 10, it also worked.
-
Hi,
It's a GitHub specific issue.
First thing: GitHub is just a mirror of the official repositories and its archive feature will not generate the archive as you may found provided by the Qt Company.
If memory serves well, the presence of the .git folder will trigger the run of the sync.pl script which will generate the forward headers that are missing there. These headers are part of the archives generated with each release but GitHub's download feature will not run the pre-processing steps required.
-
Hi,
It's a GitHub specific issue.
First thing: GitHub is just a mirror of the official repositories and its archive feature will not generate the archive as you may found provided by the Qt Company.
If memory serves well, the presence of the .git folder will trigger the run of the sync.pl script which will generate the forward headers that are missing there. These headers are part of the archives generated with each release but GitHub's download feature will not run the pre-processing steps required.
-
-
@Mozzie said in fatal error: QtMqtt/qmqttglobal.h: No such file or directory:
I mean where can I find the archive for qtmqtt provided by the Qt Company.
There is no official archive. Just get the source code by doing a
git clone
. -
@Mozzie said in fatal error: QtMqtt/qmqttglobal.h: No such file or directory:
I mean where can I find the archive for qtmqtt provided by the Qt Company.
There is no official archive. Just get the source code by doing a
git clone
.