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. Fail to build Qt 5.15.3
Qt 6.11 is out! See what's new in the release blog

Fail to build Qt 5.15.3

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 1.2k 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.
  • M Offline
    M Offline
    Michaelis
    wrote on last edited by
    #1

    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$

    Christian EhrlicherC 1 Reply Last reply
    0
    • M Michaelis

      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$

      Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by Christian Ehrlicher
      #2

      The search function will help you: https://forum.qt.io/topic/139626/unable-to-build-static-version-of-qt-5-15-2

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

      M 1 Reply Last reply
      0
      • Christian EhrlicherC Christian Ehrlicher

        The search function will help you: https://forum.qt.io/topic/139626/unable-to-build-static-version-of-qt-5-15-2

        M Offline
        M Offline
        Michaelis
        wrote on last edited by
        #3

        @Christian-Ehrlicher

        Thank you very much for the help and sorry for the identical post.

        1 Reply Last reply
        0

        • Login

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