Setup QT Creator with Yocto Build

Document created by Joerg-SH on Jul 30, 2013Last modified by Joerg-SH on Oct 13, 2015
Version 2Show Document
  • View in full screen mode

bitbaked meta-toolchain-qt

 

Install it  with

 

~/yocto/build/tmp/deploy/sdk$ poky-eglibc-x86_64-arm-toolchain-qt-1.4.1.sh

 

Download Qtcreator from here http://qt-project.org/downloads

and Install it to Your home directory

 

edit the bin/qtcreator.sh

source /opt/poky/1.4.1/environment-setup-armv7a-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
}

 

 

....

To do it before "#! /bin/sh" is IMPORTANT!!!!

 

 

In QtCreator i set

Compiler as

               /opt/poky/1.4.1/sysroots/x86_64-pokysdk-linux/usr/bin/armv7a-vfp-neon-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++

 

Qt version as

        

                     /opt/poky/1.4.1/sysroots/x86_64-pokysdk-linux/usr/bin/qmake

sysroot as

 

                    /opt/poky/1.4.1/sysroots/armv7a-vfp-neon-poky-linux-gnueabi

Put them in a Kit

kit.png

 

 

For connection to Your Board click on  Device  --->    Manage

 

 

Build a new project

 

and add some to the .pro file

 

edit_pro.png

 

 

Building the image for Your Board:

 

 

add        

EXTRA_IMAGE_FEATURES = "debug-tweaks ssh-server-openssh" to Your localconfig

 

bitbake core-image-sato-sdk

 

set a password to root  via

ssh root@[boardip]

passwd

 

test connection via

 

sftp  root@[boardip]

 

start qtcreator

 

./qtcreator.sh

 

 

 

Message was edited by: Joerg Boge

 

Good Video to get more Information about Programming are this

 

Beaglebone: LCD Touchscreen GUI Applications for Embedded Linux - YouTube

 

Beaglebone: Qt Creator for C++ ARM Embedded Linux Development - YouTube

 

Beaglebone: Example Qt Embedded Linux Application - YouTube

 

It is for Beagelbone but for programming Qt it is a good start.

 

Dieses Dokument wurde aus folgender Diskussion erzeugt: Setup QT Creator with Yocto Build

4 people found this helpful

Attachments

    Outcomes