BBB failed to create EGL surface for Cross-compiled QT5.8


I recently learn how to cross-compile a QT5.8 application for BBB with the debian 8.7 jessie and kernel 4.4. My host PC is debian 8.7 jessie as well, 64 bit.

I use the tool chain from linaro and the mount BBB to my host as root file system.

On BBB I installed the SGX driver as described here: in order to get the openGL es2 support.

Here is my configuration:

./configure -platform linux-g++ -xplatform linux-arm-gnueabi-g++ -release -device linux-beagleboard-g++ -sysroot /home/pli/BBB -prefix /home/debian/Qt5.8-arm -device-option CROSS_COMPILE=/opt/pliARMtoolchain/gcc-linaro-4.9-2016.02-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- -nomake tests -nomake examples \

-no-xcb \

-opengl es2 \

-eglfs \

The build was successful ans I can finish ‘make’ for the QT, then ‘make install’.

Problem occurs when I deploy the application to BBB and here is the error: