Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Qt Serial Port



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


  • Lifetime Qt Champion

    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.



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


  • Lifetime Qt Champion

    Both should work. Are you by any chance missing QT += serialport in your .pro file ?



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


  • Lifetime Qt Champion

    Did you re-run qmake after adding it ?



  • No, I had not explicitly re-run qmake.


  • Lifetime Qt Champion

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


Log in to reply