Error building Qt 5 from Git
Unsolved
General and Desktop
-
Heya, I'm trying to install Qt5 for Python development, and I've been following the official guide for building from git. But when the guide says to run:
../qt5/configure -developer-build -opensource -nomake examples -nomake -tests
it fails and says this:
~/qt5/configure -developer-build -opensource -nomake examples -nomake tests -confirm-license + cd qtbase + /home/eldritch-idiot/qt5/qtbase/configure -top-level -developer-build -opensource -nomake examples -nomake tests -confirm-license Preparing build tree... <srcbase> = /home/eldritch-idiot/qt5/qtbase <bldbase> = /home/eldritch-idiot/qt5-build/qtbase <outbase> = /home/eldritch-idiot/qt5-build/qtbase Creating qmake... .In file included from ../include/QtCore/qendian.h:1, from /home/eldritch-idiot/qt5/qtbase/src/corelib/codecs/qutfcodec.cpp:43: ../include/QtCore/../../../../qt5/qtbase/src/corelib/global/qendian.h: In static member function ‘static constexpr QSpecialInteger<S> QSpecialInteger<S>::max()’: ../include/QtCore/../../../../qt5/qtbase/src/corelib/global/qendian.h:331:35: error: ‘numeric_limits’ is not a member of ‘std’ 331 | { return QSpecialInteger(std::numeric_limits<T>::max()); } | ^~~~~~~~~~~~~~ ../include/QtCore/../../../../qt5/qtbase/src/corelib/global/qendian.h:331:54: error: ‘::max’ has not been declared; did you mean ‘std::max’? 331 | { return QSpecialInteger(std::numeric_limits<T>::max()); } | ^~~ | std::max In file included from /usr/include/c++/11/algorithm:62, from ../include/QtCore/../../../../qt5/qtbase/src/corelib/global/qglobal.h:142, from ../include/QtCore/qglobal.h:1, from ../include/QtCore/../../../../qt5/qtbase/src/corelib/tools/qchar.h:43, from ../include/QtCore/qchar.h:1, from ../include/QtCore/../../../../qt5/qtbase/src/corelib/tools/qstring.h:48, from ../include/QtCore/qstring.h:1, from /home/eldritch-idiot/qt5/qtbase/src/corelib/codecs/qutfcodec_p.h:55, from /home/eldritch-idiot/qt5/qtbase/src/corelib/codecs/qutfcodec.cpp:41: /usr/include/c++/11/bits/stl_algo.h:3467:5: note: ‘std::max’ declared here 3467 | max(initializer_list<_Tp> __l, _Compare __comp) | ^~~ In file included from ../include/QtCore/qendian.h:1, from /home/eldritch-idiot/qt5/qtbase/src/corelib/codecs/qutfcodec.cpp:43: ../include/QtCore/../../../../qt5/qtbase/src/corelib/global/qendian.h:331:29: error: expected primary-expression before ‘(’ token 331 | { return QSpecialInteger(std::numeric_limits<T>::max()); } | ^ ../include/QtCore/../../../../qt5/qtbase/src/corelib/global/qendian.h:331:35: error: ‘numeric_limits’ is not a member of ‘std’ 331 | { return QSpecialInteger(std::numeric_limits<T>::max()); } | ^~~~~~~~~~~~~~ ../include/QtCore/../../../../qt5/qtbase/src/corelib/global/qendian.h:331:51: error: expected primary-expression before ‘>’ token 331 | { return QSpecialInteger(std::numeric_limits<T>::max()); } | ^ ../include/QtCore/../../../../qt5/qtbase/src/corelib/global/qendian.h:331:54: error: ‘::max’ has not been declared; did you mean ‘std::max’? 331 | { return QSpecialInteger(std::numeric_limits<T>::max()); } | ^~~ | std::max In file included from /usr/include/c++/11/algorithm:62, from ../include/QtCore/../../../../qt5/qtbase/src/corelib/global/qglobal.h:142, from ../include/QtCore/qglobal.h:1, from ../include/QtCore/../../../../qt5/qtbase/src/corelib/tools/qchar.h:43, from ../include/QtCore/qchar.h:1, from ../include/QtCore/../../../../qt5/qtbase/src/corelib/tools/qstring.h:48, from ../include/QtCore/qstring.h:1, from /home/eldritch-idiot/qt5/qtbase/src/corelib/codecs/qutfcodec_p.h:55, from /home/eldritch-idiot/qt5/qtbase/src/corelib/codecs/qutfcodec.cpp:41: /usr/include/c++/11/bits/stl_algo.h:3467:5: note: ‘std::max’ declared here 3467 | max(initializer_list<_Tp> __l, _Compare __comp) | ^~~ In file included from ../include/QtCore/qendian.h:1, from /home/eldritch-idiot/qt5/qtbase/src/corelib/codecs/qutfcodec.cpp:43: ../include/QtCore/../../../../qt5/qtbase/src/corelib/global/qendian.h: In static member function ‘static constexpr QSpecialInteger<S> QSpecialInteger<S>::min()’: ../include/QtCore/../../../../qt5/qtbase/src/corelib/global/qendian.h:333:35: error: ‘numeric_limits’ is not a member of ‘std’ 333 | { return QSpecialInteger(std::numeric_limits<T>::min()); } | ^~~~~~~~~~~~~~ ../include/QtCore/../../../../qt5/qtbase/src/corelib/global/qendian.h:333:54: error: ‘::min’ has not been declared; did you mean ‘std::min’? 333 | { return QSpecialInteger(std::numeric_limits<T>::min()); } | ^~~ | std::min In file included from /usr/include/c++/11/algorithm:62, from ../include/QtCore/../../../../qt5/qtbase/src/corelib/global/qglobal.h:142, from ../include/QtCore/qglobal.h:1, from ../include/QtCore/../../../../qt5/qtbase/src/corelib/tools/qchar.h:43, from ../include/QtCore/qchar.h:1, from ../include/QtCore/../../../../qt5/qtbase/src/corelib/tools/qstring.h:48, from ../include/QtCore/qstring.h:1, from /home/eldritch-idiot/qt5/qtbase/src/corelib/codecs/qutfcodec_p.h:55, from /home/eldritch-idiot/qt5/qtbase/src/corelib/codecs/qutfcodec.cpp:41: /usr/include/c++/11/bits/stl_algo.h:3455:5: note: ‘std::min’ declared here 3455 | min(initializer_list<_Tp> __l, _Compare __comp) | ^~~ In file included from ../include/QtCore/qendian.h:1, from /home/eldritch-idiot/qt5/qtbase/src/corelib/codecs/qutfcodec.cpp:43: ../include/QtCore/../../../../qt5/qtbase/src/corelib/global/qendian.h:333:29: error: expected primary-expression before ‘(’ token 333 | { return QSpecialInteger(std::numeric_limits<T>::min()); } | ^ ../include/QtCore/../../../../qt5/qtbase/src/corelib/global/qendian.h:333:35: error: ‘numeric_limits’ is not a member of ‘std’ 333 | { return QSpecialInteger(std::numeric_limits<T>::min()); } | ^~~~~~~~~~~~~~ ../include/QtCore/../../../../qt5/qtbase/src/corelib/global/qendian.h:333:51: error: expected primary-expression before ‘>’ token 333 | { return QSpecialInteger(std::numeric_limits<T>::min()); } | ^ ../include/QtCore/../../../../qt5/qtbase/src/corelib/global/qendian.h:333:54: error: ‘::min’ has not been declared; did you mean ‘std::min’? 333 | { return QSpecialInteger(std::numeric_limits<T>::min()); } | ^~~ | std::min In file included from /usr/include/c++/11/algorithm:62, from ../include/QtCore/../../../../qt5/qtbase/src/corelib/global/qglobal.h:142, from ../include/QtCore/qglobal.h:1, from ../include/QtCore/../../../../qt5/qtbase/src/corelib/tools/qchar.h:43, from ../include/QtCore/qchar.h:1, from ../include/QtCore/../../../../qt5/qtbase/src/corelib/tools/qstring.h:48, from ../include/QtCore/qstring.h:1, from /home/eldritch-idiot/qt5/qtbase/src/corelib/codecs/qutfcodec_p.h:55, from /home/eldritch-idiot/qt5/qtbase/src/corelib/codecs/qutfcodec.cpp:41: /usr/include/c++/11/bits/stl_algo.h:3455:5: note: ‘std::min’ declared here 3455 | min(initializer_list<_Tp> __l, _Compare __comp) | ^~~ gmake: *** [Makefile:382: qutfcodec.o] Error 1
Specs:
OS: Linux Mint 21.3
CPU: AMD Ryzen 7 3500X
RAM: 32GB DDR4
GPU: NVIDIA GeForce GTX 1660 -
@eldritch-dev Interesting that Linux Mint does not seem to have Qt5 packages.
What dot-release of Qt 5?
What version of GCC is detected during configure/used for the build?
Are you sure you want the developer build option? -