Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

5.12.4 cross-build with mingw



  • I have the following error linking Qt with EGL and GLES libraries:
    x86_64-w64-mingw32-g++ -Wl,-s -shared -Wl,-subsystem,windows -Wl,--out-implib,/mnt/d/distr/qt-everywhere-src-5.12.4/qtbase/lib/libQt5Gui.a -o ../../lib/Qt5Gui.dll @object_script.Qt5Gui.Release -L/mnt/d/distr/mysql-5.7.26-winx64/lib -L/mnt/d/distr/oracle_12c_oci_devel/winx64/lib/msvc /mnt/d/distr/qt-everywhere-src-5.12.4/qtbase/lib/liblibEGL.a /mnt/d/distr/qt-everywhere-src-5.12.4/qtbase/lib/liblibGLESv2.a -lgdi32 -luser32 /mnt/d/distr/qt-everywhere-src-5.12.4/qtbase/lib/libQt5Core.a .obj/release/Qt5Gui_resource_res.o /mnt/d/distr/qt-everywhere-src-5.12.4/qtbase/lib/libqtlibpng.a -L/mnt/d/distr/mysql-5.7.26-winx64/lib -L/mnt/d/distr/oracle_12c_oci_devel/winx64/lib/msvc /mnt/d/distr/qt-everywhere-src-5.12.4/qtbase/lib/libQt5Core.a /mnt/d/distr/qt-everywhere-src-5.12.4/qtbase/lib/libqtharfbuzz.a -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lws2_32 -lole32 -luuid -luser32 -ladvapi32
    x86_64-w64-mingw32-g++: error: /mnt/d/distr/qt-everywhere-src-5.12.4/qtbase/lib/liblibEGL.a: No such file or directory
    x86_64-w64-mingw32-g++: error: /mnt/d/distr/qt-everywhere-src-5.12.4/qtbase/lib/liblibGLESv2.a: No such file or directory

    /mnt/d/distr/qt-everywhere-src-5.12.4 is where source code is located, why would build script look for gl libraries there (instead of mingw sysroot) and why with strange names? There was no such problem with 5.12.2.



  • It seems that script tries to link against bundled angle even if it is not enabled.


Log in to reply