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. Qt 5.1.1 Ubuntu 32bit Install - QSerialPort No Such File Or Directory
QtWS25 Last Chance

Qt 5.1.1 Ubuntu 32bit Install - QSerialPort No Such File Or Directory

Scheduled Pinned Locked Moved Installation and Deployment
4 Posts 2 Posters 3.3k 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.
  • W Offline
    W Offline
    winchymatt
    wrote on last edited by
    #1

    Hi,

    I have just removed my previous install of Qt 4.x and updated to 5.1.1 to get the Serial port functionality, however, when I try to #include <QSerialPort> the compiler can't find the header files.

    I have added the QT += serialport to the project file, and can see the QSerialPort folder within the install directory: /home/matt/Qt5.1.1/5.1.1/gcc/include

    Could it be that the installer has not added the new include paths? If so where are these set so I can manually check them. I have tied uninstall/reinstall but no luck. The same install on my Win7 machine worked fine.

    regards

    Matt.

    1 Reply Last reply
    0
    • W Offline
      W Offline
      winchymatt
      wrote on last edited by
      #2

      Quick update, I have got around this issue by adding the install directory include path to the project file:

      INCLUDEPATH += /home/matt/Qt5.1.1/5.1.1/gcc/include

      Surely I shouldn't need to do this?

      1 Reply Last reply
      0
      • W Offline
        W Offline
        winchymatt
        wrote on last edited by
        #3

        Finally got to the bottom of this. It was because the project had previously been created in Qt 4.x I had to re-create the project in Qt5 to get everything to work!

        1 Reply Last reply
        0
        • K Offline
          K Offline
          kuzulis
          Qt Champions 2020
          wrote on last edited by
          #4

          The QtSerialPort module is an addon, so the Qt5.1 package (I mean a base package) are not contains this addon.

          You should install this addon with use "apt-get" from your Ubuntu's repo (if QtSerialPort for Qt5.1 is available for Ubuntu). Or you can take the official Qt5.1 installer for Linux, select appropriate boxes and install Qt5.1 with an QtSerialPort.

          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