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.

Linux/AM4378: Error while compiling QT example project

Part Number: AM4378

Tool/software: Linux

Dear Sir/Madam,

I am trying to create QT application using TI-2.00.00 SDK. I got the below error while issuing " make" command,

"Project ERROR: Unknown module(s) in QT: declarative."

I am using  QT example project (QT5- declarative) which is available inside TI-2.00.00 SDK.  I am building project for am437x-gp-evm. My host system is Ubuntu 14.04

I refer below QT guidelines link.

processors.wiki.ti.com/.../Sitara_Linux_Training:_Hands_on_with_QT

How do i solve this issue?

Regards,

Winiston.P

  • Hello Winiston,

    Seems you are building desktop app. Have you invoke the qtcreator from the terminal. Please, follow the steps strictly and don't forget to uncheck the shadow build check box.

    Best regards,
    Kemal
  • Dear Kemal,

     I build other project files and executed in am437x-gp-evm board. It works fine. But when i compile project files which is available inside TI-2.00.00 SDK ,    It gives below error .

    "Project ERROR: Unknown module(s) in QT: declarative."

    Note: I tried to compile declarative QT projects which is available at  "ti-2.00.00_SDK\filesystem\tisdk-rootfs-image-am437x-evm\usr\share\qt5\examples\declarative "

     I do not use QT creater separately.  I am using QT compiler which is available inside ti-2.00.00 SDK.  

    I am using following command for building QT project.

    • source /home/sitara/AM437x/ti-processor-sdk-linux-<machine>-<sdk version>/linux-devkit/environment-setup

    Navigate the project file folder and execute below commands

    • qmake declarative.pro
    • make

    I got the error "Project ERROR: Unknown module(s) in QT: declarative."  when i execute "make" command.

    Where does shadow check box reside?

    Should i set target(arm) setup for every project ?

    what does "Project ERROR: Unknown module(s) in QT: declarative."   indicate?

    Regards,

    Winiston.P

  • Please, start with clean SDK installation, and make sure that you have the Ubuntu (Recommended) packages installed.
    I just built all declarative examples with no issues, following your commands. It only require to create two layout .json files.

  • Dear Kemal,

    I have done clean Installation and installed recommended packages you mentioned. Still it is giving same error while compiling declarative example. But when i compile other examples(except declarative) available inside QT5 example folder, it works fine. Now i managed with examples called "quick". No issues now. 

    Thank for your time and consideration.

    Regards,

    Winiston.P

  • Dear Kemal,

    Now i compiled dialcontrol example which resides inside example program. I want to receive serial port data and trying to move the needle based on serial port(RS232) data.

    If i include

    #include <QSerialPort>
    #include <QSerialPortInfo>

    in the main.cpp ,
    I got the error "Fatal Error : QSerialPort : No such file or directory".

    Is there serial port module included in QT library? How do i implement projects with serial port(RS232) ?

    Regards,
    Winiston.P
  • Please, check this thread.

  • Dear Kemal,

    Thanks for quick reply. I tried this tread. But i am not able to succeed . I plan to use latest QT creator(5.8) since it has inbuilt serial port library.

    I installed QT creator in my linux host machine.

    I followed the below link to do cross compiling for arm(am4378).

    processors.wiki.ti.com/.../Sitara_Linux_Training:_Hands_on_with_QT

    I set up compiler ( SDK qmake path) ,debugger path also and followed guidelines which described in the above link.

    Now i am not able to compile for "arm "device. It is saying "QT version is not installed properly, please run make install.

    In the QT creator , under "Build& run " =>"QT version"  at the bottom of the screen, it shows the same message ("QT version is not installed properly, please run make install" )

    under "Build& run " =>"Kits"=>"QT version"=>, it shows QT 5.5.0(qt5) invalid.

    How do i compile for arm?

    Regards,

    Winiston.P

  • While cross-compiling for AM4378 the Qt creator takes the libraries from the SKD. Using a QT creator(5.8) won't help in this situation since its libraries are x86 compiled from your PC. You have to import the QtSerial within the SDK.

  • Dear Kemal,

    Okay. Where does  Qtserial library available ? How do I import Qtserial into SDK?

    Regards,

    Winiston.P

  • Dear Kemal,
    Can you please send "Qtserial libraries" (libQt5serialport, libudev, etc) for arm. So that i can import to my library path and i can build application with serial port.

    Regards,
    Winiston.P
  • Here you are. I built them by the steps at this post.

    1050.libQt5SerialPort.so.5.5.0.tgz