Qt World Summit: Register Today!

Where do I find 'Qt for Automation' ?

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

  • 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

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

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

    sudo make install

  • Lifetime Qt Champion


    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.

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

  • Lifetime Qt Champion


    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.

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

    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.

  • Lifetime Qt Champion

    @Egn1n3 well done!

    so can we close this topic as SOLVED?

Log in to reply