Fail to build Qt 5.15.3
Unsolved
General and Desktop
-
Hi!
I cannot build Qt 5.15.3. I get the following error, even though I'v added the -I flag. Any help are most appreciated. Thank you in advance!
bash-5.1$ pwd
/home/michael/Downloads/qt-everywhere-src-5.15.3
bash-5.1$ ./configure -c++std c++11 -I /usr/include/c++/11.2.0/ -prefix $PWD/qtbase -opensource -nomake tests make -j 4+ cd qtbase + /home/michael/Downloads/qt-everywhere-src-5.15.3/qtbase/configure -top-level -c++std c++11 -I /usr/include/c++/11.2.0/ -prefix /home/michael/Downloads/qt-everywhere-src-5.15.3/qtbase -opensource -nomake tests make -j 4 Creating qmake... .In file included from /home/michael/Downloads/qt-everywhere-src-5.15.3/qtbase/src/corelib/text/qbytearray.cpp:43: /home/michael/Downloads/qt-everywhere-src-5.15.3/qtbase/src/corelib/text/qbytearraymatcher.h: In static member function ‘static QStaticByteArrayMatcherBase::Skiptable QStaticByteArrayMatcherBase::generate(const char*, uint)’: /home/michael/Downloads/qt-everywhere-src-5.15.3/qtbase/src/corelib/text/qbytearraymatcher.h:103:38: error: ‘numeric_limits’ is not a member of ‘std’ 103 | const auto uchar_max = (std::numeric_limits<uchar>::max)(); | ^~~~~~~~~~~~~~ /home/michael/Downloads/qt-everywhere-src-5.15.3/qtbase/src/corelib/text/qbytearraymatcher.h:103:58: error: expected primary-expression before ‘>’ token 103 | const auto uchar_max = (std::numeric_limits<uchar>::max)(); | ^ /home/michael/Downloads/qt-everywhere-src-5.15.3/qtbase/src/corelib/text/qbytearraymatcher.h:103:61: error: ‘::max’ has not been declared; did you mean ‘std::max’? 103 | const auto uchar_max = (std::numeric_limits<uchar>::max)(); | ^~~ | std::max In file included from /usr/include/c++/11.2.0/algorithm:62, from /home/michael/Downloads/qt-everywhere-src-5.15.3/qtbase/include/QtCore/../../src/corelib/global/qglobal.h:142, from /home/michael/Downloads/qt-everywhere-src-5.15.3/qtbase/include/QtCore/qglobal.h:1, from /home/michael/Downloads/qt-everywhere-src-5.15.3/qtbase/include/QtCore/../../src/corelib/thread/qatomic.h:41, from /home/michael/Downloads/qt-everywhere-src-5.15.3/qtbase/include/QtCore/qatomic.h:1, from /home/michael/Downloads/qt-everywhere-src-5.15.3/qtbase/include/QtCore/../../src/corelib/tools/qrefcount.h:43, from /home/michael/Downloads/qt-everywhere-src-5.15.3/qtbase/include/QtCore/qrefcount.h:1, from /home/michael/Downloads/qt-everywhere-src-5.15.3/qtbase/src/corelib/text/qbytearray.h:44, from /home/michael/Downloads/qt-everywhere-src-5.15.3/qtbase/src/corelib/text/qbytearray.cpp:42: /usr/include/c++/11.2.0/bits/stl_algo.h:3467:5: note: ‘std::max’ declared here 3467 | max(initializer_list<_Tp> __l, _Compare __comp) | ^~~ gmake: *** [Makefile:350: qbytearray.o] Error 1
bash-5.1$
-
-
Thank you very much for the help and sorry for the identical post.