Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Using Serial Port in QT4.8.4
QtWS25 Last Chance

Using Serial Port in QT4.8.4

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
7 Posts 5 Posters 5.4k 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.
  • E Offline
    E Offline
    Ejay
    wrote on 21 Dec 2017, 06:09 last edited by
    #1

    Hello! I want to use serial port in Qt 4.8.4. I have come to know that QSerialPort has been included from Qt 5.1, but that cannot be used for my project. I tried searching the web but did not find it helpful. Kindly assist me in finding a solution.
    Thank you.

    Environment:

    Windows 8.1
    Visual Studio 2008 SP1 trial with Qt 4.8.4 Plugin
    Platform: Win CE 7

    J 1 Reply Last reply 21 Dec 2017, 06:12
    0
    • E Ejay
      21 Dec 2017, 06:09

      Hello! I want to use serial port in Qt 4.8.4. I have come to know that QSerialPort has been included from Qt 5.1, but that cannot be used for my project. I tried searching the web but did not find it helpful. Kindly assist me in finding a solution.
      Thank you.

      Environment:

      Windows 8.1
      Visual Studio 2008 SP1 trial with Qt 4.8.4 Plugin
      Platform: Win CE 7

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 21 Dec 2017, 06:12 last edited by
      #2

      @Ejay Take a look at this: https://wiki.qt.io/Qt_Serial_Port
      You can build QtSerialport for Qt 4.8 as well.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      3
      • E Offline
        E Offline
        Ejay
        wrote on 21 Dec 2017, 06:57 last edited by
        #3

        I am facing trouble to install the QSerialPort libraries to Qt 4.8. So far i have no idea how to do it for windows

        M 1 Reply Last reply 21 Dec 2017, 06:59
        0
        • E Ejay
          21 Dec 2017, 06:57

          I am facing trouble to install the QSerialPort libraries to Qt 4.8. So far i have no idea how to do it for windows

          M Offline
          M Offline
          mrjj
          Lifetime Qt Champion
          wrote on 21 Dec 2017, 06:59 last edited by
          #4

          @Ejay

          Hi
          Did you already compile it with vs 2008 ?

          1 Reply Last reply
          0
          • E Offline
            E Offline
            Ejay
            wrote on 21 Dec 2017, 07:52 last edited by Ejay
            #5

            @mrjj I cloned the git repository for qt4-dev. I imported the .pro file with the Qt Addin and built it in VS2008. The built is successful, but i do not know how to make use of it as library

            A 1 Reply Last reply 21 Dec 2017, 08:29
            0
            • E Ejay
              21 Dec 2017, 07:52

              @mrjj I cloned the git repository for qt4-dev. I imported the .pro file with the Qt Addin and built it in VS2008. The built is successful, but i do not know how to make use of it as library

              A Offline
              A Offline
              aha_1980
              Lifetime Qt Champion
              wrote on 21 Dec 2017, 08:29 last edited by
              #6

              @Ejay said in Using Serial Port in QT4.8.4:

              @mrjj I cloned the git repository for qt4-dev. I imported the .pro file with the Qt Addin and built it in VS2008. The built is successful, but i do not know how to make use of it as library

              the next step ist install. it should be something like nmake install. if you can't run it from VS, then you will have to open a Visual Studio Command Prompt.

              Afterwards it can be used by adding CONFIG+=SERIALPORT to your projects .pro file.

              I have done this some times by following the instructions mentioned earlier in this thread and it just worked.

              Qt has to stay free or it will die.

              1 Reply Last reply
              3
              • K Offline
                K Offline
                kuzulis
                Qt Champions 2020
                wrote on 22 Dec 2017, 10:03 last edited by kuzulis
                #7

                If you want to have it for the WINCE7 target, then:

                • at first - you must to compile the Qt4.x for this target.
                • at second - integrate compiled Qt to VS2008, using addons.
                • at third - try to open the qtserialport.pro file in VS2008 for Qt with that WINCE7 target and try to compile.
                • at fourth - try to run the "nmake install" from the VS command line (or try to copy all required files to the compiled Qt4.x location, this already was discussed on this forum).

                In case you can not compile QSP from the *.pro file, then you can convert a *.pro file to the vsproj file (please read the qmake documentation), and try to open a ready vsproj from VS directly to build.

                UPD: I'm forgot to say - replace the WINCE to the LINUX BSP, it will be a best way, which will save of your nerves and time. :)

                Especially, if it is your comment: https://www.toradex.com/community/questions/18488/using-serial-port-in-qt-484-with-vs2008.html :)

                1 Reply Last reply
                2

                1/7

                21 Dec 2017, 06:09

                • Login

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