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 -b imx6qsabresd_x11_qt5 -e x11

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

~/work/build/tmp/deploy/sdk/  ~/work/build/tmp/deploy/sdk/

4.Install qtcreator  and  edit the /home/brian/Qt5.5.0/Tools/QtCreator/bin/,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,/\.$,,'






In QtCreator I set


Compiler as


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


Qt version as


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

sysroot as


            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: