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

qtmodbus library installation

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 3 Posters 1.5k 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.
  • M Offline
    M Offline
    musclemania05
    wrote on last edited by
    #1

    I'm trying to install the qtmodbus library and having a hard time doing it, I am new to qt creator can some help me access the these functions?

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

      Hi and welcome to devnet,

      Where did you get it from ?
      What did you try ?
      What failure did you get ?
      What version of Qt are you using ?
      On what platform ?

      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
      • M Offline
        M Offline
        musclemania05
        wrote on last edited by
        #3

        I thought you had to enter some of these commands in the make file

        QT += serialbus
        TARGET = modbusmaster

        and when I use
        #include <QModbusDevice>
        #include <QModbusRtuSerialMaster>

        in my program it says it cant recognize these files?

        I am running qt 4.2.1 community on windows

        J.HilkJ 1 Reply Last reply
        0
        • M musclemania05

          I thought you had to enter some of these commands in the make file

          QT += serialbus
          TARGET = modbusmaster

          and when I use
          #include <QModbusDevice>
          #include <QModbusRtuSerialMaster>

          in my program it says it cant recognize these files?

          I am running qt 4.2.1 community on windows

          J.HilkJ Offline
          J.HilkJ Offline
          J.Hilk
          Moderators
          wrote on last edited by
          #4

          @musclemania05
          the more important question is do you use Qt 5.8?QModbus class is not available pre 5.8

          Also did you rerun qmake after adding QT += serialbus to your project file?


          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          1 Reply Last reply
          1
          • M Offline
            M Offline
            musclemania05
            wrote on last edited by
            #5

            0_1492038483151_upload-072e2bee-62bd-4a7c-9e3d-18f9dd7f94da

            I guess I am?? What should I been running and is the make file the .pro extension?

            J.HilkJ 1 Reply Last reply
            0
            • M musclemania05

              0_1492038483151_upload-072e2bee-62bd-4a7c-9e3d-18f9dd7f94da

              I guess I am?? What should I been running and is the make file the .pro extension?

              J.HilkJ Offline
              J.HilkJ Offline
              J.Hilk
              Moderators
              wrote on last edited by
              #6

              @musclemania05
              in the top menubar select Build -> CleanAll and when that is done: Build-> Run qmake. This gives you, in 95% of all cases, a clean build.

              I had at least 2 cases where I had to change the build path too, or changes done in the Designer were not recognized, deleting the build folder had no effect either. But thats not related to your issue.

              If you don't run qmake after adding a new module, the classes will not find the references.


              Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


              Q: What's that?
              A: It's blue light.
              Q: What does it do?
              A: It turns blue.

              1 Reply Last reply
              1
              • M Offline
                M Offline
                musclemania05
                wrote on last edited by
                #7

                what version of Qt do I need to download?

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

                  The latest and you should be good

                  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