Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. make failed during installation of Qtmqtt
Qt 6.11 is out! See what's new in the release blog

make failed during installation of Qtmqtt

Scheduled Pinned Locked Moved Solved Installation and Deployment
16 Posts 3 Posters 1.8k Views 1 Watching
  • 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.
  • R Offline
    R Offline
    rajel052
    wrote on last edited by
    #5

    hello @SGaist
    i am cloning from thise link :git clone git://code.qt.io/qt/qtmqtt.git
    after cloning
    cd qtmqtt
    qmake
    make
    when i run make then found an error :
    make: *** No targets specified and no makefile found. Stop.

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

      You get the dev branch which is target to Qt 6 and Qt 6 moved to cmake.

      Checkout the branch / tag that matches the Qt version you want to use in order to build the module.

      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
      0
      • R Offline
        R Offline
        rajel052
        wrote on last edited by
        #7

        @SGaist what's step i follow to add qtmqtt library in Qt version 5.12.8 , please suggest me

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

          As I wrote just above, checkout the 5.12.8 tag and follow the usual procedure.

          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
          0
          • R Offline
            R Offline
            rajel052
            wrote on last edited by
            #9

            @SGaist what's step i follow to checkout the 5.12.8 tag for Qtmqtt

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #10
              git checkout 5.12.8
              

              Or

              git switch 5.12.8
              

              Depending on the version you use.

              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
              0
              • R Offline
                R Offline
                rajel052
                wrote on last edited by rajel052
                #11

                Hello @SGaist , its throw an error after checkout the branch

                root@latitude:/home/oem/Qt/5.15.2/gcc_64/lib/qtmqtt# git checkout 5.15.2
                Already on '5.15.2'
                Your branch is up to date with 'origin/5.15.2'.
                root@latitude-:/home/oem/Qt/5.15.2/gcc_64/lib/qtmqtt# qmake
                root@latitude-:/home/oem/Qt/5.15.2/gcc_64/lib/qtmqtt# make
                cd src/ && ( test -e Makefile || /usr/lib/qt5/bin/qmake -o Makefile /home/oem/Qt/5.15.2/gcc_64/lib/qtmqtt/src/src.pro ) && make -f Makefile
                make[1]: Entering directory '/home/oem/Qt/5.15.2/gcc_64/lib/qtmqtt/src'
                cd mqtt/ && ( test -e Makefile || /usr/lib/qt5/bin/qmake -o Makefile /home/oem/Qt/5.15.2/gcc_64/lib/qtmqtt/src/mqtt/mqtt.pro ) && make -f Makefile
                make[2]: Entering directory '/home/oem/Qt/5.15.2/gcc_64/lib/qtmqtt/src/mqtt'
                g++ -c -include .pch/Qt5Mqtt -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -O2 -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -Wno-stringop-overflow -Wno-deprecated-copy -Wno-redundant-move -Wno-format-overflow -Wno-init-list-lifetime -D_REENTRANT -fPIC -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_MQTT_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I../../include -I../../include/QtMqtt -I../../include/QtMqtt/5.12.8 -I../../include/QtMqtt/5.12.8/QtMqtt -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtNetwork -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore/5.12.8 -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore/5.12.8/QtCore -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I.moc -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o .obj/qmqttclient.o qmqttclient.cpp
                In file included from qmqttclient.cpp:31:
                qmqttclient_p.h:49:10: fatal error: private/qobject_p.h: No such file or directory
                49 | #include <private/qobject_p.h>
                | ^~~~~~~~~~~~~~~~~~~~~
                compilation terminated.
                make[2]: *** [Makefile:611: .obj/qmqttclient.o] Error 1
                make[2]: Leaving directory '/home/oem/Qt/5.15.2/gcc_64/lib/qtmqtt/src/mqtt'
                make[1]: *** [Makefile:47: sub-mqtt-make_first] Error 2
                make[1]: Leaving directory '/home/oem/Qt/5.15.2/gcc_64/lib/qtmqtt/src'
                make: *** [Makefile:49: sub-src-make_first] Error 2
                root@latitude-:/home/oem/Qt/5.15.2/gcc_64/lib/qtmqtt#

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

                  You wrote that you needed that for Qt 5.12.8 so why is it now 5.15.2 ?

                  How did you install it ?
                  Why are you using your distribution provided qmake ?
                  If you want to build with your distribution provided Qt, you have to install the Qt "private" development packages from your distribution.

                  If you want to build with a custom installed Qt, use the full path to the qmake executable you want to use.

                  Finally: stop doing stuff a root. There's no need for that especially when building libraries and whatnot. Use of root is only for machine management, not development.

                  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
                  0
                  • R Offline
                    R Offline
                    rajel052
                    wrote on last edited by
                    #13

                    Thank you @SGaist

                    1 Reply Last reply
                    0
                    • R Offline
                      R Offline
                      rajel052
                      wrote on last edited by
                      #14

                      Hii @SGaist , my system was got crashed , now i am installing mqtt library again but it's gives error please help me

                      I'm follow these steps :

                      git clone git://code.qt.io/qt/qtmqtt.git

                      git switch 5.15.2

                      cd qtmqtt
                      qmake
                      make

                      :~/Qt/5.15.2/gcc_64/lib/qtmqtt$ make
                      cd src/ && ( test -e Makefile || /usr/lib/qt5/bin/qmake -o Makefile /home/rajel052/Qt/5.15.2/gcc_64/lib/qtmqtt/src/src.pro ) && make -f Makefile
                      make[1]: Entering directory '/home/rajel052/Qt/5.15.2/gcc_64/lib/qtmqtt/src'
                      cd mqtt/ && ( test -e Makefile || /usr/lib/qt5/bin/qmake -o Makefile /home/rajel052/Qt/5.15.2/gcc_64/lib/qtmqtt/src/mqtt/mqtt.pro ) && make -f Makefile
                      make[2]: Entering directory '/home/rajel052/Qt/5.15.2/gcc_64/lib/qtmqtt/src/mqtt'
                      g++ -c -include .pch/Qt5Mqtt -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -O2 -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -Wno-stringop-overflow -Wno-deprecated-copy -Wno-redundant-move -Wno-format-overflow -Wno-init-list-lifetime -D_REENTRANT -fPIC -DQT_NO_FOREACH -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_LINKED_LIST -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_MQTT_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I../../include -I../../include/QtMqtt -I../../include/QtMqtt/5.15.2 -I../../include/QtMqtt/5.15.2/QtMqtt -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtNetwork -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore/5.12.8 -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore/5.12.8/QtCore -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I.moc -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o .obj/qmqttclient.o qmqttclient.cpp
                      In file included from qmqttclient.cpp:31:
                      qmqttclient_p.h:49:10: fatal error: private/qobject_p.h: No such file or directory
                      49 | #include <private/qobject_p.h>
                      | ^~~~~~~~~~~~~~~~~~~~~
                      compilation terminated.
                      make[2]: *** [Makefile:619: .obj/qmqttclient.o] Error 1
                      make[2]: Leaving directory '/home/externlabs-rajel052/Qt/5.15.2/gcc_64/lib/qtmqtt/src/mqtt'
                      make[1]: *** [Makefile:47: sub-mqtt-make_first] Error 2
                      make[1]: Leaving directory '/home/externlabs-rajel052/Qt/5.15.2/gcc_64/lib/qtmqtt/src'
                      make: *** [Makefile:49: sub-src-make_first] Error 2

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

                        You are using your distribution provided Qt. You need to install the Qt private development packages. The one for qtbase should be enough.

                        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
                        • R Offline
                          R Offline
                          rajel052
                          wrote on last edited by
                          #16

                          Thank you @SGaist

                          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