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. How to build qtserialport source code
Forum Update on Monday, May 27th 2025

How to build qtserialport source code

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 1.6k 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.
  • V Offline
    V Offline
    victor wang
    wrote on last edited by victor wang
    #1

    I'm using debian for my OS system and with qt5.5.
    I have the issue when I qmak work.pro.
    It will giving me this error.

    Project ERROR: Unknown module(s) in QT: serialport
    

    So I try to build serialport source code.
    I do it with this website.
    QT website

    But when I running "make" then it will give me this error.

    In file included from qserialport.cpp:41:0:
    qserialport_p.h:52:35: fatal error: private/qringbuffer_p.h: No such file or directory
     #include <private/qringbuffer_p.h>
                                       ^
    compilation terminated.
    Makefile:379: recipe for target '.obj/qserialport.o' failed
    make[2]: *** [.obj/qserialport.o] Error 1
    make[2]: Leaving directory '/home/qtserialport/src/serialport'
    Makefile:38: recipe for target 'sub-serialport-make_first' failed
    make[1]: *** [sub-serialport-make_first] Error 2
    make[1]: Leaving directory '/home/qtserialport/src'
    Makefile:40: recipe for target 'sub-src-make_first' failed
    make: *** [sub-src-make_first] Error 2
    

    I went to check is there any file name qringbuffer_p.h.
    And there is no file!

    I wondering why qt website will put a source code that missing some files?
    How can i fix this problem?
    Please help!
    Thanks in advanced.

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

      Hi,

      The QtSerialPort module is officially part of Qt since version 5.1. If you are using your distribution provided Qt, then just install the corresponding package.

      The clone you made is likely the 5.9 series.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      V 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        The QtSerialPort module is officially part of Qt since version 5.1. If you are using your distribution provided Qt, then just install the corresponding package.

        The clone you made is likely the 5.9 series.

        V Offline
        V Offline
        victor wang
        wrote on last edited by
        #3

        @SGaist
        Actually I install this on my computer.

        apt-get install qt5-default
        

        Am I install the wrong one?

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

          No, but it doesn't install absolutely everything. You likely need to install libqt5serialport5-dev.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          V 1 Reply Last reply
          5
          • SGaistS SGaist

            No, but it doesn't install absolutely everything. You likely need to install libqt5serialport5-dev.

            V Offline
            V Offline
            victor wang
            wrote on last edited by
            #5

            @SGaist
            Thank you so much I can qmake work.pro without any errors now!

            1 Reply Last reply
            1

            • Login

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