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. Installation QtSerialport
Forum Updated to NodeBB v4.3 + New Features

Installation QtSerialport

Scheduled Pinned Locked Moved Installation and Deployment
12 Posts 5 Posters 25.7k 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.
  • B Offline
    B Offline
    bsuarez
    wrote on last edited by
    #3

    Thank you for your reply.

    I installed QT5 using QtCreator package on ubuntu and I have no trace of QtSerialPort include files in the /usr/include/qt5 !

    The version of QtCreator package: 3.0.1-0ubuntu4
    Qt Creator 3.0.1
    Based on Qt 5.2.1 (GCC 4.8.2, 32 bit)

    What is the problem?
    thank you

    1 Reply Last reply
    0
    • JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by JKSH
      #4

      @bsuarez said:

      I installed QT5 using QtCreator package on ubuntu

      Qt Creator is only the IDE. You need to install Qt development libraries.

      The recommended way to get the libraries is from the official website: http://www.qt.io/download-open-source/

      However, you can get packages from the Ubuntu Software Center too if you want. Be aware that there are many separate packages, such as libqt5serialport5-dev.

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      0
      • SmileedeS Offline
        SmileedeS Offline
        Smileede
        wrote on last edited by
        #5

        Hi,

        I'm want to use the QSerialPort Library for QT 5.7. But I cant find any downloads and it doesn't seem to be preinstalled. I'm working on a win pc.
        Can you tell me where I can download the QSerialPort library?
        Thanks!

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

          Hi,

          It comes with your installation of Qt

          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
          • SmileedeS Offline
            SmileedeS Offline
            Smileede
            wrote on last edited by
            #7

            Hi,

            but when I try #include <QSerialPort> then I get an error "No such file or directory." I addes QT += serialport.
            On the web I found something like #include <QtSerialPort/QtSerialPort>. But is it the same library? And does it have an info library too?
            Sorry for beeing such a newbie :D

            jsulmJ 1 Reply Last reply
            0
            • SmileedeS Smileede

              Hi,

              but when I try #include <QSerialPort> then I get an error "No such file or directory." I addes QT += serialport.
              On the web I found something like #include <QtSerialPort/QtSerialPort>. But is it the same library? And does it have an info library too?
              Sorry for beeing such a newbie :D

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #8

              @Smileede How did you install Qt?
              And what do you mean by "info library"?

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

              1 Reply Last reply
              0
              • SmileedeS Offline
                SmileedeS Offline
                Smileede
                wrote on last edited by
                #9

                Thanks for your response!
                I did the installation via an online installer. Or what do you mean?
                The "info library" is the QSerialPortInfo library. Sorry for beeing unexact!

                jsulmJ 1 Reply Last reply
                0
                • SmileedeS Smileede

                  Thanks for your response!
                  I did the installation via an online installer. Or what do you mean?
                  The "info library" is the QSerialPortInfo library. Sorry for beeing unexact!

                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by
                  #10

                  @Smileede Can you check whether you have the QtSerial header files? See in Qt/5.7/mingw53_32/include/QtSerialPort. Replace mingw53_32 with what ever Qt version you installed. Maybe something went wrong during installation.

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

                  1 Reply Last reply
                  0
                  • SmileedeS Offline
                    SmileedeS Offline
                    Smileede
                    wrote on last edited by
                    #11

                    Yes, it is there! Ahh, now I got it! If I type #include <QTSerialPort/qseriaport.h> it does work :)
                    But I can also include QTSerialPort/QtSerialPort. Is there any difference between QtSerialPort and QSerialPort?

                    Thank you for your help!

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

                      There's always one basic that should be done: did you re-run qmake after you added QT += serialport to your .pro file ?

                      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