AnsweredAssumed Answered

Building a Qt applications for i.MX6Q

Question asked by Brian Huang on Sep 17, 2015

I want to build a simple Qt hello world application for i.MX6Q.

I follow the below setps.

1.MACHINE=imx6qsabresd source fsl-setup-release.sh -b imx6qsabresd_x11_qt5 -e x11

2.bitbake meta-toolchain-qt5. And I got a shellscript

~/work/build/tmp/deploy/sdk/poky-glibc-x86_64-meta-toolchain-qt5-cortexa9hf-vfp-neon-toolchain-1.7.sh

 

3.sh  ~/work/build/tmp/deploy/sdk/poky-glibc-x86_64-meta-toolchain-qt5-cortexa9hf-vfp-neon-toolchain-1.7.sh

4.Install qtcreator  and  edit the /home/brian/Qt5.5.0/Tools/QtCreator/bin/qtcreator.sh,add "source /opt/poky/1.7/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi"

 

source /opt/poky/1.7/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi

#! /bin/sh

 

makeAbsolute() {

    case $1 in

        /*)

            # already absolute, return it

            echo "$1"

            ;;

        *)

            # relative, prepend $2 made absolute

            echo `makeAbsolute "$2" "$PWD"`/"$1" | sed 's,/\.$,,'

            ;;

    esac

}

 

5.

In QtCreator I set

 

Compiler as

             /opt/poky/1.7/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++

              Screenshot from 2015-09-17 20:23:40.png

 

Qt version as

                 /opt/poky/1.7/sysroots/x86_64-pokysdk-linux/usr/bin/qt5/qmake

             Screenshot from 2015-09-17 20:24:10.png

sysroot as

                     /opt/poky/1.7/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi

            Screenshot from 2015-09-17 20:25:04.png

and then I build a new project and add some to the .pro file

    

Screenshot from 2015-09-17 20:42:16.png

When I use "build all", I got a compile error as attached file " errorlog"

Do I miss somthing?

Original Attachment has been moved to: errorlog.zip

Outcomes