Install it with
Download Qtcreator from here http://qt-project.org/downloads
and Install it to Your home directory
edit the bin/qtcreator.sh
case $1 in
# already absolute, return it
# relative, prepend $2 made absolute
echo `makeAbsolute "$2" "$PWD"`/"$1" | sed 's,/\.$,,'
To do it before "#! /bin/sh" is IMPORTANT!!!!
In QtCreator i set
Qt version as
Put them in a Kit
For connection to Your Board click on Device ---> Manage
Build a new project
and add some to the .pro file
TOOLCHAIN_HOST_TASK_append = " nativesdk-python-subprocess"
EXTRA_IMAGE_FEATURES = "debug-tweaks ssh-server-openssh"
to Your localconfig
set a password to root via
test connection via
Message was edited by: Joerg Boge
Nachricht geändert durch Joerg Boge Thanks to Diego Gonzalez
I using qmake to get the Makefile like this.
../../sysroots/i686-pokysdk-linux/usr/bin/qt5/qmake -spec ../../sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/lib/qt5/mkspecs/devices/linux-imx6-g++/ -o Makefile test.pro
It is no problem when i qmake.
But when i make my Makefile it will show the error like below:
arm-poky-linux-gnueabi-g++ -c -pipe -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -mfloat-abi=softfp -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I../../sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5 -I../../sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5/QtWidgets -I../../sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5/QtGui -I../../sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5/QtCore -I. -I. -I../../sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/lib/qt5/mkspecs/devices/linux-imx6-g++ -o main.o main.cpp
In file included from ../../sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5/QtGui/qwindowdefs.h:37:0,
../../sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5/QtCore/qglobal.h:39:21: fatal error: cstddef: No such file or directory
make: *** [main.o] Error 1
I'm using qt5.5 to develop my application and Ubuntu 14.04 for my OS.
I don't know why this will happened.
When i build a QT sample on Kit Warp7 occurs error: "/usr/bin/ld: cannot find -lQt5Core"
I had edited qtcreator.sh: source /opt/poky/2.1.2/environment-setup-cortexa7hf-neon-poky-linux-gnueabi
but error still occur.
Hi everibody, i work with cross-compiled with imx6, but i have a problem with qmake, i download de toolchain armv7a in this link Index of /releases/yocto/yocto-2.0/toolchain/x86_64/, but in the moment of run, don't create the qmake for cross-compiler, someones help me please, regards...
Hai Joerg ,
I followed your steps for the Qt creater configuration for yocto build.
I bitbake meta-toolchain-qt.
then installed the tool chain. and edit qt creator .sh as per the above step
I configure in my qt creator
Qt version as
But I get an error like could not start process.
I here by attach my error log please find out, and help me to solve this error
I follow your step to setup QT.
But there were some errors.
| collect2: ld returned 1 exit status
| make: *** [lto1] Error 1
| make: Leaving directory `/home/wangq/work/yocto/fsl-release-bsp/sources/poky/build/tmp/work/x86_64-pokysdk-linux/gcc-crosssdk/4.8.2-r0/gcc-4.8.2/build.x86_64-linux.x86_64-pokysdk-linux/gcc'
| make: *** [all-gcc] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/wangq/work/yocto/fsl-release-bsp/sources/poky/build/tmp/work/x86_64-pokysdk-linux/gcc-crosssdk/4.8.2-r0/temp/log.do_compile.8418)
ERROR: Task 547 (/home/wangq/work/yocto/fsl-release-bsp/sources/poky/meta/recipes-devtools/gcc/gcc-crosssdk_4.8.bb, do_compile) failed with exit code '1'
And I want to know this file（poky-eglibc-x86_64-arm-toolchain-qt-1.4.1.sh） came from where? I am new to all of this and any help would be greatly appreciated. Thanks
After "bitbake meta-toolchain-qt", I ran the script "poky-eglibc-x86_64-meta-toolchain-qt-cortexa9hf-vfp-neon-toolchain-qt-1.5.3.sh ", can you check if this script is in your /build/tmp/deploy/sdk/ directory?
if i want get poky-eglibc-x86_64-meta-toolchain-qt-cortexa9hf-vfp-neon-toolchain-qt-1.5.3.sh
the current dir is ~/work/yocto/fsl-release-bsp
the step :
2：MACHINE=imx6qsabresd source fsl-setup-release.sh -b build -e fb
is it right ?
Hello Qiang Wangq,
I actually used a somewhat different method, I just do ". setup-environment build-x11" and then go straight through "bitbake meta-toolchain-qt". Maybe you can try your method and update us with your results.
Maybe you can post the contents of /home/wangq/work/yocto/fsl-release-bsp/sources/poky/build/tmp/work/x86_64-pokysdk-linux/gcc-crosssdk/4.8.2-r0/temp/log.do_compile.8418, so we can see the error.
Hello Joerg-SH and thank you for this guide. I am using Qt 3.3 have followed your steps to setup Qt creator, and I have a few questions:
1) In specifying the kit, in the compiler tab there is an option for specifying the compiler path and make path. For the compiler path, I used "/opt/poky/1.5.3/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++" but I do not know what to put into the make path, do I just put the normal directory for the make utility?
2) I am using the latest Qt and Qt Creator, but after "bitbake meta-toolchain-qt", I think the version for Qt located within the sysroots folder is 4.8.5. Would this be OK?
I am new to all of this and any help would be greatly appreciated. Thanks
Thanks for detailed explanation.
However I noticed that if SDK is installed at path other than default installation path then specifying Qt version in qtcreator doesn't work. I get "Invalid Qt Version" error.
I run qmake -query command and found that all variables point to default SDK installation path and not at where SDK is installed.
Do you have any idea how to solve this?
Hi Joreg / Everybody,
I follow the same exact step as mentioned above (with same version of QT creator) ,
but I endup getting ABI detection failed in QT version tab ( i selected qmake2) and it throws exception
I tried clean install many times, but each time its the same.
Any input on this regard will be highly appreciated.
Now I stumble on this when I try to build (QT creator 2.8)
The below thread indicated that the follwing env variables has to be set
Joreg, do you happen to know if its necessary to add variables in the project build option ?
Thank you .