Mathias_Va
Posts: 5
Joined: Fri Sep 28, 2018 3:50 pm

OpenGL Error

Fri Sep 28, 2018 3:54 pm

I am trying to cross compile Raspberry pi3; stretch software 2018-06-27 release, using Qt11.2

I use this toolchain:
[https://github.com/raspberrypi/tools.git]

and this configure script:

[*]./configure -opengl es2 -device linux-rasp-pi3-g++ -device-option CROSS_COMPILE=$RPI_TOOLCHAIN -sysroot $RPI_SYSROOT -opensource -confirm-license -optimized-qmake -reduce-exports -release -make libs -prefix /usr/local/qt5pi

I got this Error;

[*]ERROR: The OpenGL functionality tests failed! You might need to modify the include and library search paths
by editing QMAKE_INCDIR_OPENGL[_ES2], QMAKE_LIBDIR_OPENGL[_ES2] and QMAKE_LIBS_OPENGL[_ES2] in the mkspec for your platform

I ended up that I should modify make spec qmake.conf in file linux-rasp-pi3-g++ like the below script:

[*]VC_LIBRARY_PATH = $$[QT_SYSROOT]/opt/vc/lib
VC_INCLUDE_PATH = $$[QT_SYSROOT]/opt/vc/include

QMAKE_LIBDIR_OPENGL_ES2 = $${VC_LIBRARY_PATH}
QMAKE_LIBDIR_EGL = $$QMAKE_LIBDIR_OPENGL_ES2
QMAKE_LIBDIR_OPENVG = $$QMAKE_LIBDIR_OPENGL_ES2

QMAKE_INCDIR_EGL = \
$${VC_INCLUDE_PATH} \
$${VC_INCLUDE_PATH}/interface/vcos/pthreads \
$${VC_INCLUDE_PATH}/interface/vmcs_host/linux
QMAKE_INCDIR_OPENGL_ES2 = $${QMAKE_INCDIR_EGL}
QMAKE_INCDIR_OPENVG = $${QMAKE_INCDIR_EGL}

QMAKE_LIBS_OPENGL_ES2 = -lGLESv2
QMAKE_LIBS_EGL = -lEGL -lGLESv2
QMAKE_LIBS_OPENVG = -lEGL -lOpenVG -lGLESv2

but unfortunately It didn't work and I cannot move any further,

I tried different Qt versions but it never works!!
I tried to execute configure without opengles2 and I was able to complete the process, but sure I was only able to cross compile just simple c++ scripts, using Qt

any advice?

Return to “OpenGLES”