24 Replies Latest reply on Jul 31, 2015 12:37 AM by Qiang Wang Branched to a new discussion.

    Setup QT Creator with Yocto Build

    Joerg-SH Level 1

      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        

      TOOLCHAIN_HOST_TASK_append = " nativesdk-python-subprocess"

      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

       

      Nachricht geändert durch Joerg Boge Thanks to Diego Gonzalez