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. Missing QSerialPort files.
Forum Updated to NodeBB v4.3 + New Features

Missing QSerialPort files.

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 627 Views 1 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.
  • M Offline
    M Offline
    Malcolmc
    wrote on last edited by
    #1

    I have just loaded the latest (6.6.2) into Windows 10 but cannot compile my program which contains calls to the QSerialPort functions.

    The error is failed to find the file -
    Failed to find required Qt component "SerialPort".

    Expected Config file at
    "C:/Qt/6.6.2/mingw_64/lib/cmake/Qt6SerialPort/Qt6SerialPortConfig.cmake"
    does NOT exist

    There appears to be no support for the serial ports. Is this correct ?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      Malcolmc
      wrote on last edited by
      #2

      OK - solved it.
      I added using the maintenance tool.
      Pity the use of this tool is not noted in the QSerialPort documentation.

      Pl45m4P 1 Reply Last reply
      0
      • M Malcolmc has marked this topic as solved on
      • M Malcolmc

        OK - solved it.
        I added using the maintenance tool.
        Pity the use of this tool is not noted in the QSerialPort documentation.

        Pl45m4P Offline
        Pl45m4P Offline
        Pl45m4
        wrote on last edited by Pl45m4
        #3

        @Malcolmc said in Missing QSerialPort files.:

        Pity the use of this tool is not noted in the QSerialPort documentation.

        But the documentation mentions that the Qt serial port module is needed.

        See:
        CMake

        find_package(Qt6 REQUIRED COMPONENTS SerialPort)
        

        QMake

        QT += serialport
        
        • https://doc.qt.io/qt-6/qserialport.html

        If you don't have it, of course it doesn't work.
        And whether you have installed it before, QSerialPort can't know.
        However how you install a module is described here:

        • https://doc.qt.io/qt-6/get-and-install-qt.html

        If debugging is the process of removing software bugs, then programming must be the process of putting them in.

        ~E. W. Dijkstra

        1 Reply Last reply
        2

        • Login

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