qt cross compilation for raspberry pi4: Cannot find GLESv2
-
I'm trying to cross-compile.
windows10 (qt 5.15.2) - Raspberry pi4 (64bit)The configure command i run is¨:
.\configure -opensource -confirm-license -release -opengl -device linux-rasp-pi4-v3d-g++ -device-option CROSS_COMPILE="C:\SysGCC\raspberry64\bin\aarch64-linux-gnu-" -sysroot C:\SysGCC\raspberry64\sysroot -prefix /usr/local/qt5pi -extprefix "C:\Qt\raspberry_pi" -hostprefix "C:\Qt\raspberry_pi" -nomake examples -nomake tests -no-use-gold-linker -qt-pcre -skip qtscript -skip qttoolsresult :
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 modified qmake.conf(makspecs\devices\linux-rasp-pi4-v3d-g++) :
include(../common/linux_device_pre.conf)
QMAKE_LIBS_EGL += -lEGL
QMAKE_LIBS_OPENGL_ES2 += -lGLESv2 -lEGL
QMAKE_CFLAGS = -march=armv8-a -mtune=cortex-a72 -mfpu=crypto-neon-fp-armv8
QMAKE_CXXFLAGS = $$QMAKE_CFLAGS
DISTRO_OPTS += hard-float
DISTRO_OPTS += deb-multi-arch
EGLFS_DEVICE_INTEGRATION = eglfs_kms
include(../common/linux_device_post.conf)
load(qt_config)Q:
VC_LIBRARY_PATH and QMAKE_LIBDIR_OPENGL_ES2 are defined in the qmake.conf file of linux-rasp-pi3-g++, but the inside of linux-rasp-pi4-v3d-g++ is simple. Also, there is only the pigpio folder in the \opt\ folder of the Raspberry Pi.Do I need to correct the qmake.conf of linux-rasp-pi4-v3d-g++ to eliminate the error?
Can you give me some advice on how to cross-compile from Win10 to Raspberry Pi 4?
Thank you for reading my poor English.