Hi All,
I am pretty new to QT and trying to develop a QT application for embedded linux on emcraft imx board. I am trying to use QSerialPort to access on of my UART.

void Hardware::initHW(QObject *parent,QSerialPort *serial)
{
serial = new QSerialPort(parent);
//SerialPort for UART3
serial->setPortName("/dev/ttymxc2");
//If already Opened Close it First
if(serial->open(QIODevice::ReadWrite))
{
serial->close();
qDebug() << "port already opened";
}
//If open succssfully
if(serial->open(QIODevice::ReadWrite))
{
qDebug() << "port opened successfully";
serial->setBaudRate(QSerialPort::Baud115200);
serial->setParity(QSerialPort::NoParity);
serial->setParity(QSerialPort::NoParity);
serial->setStopBits(QSerialPort::OneStop);
serial->setFlowControl(QSerialPort::NoFlowControl);
serial->setDataBits(QSerialPort:ata8);
serial->write("QT Started");
}
}
When I try to run this application from my embedded linux, I am seeing the following error.
./i7widget: error while loading shared libraries: libQtSerialPortE.so.1: cannot open shared object file: No such file or directory
Can you please help me to fix this problem.

Thanks,
Nagendra.