Qt cross compilation on Colibri iMX6

Problem in cross compiling for Colibri iMX6 DL.

We are using Yocto krogoth and Qt5.6.
We well populated sdk including qt5.

After installing SDK onto the development machine, and run the script, configuring the Qt kit, and set mkspecs as linux-oe-g++, we encounter the following error on compilation :

c -pipe  -g -DLINUX=1 -DEGL_API_FB=1 -DLINUX=1 -DEGL_API_FB=1 -std=gnu++0x -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I../tester -I. -isystem /opt/seframdist/1.0/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/include/qt5 -isystem /opt/seframdist/1.0/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/include/qt5/QtQuick -isystem /opt/seframdist/1.0/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/include/qt5/QtGui -isystem /opt/seframdist/1.0/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/include/qt5/QtQml -isystem /opt/seframdist/1.0/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/include/qt5/QtNetwork -isystem /opt/seframdist/1.0/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/include/qt5/QtCore -I. -I/opt/seframdist/1.0/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/lib/qt5/mkspecs/linux-oe-g++ -o main.o ../tester/main.cpp
make: c : commande introuvable
Makefile:582 : la recette pour la cible « main.o » a échouée
c -pipe  -g -DLINUX=1 -DEGL_API_FB=1 -DLINUX=1 -DEGL_API_FB=1 -std=gnu++0x -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I../tester -I. -isystem /opt/seframdist/1.0/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/include/qt5 -isystem /opt/seframdist/1.0/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/include/qt5/QtQuick -isystem /opt/seframdist/1.0/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/include/qt5/QtGui -isystem /opt/seframdist/1.0/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/include/qt5/QtQml -isystem /opt/seframdist/1.0/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/include/qt5/QtNetwork -isystem /opt/seframdist/1.0/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/include/qt5/QtCore -I. -I/opt/seframdist/1.0/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/lib/qt5/mkspecs/linux-oe-g++ -o qrc_qml.o qrc_qml.cpp
Makefile:585 : la recette pour la cible « qrc_qml.o » a échouée
o tester main.o qrc_qml.o   -lQt5Quick -lQt5Gui -lQt5Qml -lQt5Network -lQt5Core -lGLESv2 -lEGL -lGAL -lpthread 
Makefile:211 : la recette pour la cible « tester » a échouée
make: [main.o] Erreur 127 (ignorée)
make: c : commande introuvable
make: [qrc_qml.o] Erreur 127 (ignorée)
make: o : commande introuvable
make: [tester] Erreur 127 (ignorée)
06:05:16: Le processus "/usr/bin/make"

If you need more explanations, don’t hesitate.

Thank you.

We never really released any Krogoth based BSPs and therefore do not really support any such. Is there any particular reason for not using any of our supported BSPs like e.g. the Jethro based V2.6 or Morty based 2.7b2?

It seems QtCreator doesn’t call cross compiler for iMX6. You can read this to start QtCreator, especially setting configure file.

Thank you for your answers.

The kit was successfully set but manually exportation of the environment variables (created by sdk populated) was the problem.
The source must be done in the qtcreator.sh to get it working.