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. Error of instalation script
Forum Updated to NodeBB v4.3 + New Features

Error of instalation script

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 427 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.
  • C Offline
    C Offline
    Creatorczyk
    wrote on last edited by
    #1

    Hi,

    I try install mqtt module to my Qt 5.14.0. I wrote simple script to make instalation but I got error like:

    Project ERROR: You cannot build examples inside the Qt source tree, except as part of a proper Qt build.
    make: *** No targets specified and no makefile found. Stop.
    make: *** No rule to make target 'install'. Stop.

    My script:

    #!/bin/bash
    git clone https://code.qt.io/qt/qtmqtt.git
    cd qtmqtt
    mkdir build && cd build
    QT_INSTALL_DIR=$HOME/Qt5.14.0/5.14.0
    QT_QMAKE_DIR=$QT_INSTALL_DIR/gcc_64/bin/
    $QT_QMAKE_DIR/qmake -r ..
    make
    make install

    I also noticed that Qt5.14.0 disappeared in the kit. What could I do to repair script?

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

      Hi,

      Your should rather do a real out of source build. qmake is not cmake.

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

      C 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Your should rather do a real out of source build. qmake is not cmake.

        C Offline
        C Offline
        Creatorczyk
        wrote on last edited by
        #3

        @SGaist What does it mean and how to do it?

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

          That means build in a folder that is outside the source tree. Move your "build" folder outside of qtmqtt and for the rest you know already how to trigger qmake properly by passing the path to the module top level folder.

          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

          • Login

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