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. Build Qt Static Make Error - [SOLVED]

Build Qt Static Make Error - [SOLVED]

Scheduled Pinned Locked Moved General and Desktop
18 Posts 6 Posters 31.0k 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #4

    Can you retry without -no-qml-debug ?

    Interested in AI ? www.idiap.ch
    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

    Lays147L 1 Reply Last reply
    0
    • SGaistS SGaist

      Can you retry without -no-qml-debug ?

      Lays147L Offline
      Lays147L Offline
      Lays147
      wrote on last edited by
      #5

      @SGaist The result: error again =/

      /home/lays/qt5/qtdeclarative/lib/libQt5Qml.a(qqmldebugconnector.o):qqmldebugconnector.cpp:function _GLOBAL__sub_I_qqmldebugconnector.cpp: error: undefined reference to 'qt_static_plugin_QQmlDebuggerServiceFactory()'
      collect2: error: ld returned 1 exit status
      Makefile:105: recipe for target 'chatserver' failed
      make[4]: *** [chatserver] Error 1
      make[4]: Leaving directory '/home/lays/qt5/qtwebchannel/examples/webchannel/chatserver-cpp'
      Makefile:47: recipe for target 'sub-chatserver-cpp-make_first' failed
      make[3]: *** [sub-chatserver-cpp-make_first] Error 2
      make[3]: Leaving directory '/home/lays/qt5/qtwebchannel/examples/webchannel'
      Makefile:42: recipe for target 'sub-webchannel-make_first' failed
      make[2]: *** [sub-webchannel-make_first] Error 2
      make[2]: Leaving directory '/home/lays/qt5/qtwebchannel/examples'
      Makefile:69: recipe for target 'sub-examples-make_first' failed
      make[1]: *** [sub-examples-make_first] Error 2
      make[1]: Leaving directory '/home/lays/qt5/qtwebchannel'
      Makefile:483: recipe for target 'module-qtwebchannel-make_first' failed
      make: *** [module-qtwebchannel-make_first] Error 2
      lays@lays:~/qt5$ 
      
      

      Lays Rodrigues
      Newby on Qt - Learning always!
      Using QT 5.7
      ArchLinux

      1 Reply Last reply
      0
      • Lays147L Offline
        Lays147L Offline
        Lays147
        wrote on last edited by
        #6

        One more make error on Ubuntu 15.04

        /usr/bin/ld.gold: .obj/moc_qm3uhandler.o: previous definition here
        /usr/bin/ld.gold: error: /home/lays/qt5/qtmultimedia/plugins/playlistformats/libqtmultimedia_m3u.a(moc_qm3uhandler.o): multiple definition of 'QM3uPlaylistPlugin::staticMetaObject'
        /usr/bin/ld.gold: .obj/moc_qm3uhandler.o: previous definition here
        /usr/bin/ld.gold: error: /home/lays/qt5/qtmultimedia/plugins/playlistformats/libqtmultimedia_m3u.a(moc_qm3uhandler.o): multiple definition of 'QM3uPlaylistPlugin::qt_metacast(char const*)'
        /usr/bin/ld.gold: .obj/moc_qm3uhandler.o: previous definition here
        /usr/bin/ld.gold: error: /home/lays/qt5/qtmultimedia/plugins/playlistformats/libqtmultimedia_m3u.a(moc_qm3uhandler.o): multiple definition of 'QM3uPlaylistPlugin::qt_metacall(QMetaObject::Call, int, void**)'
        /usr/bin/ld.gold: .obj/moc_qm3uhandler.o: previous definition here
        collect2: error: ld returned 1 exit status
        Makefile:115: recipe for target 'tst_qmediaplaylist' failed
        make[6]: *** [tst_qmediaplaylist] Error 1
        make[6]: Leaving directory '/home/lays/qt5/qtmultimedia/tests/auto/unit/qmediaplaylist'
        Makefile.multimedia:400: recipe for target 'sub-qmediaplaylist-make_first' failed
        make[5]: *** [sub-qmediaplaylist-make_first] Error 2
        make[5]: Leaving directory '/home/lays/qt5/qtmultimedia/tests/auto/unit'
        Makefile:42: recipe for target 'sub-multimedia-pro-make_first' failed
        make[4]: *** [sub-multimedia-pro-make_first] Error 2
        make[4]: Leaving directory '/home/lays/qt5/qtmultimedia/tests/auto/unit'
        Makefile:44: recipe for target 'sub-unit-make_first' failed
        make[3]: *** [sub-unit-make_first] Error 2
        make[3]: Leaving directory '/home/lays/qt5/qtmultimedia/tests/auto'
        Makefile:42: recipe for target 'sub-auto-make_first' failed
        make[2]: *** [sub-auto-make_first] Error 2
        make[2]: Leaving directory '/home/lays/qt5/qtmultimedia/tests'
        Makefile:94: recipe for target 'sub-tests-make_first' failed
        make[1]: *** [sub-tests-make_first] Error 2
        make[1]: Leaving directory '/home/lays/qt5/qtmultimedia'
        Makefile:299: recipe for target 'module-qtmultimedia-make_first' failed
        make: *** [module-qtmultimedia-make_first] Error 2
        lays@lays:~/qt5$ 
        
        

        With this configure: ./configure -prefix QtNew -release -developer-build -opensource -confirm-license -qt-xcb -opengl -static
        Am I doing something wrong?

        Lays Rodrigues
        Newby on Qt - Learning always!
        Using QT 5.7
        ArchLinux

        1 Reply Last reply
        0
        • Lays147L Offline
          Lays147L Offline
          Lays147
          wrote on last edited by Lays147
          #7

          If i try to make from qt everywere open source from source code on qt.io i receive this message on terminal:

          lays@lays:~$ cd qt-everywhere/
          lays@lays:~/qt-everywhere$ ./configure -prefix QtNew -release -developer-build -opensource -confirm-license -qt-xcb -opengl -static
          bash: ./configure: /bin/sh^M: bad interpreter: No such file or directory
          lays@lays:~/qt-everywhere$ gedit configure
          lays@lays:~/qt-everywhere$ ./configure -prefix QtNew -release -developer-build -opensource -confirm-license -qt-xcb -opengl -static
          + cd qtbase
          + /home/lays/qt-everywhere/qtbase/configure -top-level -prefix QtNew -release -developer-build -opensource -confirm-license -qt-xcb -opengl -static
          ./configure: 49: exec: /home/lays/qt-everywhere/qtbase/configure: not found
          lays@lays:~/qt-everywhere$ cd qtbase/
          lays@lays:~/qt-everywhere/qtbase$ ./configure 
          bash: ./configure: /bin/sh^M: bad interpreter: No such file or directory
          lays@lays:~/qt-everywhere/qtbase$ gedit configure
          lays@lays:~/qt-everywhere/qtbase$ cd ..
          lays@lays:~/qt-everywhere$ ./configure -prefix QtNew -release -developer-build -opensource -confirm-license -qt-xcb -opengl -static
          + cd qtbase
          + /home/lays/qt-everywhere/qtbase/configure -top-level -prefix QtNew -release -developer-build -opensource -confirm-license -qt-xcb -opengl -static
          You don't seem to have 'make' or 'gmake' in your PATH.
          Cannot proceed.
          lays@lays:~/qt-everywhere$ 
          
          

          After i edit the configre files for encode Unix.

          Lays Rodrigues
          Newby on Qt - Learning always!
          Using QT 5.7
          ArchLinux

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #8

            Don't build the examples nor the tests.

            And if you try to call configure again without cleaning the sources, it will fail.

            Do out of source builds, that way you can just nuke the failed build folder before trying again.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            Lays147L 1 Reply Last reply
            0
            • SGaistS SGaist

              Don't build the examples nor the tests.

              And if you try to call configure again without cleaning the sources, it will fail.

              Do out of source builds, that way you can just nuke the failed build folder before trying again.

              Lays147L Offline
              Lays147L Offline
              Lays147
              wrote on last edited by Lays147
              #9

              @SGaist When i try to make again, i download again the source from git, just in case. I dont try configure 2 or more time. Just one indeed. I just want to build qt static with opengl, what type of configuration do you indicate?
              Because this type of configuration worked for me before, i dont know whats happening now.

              Lays Rodrigues
              Newby on Qt - Learning always!
              Using QT 5.7
              ArchLinux

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by SGaist
                #10

                ./configure -prefix QtNew -release -opensource -confirm-license -static -qt-xcb -no-glib -no-pulseaudio -no-alsa -opengl desktop -nomake examples -nomake tests

                [edit: Fixed option name SGaist]

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                Lays147L 1 Reply Last reply
                3
                • SGaistS SGaist

                  ./configure -prefix QtNew -release -opensource -confirm-license -static -qt-xcb -no-glib -no-pulseaudio -no-alsa -opengl desktop -nomake examples -nomake tests

                  [edit: Fixed option name SGaist]

                  Lays147L Offline
                  Lays147L Offline
                  Lays147
                  wrote on last edited by
                  #11

                  @SGaist Thanks, its finally work!

                  Lays Rodrigues
                  Newby on Qt - Learning always!
                  Using QT 5.7
                  ArchLinux

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    ardhi
                    wrote on last edited by
                    #12

                    Sorry for bumping old topic, but this one that first shown in google search.

                    If someone stumbled upon something like:

                    + qt-everywhere-opensource-src-5.9.1/qtbase/configure -top-level -static -no-make examples
                    Creating qmake...
                    .Done.
                    ERROR: Invalid value 'no' supplied to command line option 'make'.
                    
                    ERROR: Invalid command line parameter 'examples'.
                    

                    The correct command is -nomake not -no-make

                    1 Reply Last reply
                    1
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #13

                      Typos typos... Thanks, I've fixed them.

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      A 1 Reply Last reply
                      0
                      • SGaistS SGaist

                        Typos typos... Thanks, I've fixed them.

                        A Offline
                        A Offline
                        AXZS
                        wrote on last edited by
                        #14

                        @SGaist !
                        I followed suggestions of yours on this forum but still
                        Getting following error while configuring Qt

                        gmake: *** [Makefile:378: qutfcodec.o] Error 1

                        Please find attached snippet of logs:
                        2daa01d6-3cfa-4709-ba52-8af6a8d0a64e-image.png

                        A 1 Reply Last reply
                        0
                        • A AXZS

                          @SGaist !
                          I followed suggestions of yours on this forum but still
                          Getting following error while configuring Qt

                          gmake: *** [Makefile:378: qutfcodec.o] Error 1

                          Please find attached snippet of logs:
                          2daa01d6-3cfa-4709-ba52-8af6a8d0a64e-image.png

                          A Offline
                          A Offline
                          AXZS
                          wrote on last edited by
                          #15

                          @AXZS ./configure -platform linux-g++ -release -device linux-beagleboard-g++ \ -sysroot /home/rnd100/BBB/sysroot-glibc-linaro-2.25-2019.12-arm-linux-gnueabihf -prefix ~/Qt5ForBBB -hostprefix ~/Qt5forBBB -device-option CROSS_COMPILE=/home/rnd100/BBB/gcc-linaro-7.5.0-2019.12-i686-mingw32_arm-linux-gnueabihf- -nomake tests -nomake examples -no-opengl -opensource -confirm-license -reduce-exports -make libs

                          • cd qtbase

                          • /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/configure -top-level -platform linux-g++ -release -device linux-beagleboard-g++ -sysroot /home/rnd100/BBB/sysroot-glibc-linaro-2.25-2019.12-arm-linux-gnueabihf -prefix /home/rnd100/Qt5ForBBB -hostprefix /home/rnd100/Qt5forBBB -device-option CROSS_COMPILE=/home/rnd100/BBB/gcc-linaro-7.5.0-2019.12-i686-mingw32_arm-linux-gnueabihf- -nomake tests -nomake examples -no-opengl -opensource -confirm-license -reduce-exports -make libs

                          Creating qmake...

                          .In file included from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/qendian.h:1,

                                       from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/src/corelib/codecs/qutfcodec.cpp:43:
                          

                          /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/../../src/corelib/global/qendian.h: In static member function ‘static constexpr QSpecialInteger<S> QSpecialInteger<S>::max()’:

                          /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/../../src/corelib/global/qendian.h:331:35: error: ‘numeric_limits’ is not a member of ‘std’

                          331 | { return QSpecialInteger(std::numeric_limits<T>::max()); }

                            |                                   ^~~~~~~~~~~~~~
                          

                          /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/../../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 /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/../../src/corelib/global/qglobal.h:142,
                          
                                       from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/qglobal.h:1,
                          
                                       from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/../../src/corelib/tools/qchar.h:43,
                          
                                       from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/qchar.h:1,
                          
                                       from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/../../src/corelib/tools/qstring.h:48,
                          
                                       from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/qstring.h:1,
                          
                                       from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/src/corelib/codecs/qutfcodec_p.h:55,
                          
                                       from /home/rnd100/BBB/qt-everywhere-src-5.12.1/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 /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/qendian.h:1,

                                       from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/src/corelib/codecs/qutfcodec.cpp:43:
                          

                          /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/../../src/corelib/global/qendian.h:331:29: error: expected primary-expression before ‘(’ token

                          331 | { return QSpecialInteger(std::numeric_limits<T>::max()); }

                            |                             ^
                          

                          /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/../../src/corelib/global/qendian.h:331:35: error: ‘numeric_limits’ is not a member of ‘std’

                          331 | { return QSpecialInteger(std::numeric_limits<T>::max()); }

                            |                                   ^~~~~~~~~~~~~~
                          

                          /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/../../src/corelib/global/qendian.h:331:51: error: expected primary-expression before ‘>’ token

                          331 | { return QSpecialInteger(std::numeric_limits<T>::max()); }

                            |                                                   ^
                          

                          /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/../../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 /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/../../src/corelib/global/qglobal.h:142,
                          
                                       from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/qglobal.h:1,
                          
                                       from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/../../src/corelib/tools/qchar.h:43,
                          
                                       from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/qchar.h:1,
                          
                                       from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/../../src/corelib/tools/qstring.h:48,
                          
                                       from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/qstring.h:1,
                          
                                       from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/src/corelib/codecs/qutfcodec_p.h:55,
                          
                                       from /home/rnd100/BBB/qt-everywhere-src-5.12.1/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 /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/qendian.h:1,

                                       from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/src/corelib/codecs/qutfcodec.cpp:43:
                          

                          /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/../../src/corelib/global/qendian.h: In static member function ‘static constexpr QSpecialInteger<S> QSpecialInteger<S>::min()’:

                          /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/../../src/corelib/global/qendian.h:333:35: error: ‘numeric_limits’ is not a member of ‘std’

                          333 | { return QSpecialInteger(std::numeric_limits<T>::min()); }

                            |                                   ^~~~~~~~~~~~~~
                          

                          /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/../../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 /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/../../src/corelib/global/qglobal.h:142,
                          
                                       from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/qglobal.h:1,
                          
                                       from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/../../src/corelib/tools/qchar.h:43,
                          
                                       from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/qchar.h:1,
                          
                                       from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/../../src/corelib/tools/qstring.h:48,
                          
                                       from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/qstring.h:1,
                          
                                       from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/src/corelib/codecs/qutfcodec_p.h:55,
                          
                                       from /home/rnd100/BBB/qt-everywhere-src-5.12.1/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 /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/qendian.h:1,

                                       from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/src/corelib/codecs/qutfcodec.cpp:43:
                          

                          /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/../../src/corelib/global/qendian.h:333:29: error: expected primary-expression before ‘(’ token

                          333 | { return QSpecialInteger(std::numeric_limits<T>::min()); }

                            |                             ^
                          

                          /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/../../src/corelib/global/qendian.h:333:35: error: ‘numeric_limits’ is not a member of ‘std’

                          333 | { return QSpecialInteger(std::numeric_limits<T>::min()); }

                            |                                   ^~~~~~~~~~~~~~
                          

                          /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/../../src/corelib/global/qendian.h:333:51: error: expected primary-expression before ‘>’ token

                          333 | { return QSpecialInteger(std::numeric_limits<T>::min()); }

                            |                                                   ^
                          

                          /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/../../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 /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/../../src/corelib/global/qglobal.h:142,
                          
                                       from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/qglobal.h:1,
                          
                                       from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/../../src/corelib/tools/qchar.h:43,
                          
                                       from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/qchar.h:1,
                          
                                       from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/../../src/corelib/tools/qstring.h:48,
                          
                                       from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/qstring.h:1,
                          
                                       from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/src/corelib/codecs/qutfcodec_p.h:55,
                          
                                       from /home/rnd100/BBB/qt-everywhere-src-5.12.1/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:378: qutfcodec.o] Error 1

                          M 1 Reply Last reply
                          1
                          • SGaistS Offline
                            SGaistS Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on last edited by
                            #16

                            Why are you using a MinGW based cross-compiler ?

                            Interested in AI ? www.idiap.ch
                            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                            1 Reply Last reply
                            1
                            • A AXZS

                              @AXZS ./configure -platform linux-g++ -release -device linux-beagleboard-g++ \ -sysroot /home/rnd100/BBB/sysroot-glibc-linaro-2.25-2019.12-arm-linux-gnueabihf -prefix ~/Qt5ForBBB -hostprefix ~/Qt5forBBB -device-option CROSS_COMPILE=/home/rnd100/BBB/gcc-linaro-7.5.0-2019.12-i686-mingw32_arm-linux-gnueabihf- -nomake tests -nomake examples -no-opengl -opensource -confirm-license -reduce-exports -make libs

                              • cd qtbase

                              • /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/configure -top-level -platform linux-g++ -release -device linux-beagleboard-g++ -sysroot /home/rnd100/BBB/sysroot-glibc-linaro-2.25-2019.12-arm-linux-gnueabihf -prefix /home/rnd100/Qt5ForBBB -hostprefix /home/rnd100/Qt5forBBB -device-option CROSS_COMPILE=/home/rnd100/BBB/gcc-linaro-7.5.0-2019.12-i686-mingw32_arm-linux-gnueabihf- -nomake tests -nomake examples -no-opengl -opensource -confirm-license -reduce-exports -make libs

                              Creating qmake...

                              .In file included from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/qendian.h:1,

                                           from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/src/corelib/codecs/qutfcodec.cpp:43:
                              

                              /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/../../src/corelib/global/qendian.h: In static member function ‘static constexpr QSpecialInteger<S> QSpecialInteger<S>::max()’:

                              /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/../../src/corelib/global/qendian.h:331:35: error: ‘numeric_limits’ is not a member of ‘std’

                              331 | { return QSpecialInteger(std::numeric_limits<T>::max()); }

                                |                                   ^~~~~~~~~~~~~~
                              

                              /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/../../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 /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/../../src/corelib/global/qglobal.h:142,
                              
                                           from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/qglobal.h:1,
                              
                                           from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/../../src/corelib/tools/qchar.h:43,
                              
                                           from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/qchar.h:1,
                              
                                           from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/../../src/corelib/tools/qstring.h:48,
                              
                                           from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/qstring.h:1,
                              
                                           from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/src/corelib/codecs/qutfcodec_p.h:55,
                              
                                           from /home/rnd100/BBB/qt-everywhere-src-5.12.1/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 /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/qendian.h:1,

                                           from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/src/corelib/codecs/qutfcodec.cpp:43:
                              

                              /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/../../src/corelib/global/qendian.h:331:29: error: expected primary-expression before ‘(’ token

                              331 | { return QSpecialInteger(std::numeric_limits<T>::max()); }

                                |                             ^
                              

                              /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/../../src/corelib/global/qendian.h:331:35: error: ‘numeric_limits’ is not a member of ‘std’

                              331 | { return QSpecialInteger(std::numeric_limits<T>::max()); }

                                |                                   ^~~~~~~~~~~~~~
                              

                              /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/../../src/corelib/global/qendian.h:331:51: error: expected primary-expression before ‘>’ token

                              331 | { return QSpecialInteger(std::numeric_limits<T>::max()); }

                                |                                                   ^
                              

                              /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/../../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 /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/../../src/corelib/global/qglobal.h:142,
                              
                                           from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/qglobal.h:1,
                              
                                           from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/../../src/corelib/tools/qchar.h:43,
                              
                                           from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/qchar.h:1,
                              
                                           from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/../../src/corelib/tools/qstring.h:48,
                              
                                           from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/qstring.h:1,
                              
                                           from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/src/corelib/codecs/qutfcodec_p.h:55,
                              
                                           from /home/rnd100/BBB/qt-everywhere-src-5.12.1/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 /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/qendian.h:1,

                                           from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/src/corelib/codecs/qutfcodec.cpp:43:
                              

                              /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/../../src/corelib/global/qendian.h: In static member function ‘static constexpr QSpecialInteger<S> QSpecialInteger<S>::min()’:

                              /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/../../src/corelib/global/qendian.h:333:35: error: ‘numeric_limits’ is not a member of ‘std’

                              333 | { return QSpecialInteger(std::numeric_limits<T>::min()); }

                                |                                   ^~~~~~~~~~~~~~
                              

                              /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/../../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 /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/../../src/corelib/global/qglobal.h:142,
                              
                                           from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/qglobal.h:1,
                              
                                           from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/../../src/corelib/tools/qchar.h:43,
                              
                                           from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/qchar.h:1,
                              
                                           from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/../../src/corelib/tools/qstring.h:48,
                              
                                           from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/qstring.h:1,
                              
                                           from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/src/corelib/codecs/qutfcodec_p.h:55,
                              
                                           from /home/rnd100/BBB/qt-everywhere-src-5.12.1/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 /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/qendian.h:1,

                                           from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/src/corelib/codecs/qutfcodec.cpp:43:
                              

                              /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/../../src/corelib/global/qendian.h:333:29: error: expected primary-expression before ‘(’ token

                              333 | { return QSpecialInteger(std::numeric_limits<T>::min()); }

                                |                             ^
                              

                              /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/../../src/corelib/global/qendian.h:333:35: error: ‘numeric_limits’ is not a member of ‘std’

                              333 | { return QSpecialInteger(std::numeric_limits<T>::min()); }

                                |                                   ^~~~~~~~~~~~~~
                              

                              /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/../../src/corelib/global/qendian.h:333:51: error: expected primary-expression before ‘>’ token

                              333 | { return QSpecialInteger(std::numeric_limits<T>::min()); }

                                |                                                   ^
                              

                              /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/../../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 /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/../../src/corelib/global/qglobal.h:142,
                              
                                           from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/qglobal.h:1,
                              
                                           from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/../../src/corelib/tools/qchar.h:43,
                              
                                           from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/qchar.h:1,
                              
                                           from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/../../src/corelib/tools/qstring.h:48,
                              
                                           from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/include/QtCore/qstring.h:1,
                              
                                           from /home/rnd100/BBB/qt-everywhere-src-5.12.1/qtbase/src/corelib/codecs/qutfcodec_p.h:55,
                              
                                           from /home/rnd100/BBB/qt-everywhere-src-5.12.1/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:378: qutfcodec.o] Error 1

                              M Offline
                              M Offline
                              Mihir
                              wrote on last edited by
                              #17

                              @AXZS i have same problem please help me to solve.

                              D 1 Reply Last reply
                              0
                              • M Mihir

                                @AXZS i have same problem please help me to solve.

                                D Offline
                                D Offline
                                deshanharshana
                                wrote on last edited by
                                #18

                                @Mihir i think problem is in your gcc version. i also had that problem and i change my gcc version to gcc 9.5.0

                                1. sudo add-apt-repository ppa:ubuntu-toolchain-r/ppa -y

                                2. sudo apt install g++-9 gcc-9

                                sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 80 --slave /usr/bin/g++ g++ /usr/bin/g++-11 --slave /usr/bin/gcov gcov /usr/bin/gcov-11

                                sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 100 --slave /usr/bin/g++ g++ /usr/bin/g++-9 --slave /usr/bin/gcov gcov /usr/bin/gcov-9

                                1. sudo update-alternatives --config gcc

                                and try again with configuration

                                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