This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM572x QT serial port application error

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

  • Hello vaishnav,

    Please, check this thread.

    Best regards,
    Kemal

  • Hello Kemal,

    I compile the code using the following method.

    cd to the project directory
    and source /opt/ti-processor-sdk-linux-am57xx-evm-02.00.02.11/linux-devkit/environment-setup

    Then qmake
    make

    but I am getting an error after qmake ,
    Project ERROR: Unknown module(s) in QT: serialport


    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

    I have also worked with qt5 multimedia widgets wherein In order to successfully compile , I had copy and edit the version of the qt5 multimedia library in the sdk directory path from my host pc.

    1. copy from /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_multimedia.pri

    to /opt/ti-processor-sdk-linux-am57xx-evm-02.00.02.11/linux-devkit/sysroots/cortexa15hf-vfp-neon-linux-gnueabi/usr/lib/qt5/mkspecs/modules/qt_lib_multimedia.pri

    2. copy from /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_multimediawidgets.pri

    to /opt/ti-processor-sdk-linux-am57xx-evm-02.00.02.11/linux-devkit/sysroots/cortexa15hf-vfp-neon-linux-gnueabi/usr/lib/qt5/mkspecs/modules/qt_lib_multimediawidgets.pri

    3 . Change the version number in the individual files.

    QT.multimedia.VERSION = 5.5.0
    QT.multimedia.MAJOR_VERSION = 5
    QT.multimedia.MINOR_VERSION = 5
    QT.multimedia.PATCH_VERSION = 0

    ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

    Do the sdk have not got the libraries support for QT serial port

    Thanks and Regards
    vaishnav
  • Yes, qtserial is not included in the Processor SDK.