QT571 cross compile for beaglebone black with opengl es2 "EGL Error : Could not create the egl surface: error = 0x3001 "
-
hi everyone i have successed to configure,make & install qt5.7.1 static cross compiled for bbb with opengl es2 in my host pc xubuntu 16.04 64bit, when i compiled in qt creator is done with no error but when i run in bbb it show error like this
root@arm:/# ./hellogl2 -platform eglfs
EGL Error : Could not create the egl surface: error = 0x3001Aborted
what is the problem? how to fix it? thanks...
this is my configure
./configure -prefix /usr/lib/qt5 -platform linux-g++ -xplatform linux-arm-gnueabihf-g++ -static -nomake examples -release -continue -opensource -confirm-license -silent -opengl es2 -nomake tests -linuxfb
this is my qmake.conf
qmake configuration for building with arm-linux-gnueabihf-g++
MAKEFILE_GENERATOR = UNIX
CONFIG += incremental
QMAKE_INCREMENTAL_STYLE = sublibinclude(../common/linux.conf)
include(../common/gcc-base-unix.conf)
include(../common/g++-unix.conf)QT_QPA_DEFAULT_PLATFORM = eglfs
modifications to g++.conf
QMAKE_CC = arm-linux-gnueabihf-gcc
QMAKE_CXX = arm-linux-gnueabihf-g++
QMAKE_LINK = arm-linux-gnueabihf-g++
QMAKE_LINK_SHLIB = arm-linux-gnueabihf-g++modifications to linux.conf
QMAKE_AR = arm-linux-gnueabihf-ar cqs
QMAKE_OBJCOPY = arm-linux-gnueabihf-objcopy
QMAKE_NM = arm-linux-gnueabihf-nm -P
QMAKE_STRIP = arm-linux-gnueabihf-stripCOMPILER_FLAGS = -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mthumb
#modifications to gcc-base.conf
QMAKE_CFLAGS += $${COMPILER_FLAGS}
QMAKE_CXXFLAGS += $${COMPILER_FLAGS}
QMAKE_CXXFLAGS_RELEASE += -O3QMAKE_LIBS += -lrt -lpthread -ldl
Extra stuff (OpenGL, DirectFB, ...)
#QMAKE_INCDIR_EGL =/usr/local/Mesa/include/EGL
#QMAKE_LIBDIR_EGL =/usr/local/Mesa/lib
QMAKE_INCDIR_EGL = /usr/local/Graphics_SDK_5_01_01_02/GFX_Linux_SDK/OGLES2/SDKPackage/Builds/OGLES2/Include
QMAKE_LIBDIR_EGL =/usr/local/Graphics_SDK_5_01_01_02/GFX_Linux_SDK/OGLES2/SDKPackage/Builds/OGLES2/LinuxARMV7/Lib
QMAKE_INCDIR_OPENGL_ES2 = $${QMAKE_INCDIR_EGL}
QMAKE_LIBDIR_OPENGL_ES2 = $${QMAKE_LIBDIR_EGL}
QMAKE_INCDIR_OPENVG = $${QMAKE_INCDIR_EGL}
QMAKE_LIBDIR_OPENVG = $${QMAKE_LIBDIR_EGL}QMAKE_LIBS_EGL = -lEGL -lIMGegl -lsrv_um
QMAKE_LIBS_OPENGL_ES2 = -lGLESv2 $${QMAKE_LIBS_EGL}
QMAKE_LIBS_OPENVG = -lOpenVG $${QMAKE_LIBS_EGL}DISTRO_OPTS += hard-float
No need for any special EGL device integration.
Prioritize the default, compiled-in integration over any plugins.
EGLFS_DEVICE_INTEGRATION = none
#include(../common/linux_arm_device_post.conf)
load(qt_config)