Hi,
I have set up QT, based on the instructions on this page.
I am trying to make a simple form in Qt creator and deploy in Target. But I was not able to find a article in Toradex for this like a "Hello world QT project:
When I start a Project QT shows different type of projects and I tried one by one, but my build process is not getting through. Something totally messed up . around 200 error messages.
Is there Any article for my purpose available here.?
Thanks
I am attaching my screen shots here
[upload|JyT04M2dTYmfm4qQwKW2vUojphM=]
btw I have successfully compiled, downloaded and debugged a simple console based Hello world application mentioned in toradex pages.
using linaro tool chain, toradex provided image and eclipse IDE.
So the communication link seems to be ok and in QT also I can test the kit and connection is OK.
Host ubuntu 16.04LTS 64 bit
/usr/local/oecore-x86_64/sysroots/armv7at2hf-vfp-angstrom-linux-gnueabi/usr/include/qt5/QtCore/qcompilerdetection.h:562:6: error: #error Qt requires a C++11 compiler and yours does not seem to be that.
# error Qt requires a C++11 compiler and yours does not seem to be that.
What do you mean by I have added the corresponding file? That file is added when you install Qt sdk.
What version of ubuntu are you using? 32 or 64 bit?
You need to run Qt creator within the context of the sourced script (/usr/local/oecore-x86_64/environment-setup-armv7at2hf-neon-angstrom-linux-gnueabi).
How do you start the qt creator?
It’s already a part of the SDK. For qt5 with proper mkspec and environmental variable set it should be used automatically. Something is mis-configured on your system and that’s why qt is using your system g++ instead of the one in the SDK
1) Find in directory installed Framework Qt and edit the file in Tools/QtCreator/bin/qtcreator.sh, it’s like below:
#! /bin/sh
# Use this script if you add paths to LD_LIBRARY_PATH
# that contain libraries that conflict with the
# libraries that Qt Creator depends on.
makeAbsolute() {
case $1 in
/*)
# already absolute, return it
echo "$1"
;;
*)
# relative, prepend $2 made absolute
echo `makeAbsolute "$2" "$PWD"`/"$1" | sed 's,/\.$,,'
;;
esac
}
.... more lines
Add in first line before all:
. /usr/local/oecore-x86_64/environment-setup-armv7at2hf-neon-angstrom-linux-gnueabi
#! /bin/sh
# Use this script if you add paths to LD_LIBRARY_PATH
# that contain libraries that conflict with the
# libraries that Qt Creator depends on.
makeAbsolute() {
case $1 in
/*)
# already absolute, return it
echo "$1"
;;
*)
# relative, prepend $2 made absolute
echo `makeAbsolute "$2" "$PWD"`/"$1" | sed 's,/\.$,,'
;;
esac
}
… more lines
After this, open IDE QtCreator:
you_path_Qt/Tools/QtCreator/bin/qtcreator.sh
2) In Qt mkspec add: linux-oe-g++
3) In your target(Board Toradex) GDB is installed? However, the image must have support for GDB to work with the librarys, for example to buildsystem with Yocto enable dbg-pkgs and tools-debug.
In my case that path doesn’t exist. But I found one qtcreator.sh somewhere else and tried editing it.
But permission issue.
Since it is not in the path mentioned I didnt tried again.
can you please confirm the path I should look for?
Cannot run: No command given.
Cannot run: No command given.
Debugging starts
Listening on port 10000
Remote debugging from host 13.13.13.13
Debugging has finished
If I run the application in target from QT
Cannot run: No command given.
Cannot run: No command given.
This is my tool chain file from oe build angstrom-glibc-x86_64-armv7at2hf-vfp-v2016.12-toolchain.sh
and the image tarball from the same buil is Colibri-T20_LXDE-Image_2.7b5-20180208.tar.bz2
THis is the image running in the T20alt text