QT6 Cross-compilation RPI4 error OpenGL
-
wrote on 26 Aug 2021, 15:10 last edited by MStackoverflow
Hi,
I've successfully cross-compiled QT 5.15.2 with OpenGL (EGL and GLESv2) following the video tutorial from here :
https://www.youtube.com/watch?v=TmtN3Rmx9Rk&t=2054sHowever, when I try to build any QT6 with the cmake method described on the official website :
https://doc-snapshots.qt.io/qt6-dev/configure-linux-device.htmlI cannot get EGL and GLESv2 to configure.
Because I can get QT5 to configure, I don't see why it should'nt work with QT6.Do anybody knows how to link EGL GLESv2 correctly?
The 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. CMake Error at cmake/QtBuildInformation.cmake:72 (message): Check the configuration messages for an error that has occurred. Call Stack (most recent call first): cmake/QtBuildInformation.cmake:10 (qt_configure_print_summary) cmake/QtBuildInternals/QtBuildInternalsConfig.cmake:472 (qt_print_feature_summary) CMakeLists.txt:174 (qt_build_repo_end)
-
wrote on 14 Jul 2023, 17:09 last edited by
For anyone who still struggles.
Make sure that you have correct rpi OS bitness. For example it is common that you have 32bit os on 64 bit rpi4. Make sure that you use correct cross-compiler.
Official Qt instruction requires 64bit OS.