I successfully built the SDK with “bitbake -k angstrom-qt5-x11-image -c populate_sdk”. Thank you.
But now I have a little problem.
I’ve done the steps of add kit . I added QT-Version, GCC an GDB. In “Add Kit” I have to write into Qt mkspec this “/usr/local/oecore-x86_64/sysroots/armv7at2hf-neon-angstrom-linux-gnueabi/usr/lib/qt5/mkspecs/linux-oe-g++”
If I enter that appears a red exclamation point, which says that for this Qt version no mkspec can be found. In this directory are two files: qmake.conf & qtplatformdefs.h
The terminal outputs:
QByteArray ProjectExplorer::runGcc(const Utils::FileName&, const QStringList&, const QStringList&): "/usr/local/oecore-x86_64/sysroots/x86_64-angstromsdk-linux/usr/bin/arm-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-g++" "-xc++ -E -dM -m64 -D_REENTRANT -fPIC -" returned exit code 1: "arm-angstrom-linux-gnueabi-g++: error: unrecognized command line option '-m64'\n"
On the desktop, I can successfully create a QT application. If I want to do that on the target device, it will not work. in qtcreator:
/usr/local/oecore-x86_64/sysroots/armv7at2hf-neon-angstrom-linux-gnueabi/usr/lib/qt5/mkspecs/features/qmake_use.prf(6): 'take_first' is not a recognized replace function.
/usr/local/oecore-x86_64/sysroots/armv7at2hf-neon-angstrom-linux-gnueabi/usr/lib/qt5/mkspecs/features/qmake_use.prf(6): 'take_first' is not a recognized replace function.
Project ERROR: Library '' is not defined.
Project ERROR: Library '' is not defined.
The application has ended, return value 126.
The file is successfully placed in /home/root but can not be executed. The following error appears:
root@colibri-vf:~# ls
test
root@colibri-vf:~# ./test
-sh: ./test: cannot execute binary file: Exec format error
I have done all the steps in the run-up and therefore can not explain the error…
mantwill@mantwill-HP-Laptop-17-by1xxx:~$ . /usr/local/oecore-x86_64/environment-setup-armv7at2hf-neon-angstrom-linux-gnueabi
mantwill@mantwill-HP-Laptop-17-by1xxx:~$ echo $OE_QMAKE_CXX
arm-angstrom-linux-gnueabi-g++ -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard --sysroot=/usr/local/oecore-x86_64/sysroots/armv7at2hf-neon-angstrom-linux-gnueabi
mantwill@mantwill-HP-Laptop-17-by1xxx:~$ qtcreator
I use ubuntu 16.04 as host.
In addition, I have to say that the X11 demo does not install all the QT modules, such as: QtSerialPort or QtVirtualKeyboard. How do I add these? About an entry in local.conf?
+IMAGE_INSTALL_append = " qtbase qtbase-plugins cinematicexperience liberation-fonts qtdeclarative qtimageformats qtmultimedia qtquick1 qtquickcontrols2 qtquickcontrols qtserialport qtcharts qtvirtualkeyboard"
+PACKAGECONFIG_FONTS_append_pn-qtbase = " fontconfig"
Can you do that somehow retrospectively?