I'm trying to compile Qt5.15.2 on Windows 10 with g++-11 from msys64 environment, and due to the changes of GCC-11 (see http://gcc.gnu.org/gcc-11/porting_to.html), and following How can I build Qt 5.13.2 with GCC 11.1 on Windows?, I manually include <limits> header file in qtbase/src/corelib/global/qglobal.h before running the following command in MINGW64 environment:
/f/download/Qt/qt-everywhere-src-5.15.2\configure -v -confirm-license -opensource -platform win32-g++ -debug-and-release -static -prefix /d/Qt/5.15.2-g++ -opengl desktop -no-icu -no-iconv -no-angle -nomake tools -nomake examples -nomake tests -qt-sqlite -qt-zlib -qt-libjpeg -qt-libpng -qt-freetype -skip qtactiveqt -skip qtandroidextras -skip qtconnectivity -skip qtdeclarative -skip qtdoc -skip qtgamepad -skip qtgraphicaleffects -skip qtlocation -skip qtmacextras -skip multimedia -skip qtnetworkauth -skip qtpurchasing -skip qtquickcontrols -skip qtremoteobjects -skip qtscript -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtspeech -skip qtsvg -skip qttools -skip qttranslations -skip qtvirtualkeyboard -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebglplugin -skip qtwebsockets -skip qtwebview -skip qtwinextras -skip qtx11extras -skip qtxmlpatterns
I finally got the error:
Project ERROR: target architecture detection binary does not contain expected data
I don't know what does that means, and any suggestions are helpful.