Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Error building Qt 5 from Git
QtWS25 Last Chance

Error building Qt 5 from Git

Scheduled Pinned Locked Moved Unsolved General and Desktop
build errorgit
3 Posts 3 Posters 701 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    eldritch-dev
    wrote on 7 Apr 2024, 01:10 last edited by
    #1

    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

    C 1 Reply Last reply 7 Apr 2024, 05:33
    0
    • E eldritch-dev
      7 Apr 2024, 01:10

      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

      C Offline
      C Offline
      ChrisW67
      wrote on 7 Apr 2024, 05:33 last edited by
      #2

      @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?

      C 1 Reply Last reply 7 Apr 2024, 07:10
      1
      • C ChrisW67
        7 Apr 2024, 05:33

        @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?

        C Offline
        C Offline
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on 7 Apr 2024, 07:10 last edited by
        #3

        See https://bugreports.qt.io/browse/QTBUG-90395

        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
        Visit the Qt Academy at https://academy.qt.io/catalog

        1 Reply Last reply
        3

        3/3

        7 Apr 2024, 07:10

        • Login

        • Login or register to search.
        3 out of 3
        • First post
          3/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved