Hi,
I used "arago-daisy-config.txt" with oe-layertool-setup.sh to generate tisdk rootfs using commands:
- MACHINE=am335x-evm bitbake -k tisdk-rootfs-image
I then tried building a toolchain for Qt development for doing steps :
- MACHINE=am335x-evm bitbake -k meta-toolchain-qt5
Above step created "arago-2015.05-toolchain-2015.05.sh" in directory /home/ankur/ti-yocto/oe-layersetup/build/arago-tmp-external-linaro-toolchain/deploy/sdk
Then installed toolchain in directory /home/ankur/toolchain-ti and updated qtcreator/bin/qtcreator.sh to set correct environment variables by adding following line
source /home/ankur/toolchain-ti/environment-setup-cortexa8t2hf-vfp-neon-linux-gnueabi #! /bin/sh makeAbsolute() {
Then did setup of Qtcreator 3.4.0 as per http://processors.wiki.ti.com/index.php/Sitara_Linux_Training:_Hands_on_with_QT
When I compile a simple hello world program, I get following errors:
rm-linux-gnueabihf-g++ -march=armv7-a -marm -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a8 --sysroot=/home/ankur/toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi -c -pipe -fstack-protector -O2 -pipe -g -feliminate-unused-debug-types -g -Wall -W -D_REENTRANT -fPIE -DQT_QUICK_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I../QTQuickDemo_v0.2 -I. -I../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/usr/include/qt5 -I../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/usr/include/qt5/QtQuick -I../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/usr/include/qt5/QtWidgets -I../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/usr/include/qt5/QtGui -I../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/usr/include/qt5/QtQml -I../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/usr/include/qt5/QtNetwork -I../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/usr/include/qt5/QtCore -I. -I../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/usr/lib/qt5/mkspecs/linux-oe-g++ -o main.o ../QTQuickDemo_v0.2/main.cpp
In file included from ../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/usr/include/qt5/QtCore/qglobal.h:70:0,
from ../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/usr/include/qt5/QtCore/qcoreapplication.h:37,
from ../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/usr/include/qt5/QtWidgets/qapplication.h:37,
from ../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/usr/include/qt5/QtWidgets/QApplication:1,
from ../QTQuickDemo_v0.2/main.cpp:1:
../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/usr/include/qt5/QtCore/qcompilerdetection.h:890:20: fatal error: utility: No such file or directory
compilation terminated.
I fixed above by adding following in my .pro file:
INCLUDEPATH += /home/ankur/toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/include/c++/4.7.3
INCLUDEPATH += /home/ankur/toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/include/c++/4.7.3/arm-linux-gnueabihf/arm-linux-gnueabi
Then it gives error :
arm-linux-gnueabihf-g++ -march=armv7-a -marm -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a8 --sysroot=/home/ankur/toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi -c -pipe -fstack-protector -O2 -pipe -g -feliminate-unused-debug-types -g -Wall -W -D_REENTRANT -fPIE -DQT_QUICK_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I../QTQuickDemo_v0.2 -I. -I../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/include/c++/4.7.3 -I../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/include/c++/4.7.3/arm-linux-gnueabihf/arm-linux-gnueabi -I../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/usr/include/qt5 -I../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/usr/include/qt5/QtQuick -I../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/usr/include/qt5/QtWidgets -I../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/usr/include/qt5/QtGui -I../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/usr/include/qt5/QtQml -I../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/usr/include/qt5/QtNetwork -I../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/usr/include/qt5/QtCore -I. -I../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/usr/lib/qt5/mkspecs/linux-oe-g++ -o main.o ../QTQuickDemo_v0.2/main.cpp
In file included from ../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/usr/include/qt5/QtGui/qopenglcontext.h:54:0,
from ../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/usr/include/qt5/QtGui/QtGui:32,
from ../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/usr/include/qt5/QtQuick/QtQuickDepends:4,
from ../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/usr/include/qt5/QtQuick/QtQuick:3,
from ../QTQuickDemo_v0.2/main.cpp:4:
../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/usr/include/qt5/QtGui/qopengl.h:99:26: fatal error: GLES2/gl2.h: No such file or directory
compilation terminated.
Clearly, toolchain is not properly built or setup.
Am I missing some step ? Any help is appreciated.
Thanks
Ankur