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 “//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
↧