Hi gusarambula,
i am able to resolve this issue, following are the details
Actually When qmake is run, qtcreator by default puts a “-spec $(QMAKE_XSPEC)” to the argument list. This was causing the compiler now to default to the x86 one instead of the arm one. This was why the compile was failing.
The quick fix for this problem is to override the QMAKE_XSPEC variable. This is pretty simple in qtcreator; go to Tools->Options->Build &Run->Kits and add “linux-oe-g++” to the “Qt mkspec” text box.
To add to this, the bug is probably here:
-shortxspec=`echo $XQMAKESPEC | sed "s,^${relpath}/mkspecs/,,"`
-shortspec=`echo $QMAKESPEC | sed "s,^${relpath}/mkspecs/,,"`
+if [ "$QT_CROSS_COMPILE" = "yes" ] ; then
+ shortxspec=linux-g++
+ shortspec=linux-g++
+else
+ shortxspec=`echo $XQMAKESPEC | sed "s,^${relpath}/mkspecs/,,"`
+ shortspec=`echo $QMAKESPEC | sed "s,^${relpath}/mkspecs/,,"`
+fi
This is a in a patch file:
/fsl-community-bsp/sources/meta-qt5/recipes-qt/qt5/qtbase /0008-configure-paths-for-target-qmake-properly.patch
and i believe this patch is being applied. i think somebody from Yocto community need to look into this, i will post this to Yocto mailing list also...
Regards...