Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt 5.15.2 build error
Forum Updated to NodeBB v4.3 + New Features

Qt 5.15.2 build error

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
7 Posts 3 Posters 1.3k Views 1 Watching
  • 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
    montarou
    wrote on last edited by montarou
    #1

    I want to install Qt5 compiling source on a Linux Ubuntu 23.10 OS (Mantic)
    I download the qt-everywhere-src-5.15.2.tar.gz file from the Qt
    (http://download.qt.io/archive/qt/5.15/5.15.2/single page

    after unzipping this file, i did a shadow building, that i create a qt-everywhere-src-5.15.2-build directory out of the src file.
    i run inside the build directory, the configure file

    cd ~/qt-everywhere-src-5.15.2-build
    ~/ qt-everywhere-src-5.15.2/configure

    I should modify the ~/qt-everywhere-src-5.15.2/qtbase/src/corelib/global/qglobal.h file to avoid a first error (error : ‘numeric_limits’ is not a class template..)

    Such an error is documented on the web. One should add the three first lines to the qglobal.h header file

    #ifdef __cplusplus
    #include<limits>
    #endif

    Afterthat configure is successfull and generate makefiles in the ~/qt-everywhere-src-5.15.2-build repertory

    I ran then make but have the following error
    29e13107-ae74-4ce9-bff7-59b72f9e8aa3-image.png
    I try on a second PC the same process. I note that on this other PC the output lines were different since it request that llvm-config file is in the PATH
    4be9e19f-ca3f-4c6f-8e19-cbcba8f2268f-image.png
    So i add in my .basrhc file ‘export PATH=${PATH}:/usr/lib/llvm-13/bin’
    e8091060-87ba-4fc0-98fe-5b5559d4a83d-image.png
    In addition i add différents packages with synaptic :
    23ed54cd-ef82-4d38-9559-3c16db07db06-image.png
    I ran again make put get same error.

    I did not found any information on the web on such an error

    Christian EhrlicherC 1 Reply Last reply
    0
    • M montarou

      I want to install Qt5 compiling source on a Linux Ubuntu 23.10 OS (Mantic)
      I download the qt-everywhere-src-5.15.2.tar.gz file from the Qt
      (http://download.qt.io/archive/qt/5.15/5.15.2/single page

      after unzipping this file, i did a shadow building, that i create a qt-everywhere-src-5.15.2-build directory out of the src file.
      i run inside the build directory, the configure file

      cd ~/qt-everywhere-src-5.15.2-build
      ~/ qt-everywhere-src-5.15.2/configure

      I should modify the ~/qt-everywhere-src-5.15.2/qtbase/src/corelib/global/qglobal.h file to avoid a first error (error : ‘numeric_limits’ is not a class template..)

      Such an error is documented on the web. One should add the three first lines to the qglobal.h header file

      #ifdef __cplusplus
      #include<limits>
      #endif

      Afterthat configure is successfull and generate makefiles in the ~/qt-everywhere-src-5.15.2-build repertory

      I ran then make but have the following error
      29e13107-ae74-4ce9-bff7-59b72f9e8aa3-image.png
      I try on a second PC the same process. I note that on this other PC the output lines were different since it request that llvm-config file is in the PATH
      4be9e19f-ca3f-4c6f-8e19-cbcba8f2268f-image.png
      So i add in my .basrhc file ‘export PATH=${PATH}:/usr/lib/llvm-13/bin’
      e8091060-87ba-4fc0-98fe-5b5559d4a83d-image.png
      In addition i add différents packages with synaptic :
      23ed54cd-ef82-4d38-9559-3c16db07db06-image.png
      I ran again make put get same error.

      I did not found any information on the web on such an error

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

      What gcc version do you use for compiling? Looks like it is to old.

      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

        What gcc version do you use for compiling? Looks like it is to old.

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

        @Christian-Ehrlicher i use gcc 13.2.0

        Christian EhrlicherC 1 Reply Last reply
        0
        • M montarou

          @Christian-Ehrlicher i use gcc 13.2.0

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

          @montarou then I would not expect such an error since this is plain c++11. Make sure the correct compiler is used.

          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
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Hi,

            Since you are building Qt yourself, you should also grab the sources of the latest available version in the series.

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

            M 1 Reply Last reply
            0
            • SGaistS SGaist

              Hi,

              Since you are building Qt yourself, you should also grab the sources of the latest available version in the series.

              M Offline
              M Offline
              montarou
              wrote on last edited by
              #6

              @SGaist i did it but got the following error
              9ed149ca-fa43-4067-a6f4-0b07187defef-T30.png

              Christian EhrlicherC 1 Reply Last reply
              0
              • M montarou

                @SGaist i did it but got the following error
                9ed149ca-fa43-4067-a6f4-0b07187defef-T30.png

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

                As already written - you most likely use a wrong ancient compiler instead the one you're thinking you use.
                Make sure to really use the correct one. run make with VERBOSE=1 to see the actual compiler invocations.

                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
                0

                • Login

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