Hello All,
I am trying to execute a simple qt application with below code
///////////////////////////////// snippet of application code ///////////////////////////////////////////
foreach (const QSerialPortInfo &info, QSerialPortInfo::availablePorts()) {
qDebug() << "Name : " << info.portName();
qDebug() << "Description : " << info.description();
qDebug() << "Manufacturer: " << info.manufacturer();
QSerialPort serial;
serial.setPort(info);
if (serial.open(QIODevice::ReadWrite))
serial.close();
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Code is build & run successfully in my host machine ubuntu 14.04 LTS and qt version is Based on Qt 5.2.1 (GCC 4.8.2, 64 bit).
When I am trying to compile it for the target TI EVM AM572x using the sdk ti-processor-sdk-linux-am57xx-evm-02.00.02.11 , I am getting an error "Project ERROR: Unknown module(s) in QT: serialport".
I have added the QT += serialport in the .pro file of the application.
Thanks and Regards
vaishnav