Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Building 5.12.2 with cross mingw: wrong EGL/GLES linking
thesourcehim last edited by thesourcehim
I'm trying to build 5.12.2 with cross-mingw (linux host, windows target) and encountered new problem, which was not present in 5.12.0:
for some reason GLESv2 and EGL libraries are set as full path to libGLESv2.a and libEGL.a in all Makefiles instead of -lGLESv2 and -lEGL (/usr/x86_64-w64-mingw32/sys-root/mingw/lib/libGLESv2.a, /usr/x86_64-w64-mingw32/sys-root/mingw/lib/libEGL.a).
This leads to linking failure (you can't link GLES like that). In 5.12.0 Makefiles contained -llibGLESv2 and -llibEGL, which was ok.
I can't figure out which script generates that, anyone can help? Thank you.
EDIT: it seems if I have both shared and static versions of angleproject installed, build script prefers static even if I'm building shared version of Qt. Had to remove static angleproject as a workaround.