Help needed to get Qt5 app deployed in T20 on Colibri Dev Board 3.1A

I have installed repo and sync it following instructions here

So now I think I need to run bitbake. ultimately my purpose is an image for QT deployment
so which image I should build?

Build the Target Image for Qt
On the target module you will need the Qt runtime environment installed. Therefor a new image with the Qt run-time libraries to allow executing Qt applications on the target is required.
For Qt 5, build and setup with OpenEmbedded as per High performance, low power Embedded Computing Systems | Toradex Developer Center

angstrom-lxde-image: Qt 5 X11 image with Angstrom LXDE desktop environment
console-trdx-image: Qt 5 image with framebuffer EGLFS without X11

$ bitbake -k angstrom-lxde-image

$ bitbake -k console-trdx-image

For Qt 4.8:
angstrom-qt-x11-image : Qt X11 image (recommended for Tegra and i.MX6 based modules)
qt4e-demo-image: Qt Embedded image (recommended for VFxx)

$ bitbake -k qt4e-demo-image

Note: Depending on the demo application Qt might use continuously CPU and/or GPU resources which can lead to a safety shutdown if operated without cooling solution.

Assuming version 2.6.1, the meta-qt5 layer is already included.

Change the “build/conf/local.conf” file to add the required packages:

 PREFERRED_PROVIDER_psplash-support = "psplash-angstrom"
+
+IMAGE_INSTALL_append = " qtbase qtbase-fonts qtbase-plugins cinematicexperience"

and then build the angstrom-lxde-image.

MACHINE=colibri-t20 bitbake angstrom-lxde-image

This would give an angstrom-lxde image with Qt5 and X11. Also build the toolchain/SDK as per here to develop for the target on host with Qt creator.

Thanks. going to try.

May be also you can try the angstrom-qt5-x11-image

Why do you invoke qtcreator with sudo? Can you try without it please?

Sure. will do. I thought this was a permission issue.

Compile output for PC

17:48:12: Running steps for project
UB_QT_Nov16_Proj3…
17:48:12: Configuration unchanged, skipping qmake step.
17:48:12: Starting: “/usr/bin/make”
make: Nothing to be done for `first’.
17:48:12: The process “/usr/bin/make” exited normally.
17:48:12: Elapsed time: 00:00.

application run output

Starting
/home/serpent/QTPrjcts/build-UB_QT_Nov16_Proj3-UB_Ubuntu_PC-Debug/UB_QT_Nov16_Proj3…
Failed to start program. Path or permissions wrong?
/home/serpent/QTPrjcts/build-UB_QT_Nov16_Proj3-UB_Ubuntu_PC-Debug/UB_QT_Nov16_Proj3
exited with code -1

Delete your earlier project and restart again. Please don’t run anything with sudo.

Hi,
I have build the Target image and SDK with the below commands

  MACHINE=colibri-t20 bitbake angstrom-lxde-image
    bitbake -k meta-toolchain-qt5
    //Then 
    ./deploy/sdk/angstrom-glibc-x86_64-armv7at2hf-vfp-v2015.12-toolchain.sh -S	//  run from oe-core        
     folder in my case
    //Then`. /usr/local/oecore-x86_64/environment-setup-armv7at2hf-vfp-angstrom-linux-gnueabi  // script   
    sourced
   //Then from the same command window invoked
        sudo qtcreator
        //Qt started` 

Qt was already installed in my system
The compiler and SDK configuration screen shots I am attaching with this post
But the compilation and running is not succeeding
When I build a small form example for Toradex target in Release mode output like this

17:23:55: Running steps for project UB_TestPjctNov2016...
17:23:55: Starting: "/usr/local/oecore-x86_64/sysroots/x86_64-angstromsdk-linux/usr/bin/qmake2" /home/serpent/QTPrjcts/UB_TestPjctNov2016/UB_TestPjctNov2016.pro -r -spec linux-gnueabi-oe-g++
sh: 1: -d: not found
17:23:55: The process "/usr/local/oecore-x86_64/sysroots/x86_64-angstromsdk-linux/usr/bin/qmake2" exited normally.
17:23:55: Starting: "/usr/bin/make" 
../UB_TestPjctNov2016/mainwindow.ui -o ui_mainwindow.h
make: execvp: ../UB_TestPjctNov2016/mainwindow.ui: Permission denied
make: *** [ui_mainwindow.h] Error 127
17:23:55: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project UB_TestPjctNov2016 (kit: UB_ToradexKit)
When executing step 'Make'
17:23:55: Elapsed time: 00:00.

and when I build for desktop machine in debug mode in QT output below

17:26:26: Running steps for project UB_TestPjctNov2016...
17:26:26: Configuration unchanged, skipping qmake step.
17:26:26: Starting: "/usr/bin/make" 
../UB_TestPjctNov2016/mainwindow.ui -o ui_mainwindow.h
make: execvp: ../UB_TestPjctNov2016/mainwindow.ui: Permission denied
make: *** [ui_mainwindow.h] Error 127
17:26:26: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project UB_TestPjctNov2016 (kit: UB_Ubuntu_PC)
When executing step 'Make'
17:26:26: Elapsed time: 00:00.

Now I dont know what is missing in the qt configuration.
I am not seeing any entry in the sysroots colum of Development PC in the kits tab of build and run settings.

Please help.

Screen Shot images of QT configurations