Good Video to get more Information about Programming are this
It is for Beagelbone but for programming Qt it is a good start.
We have followed this steps and have QT 4.8 applications running on both systems, Desktop and imx6 target. But we have problems with debugging:
on desktop: https://community.freescale.com/message/348541#348541 , and
This problem seems to be related to python. But I am no used to it. It seems as if site.py was trying to import the get_config_var function from sysconfig.py. Then the process is stopped at the beggining of sysconfig.py. However the files are untouched from their compilation date. Any clue?
The message on the Debugger Log window seems to say that bb is a GDB command but I am no able to find it in any GDB page. I have a windows station with a test QT 5.0 instalation. There the bb command works. Both QTs, 4,8 and 5,.0, are using GDBs 7.5.1. So, is really bb a GDB command? Any hint about why bb is not defined?
Thanks and best regards
sorry I didn`t try that till now.
Have a look at Dereks Video.
I hope it will help.
Am 05.09.2013 20:29, schrieb Diego Gonzalez:
Freescale Community <https://community.freescale.com/>
Setup QT Creator with Yocto Build
Antwort von Diego Gonzalez
in /i.MX Community/ - Komplette Diskussion anzeigen
Desktop Mode Debugger problem news)
We start QT after deleting the line:
from qtcreator.sh. Without it, QT Debugger shows the variables and its values.
Something is not well defined inside that file and it makes fail the GDB local mode start.
We saw he video but I fear we have not enough experience to extract the conclusion we look for. We review it more slowly from time to time.
Found ... we think.
Line: bitbake meta-toolchain-qt
compiles a Python 2.7.3 without some default modules: for example subprocess
Line: source /opt/poky/1.4.1/environment-setup-armv7a-vfp-neon-poky-linux-gnueabi
changes PYTHONHOME and redirects it to /opt/poky.../python
When QTCreator execute the python dumpers to show the variables, it needs the lost modules. So we go to the next questions:
It is necessary use the /op7/poky/... /python or we can use Ubuntu python?
How can I say to meta-toolchain-qt to generate a complete python version?
Thanks and best regards
Solved adding the line:
TOOLCHAIN_HOST_TASK_append = " nativesdk-python-subprocess"
in build/conf/local.conf from Yocto.
That adds the module subprocess to python used by QTcreator
Now I can view variables at breakpoint running an application on target.
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.
thats "normal" should work properly with that!
If not than should be the mistake on an other place.
Thank you very much Joreg, let me try and see if everything goes fine.
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 .
There is no need to do that
edit the bin/qtcreator.sh
and start i with it
Got it, Thank you Joreg
i added the line " source /opt/poky/1.5.1/environment-setup-armv7a-vfp-neon-poky-linux-gnueabi" to qtcreator.sh before "#! /bin/sh" line and I am still having the same problem. do you know what else could cause this. I dont think it is recognizing the line added to the qtcreator.sh file because when i launch it from terminal with the line it stated "source not found". please help.
i'm using poky version 1.5.1
SOLVED: you must launch qtcreator like this: ./qtcreator.sh ONLY.
does the meta-toolchain-qt has support for phonon?
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?
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
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?
There is something error in the execution bitbake meta-toolchain-qt command ,and I can not find this file（poky-eglibc-x86_64-arm-toolchain-qt-1.4.1.sh).
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.
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.
1 of 1 people found this helpful
MACHINE=imx6qsabresd source fsl-setup-release.sh -b build -e fb
QT SDK build sucessful
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
error.png 112.8 K