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
Forum Update on Monday, May 27th 2025

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

Scheduled Pinned Locked Moved Unsolved General and Desktop
mqtt
12 Posts 4 Posters 1.9k 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.
  • 2 20Stefan05
    7 May 2020, 16:09

    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?

    P Offline
    P Offline
    Pablo J. Rogina
    wrote on 7 May 2020, 16:11 last edited by
    #2

    @20Stefan05 have you built and install the QtMqtt module?

    Upvote the answer(s) that helped you solve the issue
    Use "Topic Tools" button to mark your post as Solved
    Add screenshots via postimage.org
    Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

    1 Reply Last reply
    0
    • 2 Offline
      2 Offline
      20Stefan05
      wrote on 7 May 2020, 16:19 last edited by 20Stefan05 5 Jul 2020, 16:24
      #3

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

      1 Reply Last reply
      0
      • E Offline
        E Offline
        eyllanesc
        wrote on 7 May 2020, 17:03 last edited by eyllanesc 5 Jul 2020, 17:03
        #4

        @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
        

        If you want me to help you develop some work then you can write to my email: e.yllanescucho@gmal.com.

        2 1 Reply Last reply 7 May 2020, 18:08
        0
        • E eyllanesc
          7 May 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
          
          2 Offline
          2 Offline
          20Stefan05
          wrote on 7 May 2020, 18:08 last edited by
          #5

          @eyllanesc I did that, but at running make, I get Fatal error: QtMqtt/qmqttglobal.h: No such file or directory

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 7 May 2020, 18:11 last edited by
            #6

            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 ?

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

            2 1 Reply Last reply 7 May 2020, 18:18
            0
            • S SGaist
              7 May 2020, 18:11

              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 ?

              2 Offline
              2 Offline
              20Stefan05
              wrote on 7 May 2020, 18:18 last edited by
              #7

              @SGaist I have pearl installed. I am using Qt 5.12.4.

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 7 May 2020, 18:20 last edited by
                #8

                You did not answer all questions.

                Beside that, are you using the full path to qmake ?

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

                2 1 Reply Last reply 7 May 2020, 18:29
                0
                • S SGaist
                  7 May 2020, 18:20

                  You did not answer all questions.

                  Beside that, are you using the full path to qmake ?

                  2 Offline
                  2 Offline
                  20Stefan05
                  wrote on 7 May 2020, 18:29 last edited by
                  #9

                  @SGaist I don't know what is the correct branch. At the qmake I am entering the qtmqtt directory and just type "qmake".

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 7 May 2020, 18:32 last edited by
                    #10

                    Usually you would use the branch matching the Qt version you want to use.

                    How did you install Qt 5.12.4 ?

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

                    2 1 Reply Last reply 7 May 2020, 18:40
                    0
                    • S SGaist
                      7 May 2020, 18:32

                      Usually you would use the branch matching the Qt version you want to use.

                      How did you install Qt 5.12.4 ?

                      2 Offline
                      2 Offline
                      20Stefan05
                      wrote on 7 May 2020, 18:40 last edited by
                      #11

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

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on 7 May 2020, 19:51 last edited by
                        #12

                        As I already wrote, use the full path to qmake. Otherwise you are going to use your distribution provided Qt.

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

                        1 Reply Last reply
                        1

                        11/12

                        7 May 2020, 18:40

                        • Login

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