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. Qt Serial Port

Qt Serial Port

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 2 Posters 1.8k 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.
  • AlexB89A Offline
    AlexB89A Offline
    AlexB89
    wrote on last edited by
    #1

    Hello,

    I'm having issues getting the QtSerialPort installed. I attempt to follow the instructions posted here, however, every time I attempt to Build, it returns the error:

    private/qringbuffer_p.h: No such file or directory

    After an exhaustive search for any information I've come up with nothing.

    Some more information:

    OS: ubuntu 14.04 LTS
    Qt 5.5.1 GCC 64bit kit

    During installation I had opted to install the QtSerialPort add-on. I have a folder labeled "QtSerialPort" folder in the Home->Qt5.5.1->5.5->gcc_64->include->QtSerialPort directory, and another labeled "qtserialport" in the Home->Qt5.5.1->Src directory.

    What's going wrong with this installation? Is it actually installed and I'm not properly referencing it? Any help is much appreciated. Thank you!

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

      Hi and welcome to devnet,

      Like noted on the wiki article your linked, the QtSerialPort module is already part of Qt since 5.1 so you don't need to install it by hand unless you need some bug fix that isn't already available in the current Qt version you installed.

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

        Wow, I feel insanely stupid now. I had be including it as:

        #include <QSerialPort>
        #include <QSerialPortInfo>

        rather than

        #include <QtSerialPort/QSerialPort>
        #include <QtSerialPort/QSerialPortInfo>

        Thanks for getting back to me so quickly.

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

          Both should work. Are you by any chance missing QT += serialport in 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
          • AlexB89A Offline
            AlexB89A Offline
            AlexB89
            wrote on last edited by
            #5

            No, I had added that and it hadn't worked.

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

              Did you re-run qmake after adding it ?

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

                No, I had not explicitly re-run qmake.

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

                  Then do that. You have a menu entry to manually run qmake.

                  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