I am trying to build/cross-compile Qt-5.2.1 for ARM based embedded device.

I have to build Qt With OpenGL support, but we are getting issue.

My Configure Option is :

./configure -opensource -confirm-license -make libs -device imx6 -device-option CROSS_COMPILE=/u02/tools/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/arm-none-linux-gnueabi- -no-pch -no-opengl -no-icu -no-c++11 -opengl -compile-examples -qpa xcb -qt-xcb -xplatform mkspecs/devices/linux-imx6-g++ -no-linuxfb -no-directfb -sysroot /u02/tools/rootfs -no-gcc-sysroot -prefix /usr/local/imx6Qt5.2.1

We are getting following issue :

"Could not determine the target architecture!
Turn on verbose messaging (-v) to see the final report.
All the OpenGL functionality tests failed!
You might need to modify the include and library search paths by editing
QMAKE_INCDIR_OPENGL, QMAKE_LIBDIR_OPENGL and QMAKE_LIBS_OPENGL in
mkspecs/devices/linux-imx6-g++ "

I have modified the qmake.conf file in mention directory and set the value of QMAKE_INCDIR_OPENGL, QMAKE_LIBDIR_OPENGL and QMAKE_LIBS_OPENG.
But still we are getting same issue as above.

Even i have copied all opengl related library from "Vivante_VDK-v1.4.6" to our rootfs.
But still getting same issue.

Can you guide anyone, what is exactly problem and how to resolve it ?

Thanks in advance
--Sanjeet