Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. fatal error: QtMqtt/qmqttglobal.h: No such file or directory

fatal error: QtMqtt/qmqttglobal.h: No such file or directory

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 3 Posters 1.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • MozzieM Offline
    MozzieM Offline
    Mozzie
    wrote on last edited by Mozzie
    #1

    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.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      MozzieM 1 Reply Last reply
      0
      • SGaistS SGaist

        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.

        MozzieM Offline
        MozzieM Offline
        Mozzie
        wrote on last edited by
        #3

        @SGaist
        Thank you very much.
        And where can I find the archive provided by the Qt Company.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          https://download.qt.io/

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          MozzieM 1 Reply Last reply
          0
          • SGaistS SGaist

            https://download.qt.io/

            MozzieM Offline
            MozzieM Offline
            Mozzie
            wrote on last edited by
            #5

            @SGaist

            I mean where can I find the archive for qtmqtt provided by the Qt Company.

            JKSHJ 1 Reply Last reply
            0
            • MozzieM Mozzie

              @SGaist

              I mean where can I find the archive for qtmqtt provided by the Qt Company.

              JKSHJ Offline
              JKSHJ Offline
              JKSH
              Moderators
              wrote on last edited by
              #6

              @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.

              Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

              MozzieM 1 Reply Last reply
              1
              • JKSHJ JKSH

                @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.

                MozzieM Offline
                MozzieM Offline
                Mozzie
                wrote on last edited by
                #7

                @JKSH
                OK, Thanks

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved