Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. QtonPi
  4. Installing qextserialport on RPI under QT5
Qt 6.11 is out! See what's new in the release blog

Installing qextserialport on RPI under QT5

Scheduled Pinned Locked Moved QtonPi
2 Posts 2 Posters 2.9k 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.
  • G Offline
    G Offline
    geoffml
    wrote on last edited by
    #1

    Hi,
    I have sucessfully compiled a QT5.0.1 project on my RPI which works fine and now wish to add a USB serial port. Under Windows this works fine. I have cloned qextserialport and installed the project as a shared library.
    Attaching a USB hub, lsusb shows all the device ID's as expected.
    The COM port I need is attached to ttyUSB0 as shown on boot up.
    The examples make and the uartassistant shows ttyUSBO as the only available port.
    Following the instructions I have added the line to my .pro file:
    CONFIG += extserialport // should this be qextserialport?

    In my code I have added

    #include "/<path>/src/qextserialport.h"

    and

    QextSerialPort * port = new QextSerialPort()
    I have uncommented the line
    linux*:CONFIG += qesp_linux_udev
    However, after qmake, make returns the error message:
    cannot find -lQt5ExtSerialPort
    I do not know where the reference to theQt5ExtSerialPort is from? Can anyone help please?

    Thanks

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Maybe simply consider updating to Qt 5.1 or 5.2? They both include QtSerialPort module by default: no need to install any external project to be able to work with USB port.

      (Z(:^

      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