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. [Solved]QSerialPort: undefined reference. qt 5.1.1, linux x64
Forum Updated to NodeBB v4.3 + New Features

[Solved]QSerialPort: undefined reference. qt 5.1.1, linux x64

Scheduled Pinned Locked Moved Solved Installation and Deployment
4 Posts 3 Posters 9.4k 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.
  • V Offline
    V Offline
    vaychick
    wrote on last edited by
    #1

    I cannot compile a project with QSerialPort for qt 5.1.1. "undefined reference to QSerialPort::QSerialPort(QObject*) although the qserialport.h exists in qt directory and it seems like it relates to QtCore lib

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

      Hi,

      Did you add

      QT += serialport

      to 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

      R 1 Reply Last reply
      1
      • V Offline
        V Offline
        vaychick
        wrote on last edited by
        #3

        bq. Did you add QT += serialport to your pro file ?

        Oh. It's my mistake, I'm sorry. Thank you.

        1 Reply Last reply
        0
        • SGaistS SGaist

          Hi,

          Did you add

          QT += serialport

          to your pro file ?

          R Offline
          R Offline
          Rizwan486
          wrote on last edited by
          #4

          @SGaist Thanks

          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