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. Where do I find 'Qt for Automation' ?
Forum Updated to NodeBB v4.3 + New Features

Where do I find 'Qt for Automation' ?

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
7 Posts 4 Posters 2.1k Views 2 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.
  • N Offline
    N Offline
    nimbusgb
    wrote on last edited by nimbusgb
    #1

    I'm trying to get QtMqtt running in QTComposer, All my searches lead me to articles saying run the installer and select QT for Automation' but searching for the Automation component returns nothing.

    I've found the source for QtMqtt on github but can't for the life of me make sense in how to install it or get it running as a library.

    I'm running on Windows so any tutorials on Linux are pretty useless to me.

    1 Reply Last reply
    0
    • Egn1n3E Offline
      Egn1n3E Offline
      Egn1n3
      wrote on last edited by Egn1n3
      #2

      It seems QT for Automation is currently only available under commercial license so when you run Qt maintenance tool you won't be able to select it (at least I can't).

      According to this article: http://blog.qt.io/blog/2017/08/14/introducing-qtmqtt-protocol/ it will become available as open source as the comments show this: "As http://blog.qt.io/blog/2017/08/14/qt-for-automation/ indicates, it will be available as GPL3 and commercial. There is some infrastructural work to be done, but I hope we can put the repository online soon."

      I installed/compiled Qtmqtt as a separate module by following the installation instructions for Linux. I presume it is similar for Windows. Hopefully later this week I have some time to try it out on Windows.

      //Qt mqtt
      git clone https://code.qt.io/qt/qtmqtt.git

      cd qmqtt
      mkdir build
      cd build

      //Untubu
      ~/Qt/5.10.0/gcc_64/bin/qmake qmake -r ..

      //mac Os
      ~/Qt/5.10.0/clang_64/bin/qmake qmake -r ..

      make
      sudo make install

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

        Hi,

        If you are using a Qt version comping from the official installer, then there's no need for sudo as, by default, the installation is done in the user home folder. Therefore unless the installation was made in another folder because of multiple users on the machine don't use sudo at all.

        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
        2
        • Egn1n3E Egn1n3

          It seems QT for Automation is currently only available under commercial license so when you run Qt maintenance tool you won't be able to select it (at least I can't).

          According to this article: http://blog.qt.io/blog/2017/08/14/introducing-qtmqtt-protocol/ it will become available as open source as the comments show this: "As http://blog.qt.io/blog/2017/08/14/qt-for-automation/ indicates, it will be available as GPL3 and commercial. There is some infrastructural work to be done, but I hope we can put the repository online soon."

          I installed/compiled Qtmqtt as a separate module by following the installation instructions for Linux. I presume it is similar for Windows. Hopefully later this week I have some time to try it out on Windows.

          //Qt mqtt
          git clone https://code.qt.io/qt/qtmqtt.git

          cd qmqtt
          mkdir build
          cd build

          //Untubu
          ~/Qt/5.10.0/gcc_64/bin/qmake qmake -r ..

          //mac Os
          ~/Qt/5.10.0/clang_64/bin/qmake qmake -r ..

          make
          sudo make install

          N Offline
          N Offline
          nimbusgb
          wrote on last edited by
          #4

          @Egn1n3 Thanks for that. I'll have to read up on 'installing a seperate module ' as i have spent about 3 days trying that already. The docs say things like 'clone the repository' but no idea of where to clone things / directory names or locations etc. when I try to run qMake or other makes the makes don't run or dont build anything.

          frustrating as I'm determined to use QT but the vertical learning curve is frustrating.

          aha_1980A 1 Reply Last reply
          0
          • N nimbusgb

            @Egn1n3 Thanks for that. I'll have to read up on 'installing a seperate module ' as i have spent about 3 days trying that already. The docs say things like 'clone the repository' but no idea of where to clone things / directory names or locations etc. when I try to run qMake or other makes the makes don't run or dont build anything.

            frustrating as I'm determined to use QT but the vertical learning curve is frustrating.

            aha_1980A Offline
            aha_1980A Offline
            aha_1980
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @nimbusgb

            why not follow the few steps named by @Egn1n3
            ?

            if you have problems somewhere, come back here with the error. many other have already succeed - you can too.

            Qt has to stay free or it will die.

            1 Reply Last reply
            2
            • Egn1n3E Offline
              Egn1n3E Offline
              Egn1n3
              wrote on last edited by Egn1n3
              #6

              @nimbusgb Ok, I had my first steps with installing Qtmqtt in Windows. So far I had to install three additional packages: perl, cmake and git.

              Installing perl: http://strawberryperl.com/
              Installing cmake: https://cmake.org/download/
              Installing git: https://gitforwindows.org/

              Once installed, I opened git and executed: git clone https://code.qt.io/qt/qtmqtt.git

              Then I opened Qtcreator and opened one of the examples from the just downloaded qtmqtt dir. This way I was able to compile and execute an example.

              Now I need to find out how to compile it as module. To be continued....

              Update:
              I am now able to build the mqtt module as well. This is what I did:

              1. Download via git the qtmqtt source files
              2. Open cmd window and run: C:\Qt\5.1\mingw53_32\bin\qtenv2.bat
                You will get a response like "Setting up environment for Qt usage...."
              3. cd into dir where git downloaded the source files, like: cd C:\user\myname\qtmqtt
              4. Execute: qmake -r
              5. Execute: C:/Qt/Tools/mingw530_32/bin/mingw32-make install

              Now open Qtcreator and build your apps using qtmqtt library.

              Note the above assumes that you installed the mingw32 compiler using Qtmaintenance tool.

              aha_1980A 1 Reply Last reply
              3
              • Egn1n3E Egn1n3

                @nimbusgb Ok, I had my first steps with installing Qtmqtt in Windows. So far I had to install three additional packages: perl, cmake and git.

                Installing perl: http://strawberryperl.com/
                Installing cmake: https://cmake.org/download/
                Installing git: https://gitforwindows.org/

                Once installed, I opened git and executed: git clone https://code.qt.io/qt/qtmqtt.git

                Then I opened Qtcreator and opened one of the examples from the just downloaded qtmqtt dir. This way I was able to compile and execute an example.

                Now I need to find out how to compile it as module. To be continued....

                Update:
                I am now able to build the mqtt module as well. This is what I did:

                1. Download via git the qtmqtt source files
                2. Open cmd window and run: C:\Qt\5.1\mingw53_32\bin\qtenv2.bat
                  You will get a response like "Setting up environment for Qt usage...."
                3. cd into dir where git downloaded the source files, like: cd C:\user\myname\qtmqtt
                4. Execute: qmake -r
                5. Execute: C:/Qt/Tools/mingw530_32/bin/mingw32-make install

                Now open Qtcreator and build your apps using qtmqtt library.

                Note the above assumes that you installed the mingw32 compiler using Qtmaintenance tool.

                aha_1980A Offline
                aha_1980A Offline
                aha_1980
                Lifetime Qt Champion
                wrote on last edited by aha_1980
                #7

                @Egn1n3 well done!

                so can we close this topic as SOLVED?

                Qt has to stay free or it will die.

                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