Results 1 to 5 of 5

Thread: Error while loading shared libraries: libQtSerialPortE.so.1

  1. #1
    Join Date
    Oct 2017
    Posts
    16
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Error while loading shared libraries: libQtSerialPortE.so.1

    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.

  2. #2
    Join Date
    Jan 2017
    Posts
    58
    Thanks
    2
    Thanked 2 Times in 2 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Error while loading shared libraries: libQtSerialPortE.so.1

    Check this link http://doc.qt.io/qt-5/qtserialport-index.html and look at the qmake .pro file.

  3. #3
    Join Date
    Oct 2017
    Posts
    16
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Error while loading shared libraries: libQtSerialPortE.so.1

    Hi @ado130,
    Thanks for your reply. I did already add that to .pro file but still facing the issue.
    Any more insights.
    Thanks,
    Nagendra.

  4. #4
    Join Date
    Jan 2017
    Posts
    58
    Thanks
    2
    Thanked 2 Times in 2 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Error while loading shared libraries: libQtSerialPortE.so.1

    I found this topic, try to follow it. https://forum.qt.io/topic/49555/solv...port-trouble/7

  5. #5
    Join Date
    Oct 2017
    Posts
    16
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Thumbs up Re: Error while loading shared libraries: libQtSerialPortE.so.1

    Hi @ado130,
    Thank you,The link you shared solved the problem.

    -Nagendra

Similar Threads

  1. problem loading shared libraries
    By mickey in forum General Discussion
    Replies: 5
    Last Post: 23rd July 2016, 13:43
  2. Replies: 3
    Last Post: 24th February 2015, 09:21
  3. error while loading shared libraries
    By RolandHughes in forum General Programming
    Replies: 1
    Last Post: 13th February 2013, 17:26
  4. Replies: 4
    Last Post: 5th November 2011, 02:38
  5. Deployment (shared libraries)
    By amagdy.ibrahim in forum Qt Programming
    Replies: 5
    Last Post: 26th June 2008, 22:55

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.