Im trying to compile QT for an embedded device (freescale i.mx51 evk).
When i issue the ./configure command the following error appear.

The EGL functionality test failed!
EGL is required for OpenGL ES to manage contexts & surfaces. You might need to modify the include and library search paths by editing QMAKE_INCDIR_EGL, QMAKE_LIBDIR_EGL and QMAKE_LIBS_EGL in /home/ael/Downloads/qt-imx/qt-everywhere-opensource-src-4.6.0/mkspecs/qws/linux-mxc-g++.

I used this guide ImxDev QT to compile QT for the embedded device, but to no avail.

I have verified that the headers and libraries are present (and for the right architecture).

I really need some advice how to investigate this issue further.

Thanks for your time.
- almagest