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: Creating Qt application



Hi.

This is the first time I work with TI Sitara for embedded linux application.

I have a question about AM437X EVM : How to use QTCreator to develop application using CAN, Audio, Ethernet, USB, Camera,... something else on the EVM.

I have finished the GUI Lab in "Sitara Linux Training_Hands on with Qt.pdf" successfully, but I don't see any documentation for another EVM's component. So I have tried to learn from QT example.

The first is Can bus example, and QT showed "Unknow module serialbus". I think the proccessor sdk doesn't support Qtserialbus. Then, I build qtserialbus.git separately but it still failed at make step.

I have a little confusing and need help for right way. My project is so urgent.

Here is my system :

Host OS : Linux 16.04 LTS

Processor SDK : ti-processor-sdk-linux-am437x-evm-04.02.00.09-Linux-x86-Install.bin

IDE : QTcreator 4.5.0

Hope receive useful help.

Thanks a lot !

  • Hello Phuc,

    To include the Qt Serial Bus in your project you need to cross-compile it in this way.

    $ sudo apt-get install git build-essential python diffstat texinfo gawk chrpath dos2unix wget unzip socat doxygen libc6:i386 libncurses5:i386 libstdc++6:i386 libz1:i386

    $ sudo dpkg-reconfigure dash
    # Select "No" when prompted.

    $ wget https://releases.linaro.org/components/toolchain/binaries/6.2-2016.11/arm-linux-gnueabihf/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf.tar.xz
    $ tar -Jxvf gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf.tar.xz -C $HOME

    $ git clone git://arago-project.org/git/projects/oe-layersetup.git tisdk
    $ cd tisdk
    $ ./oe-layertool-setup.sh -f configs/processor-sdk/processor-sdk-04.02.00.09-config.txt
    $ cd build
    $ . conf/setenv
    $ export PATH=$HOME/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin:$PATH
    $ MACHINE=am437x-evm bitbake qtserialbus

    cp -r <tisdk>/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/qtserialbus/5.7.1+gitAUTOINC+768b2d4636-r0/image/usr/ <Processor SDK>/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/

    Then transfer to your board and install the ipks from <tisdk>/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/qtserialbus/5.7.1+gitAUTOINC+768b2d4636-r0/deploy-ipks/armv7ahf-neon/ with opkg to be able to find the qtserialbus on your target.


    Best regards,
    Kemal

  • Hi Kermal.
    With your help, I finished a part of my project with Qtserialbus.
    Now, I turn to do with GPIO. I take all day to find out how to control GPIO - J30 on my EVM with QT but didnn't find out useful information.
    Because my project is urgent, the time is very limited so please help me for an instruction.
    Thanks a lot !
    Phuc Chinh.
  • Refer to this project, if you like it, give it a star.