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 when building Qt5.15.16 from source
Forum Updated to NodeBB v4.3 + New Features

Error when building Qt5.15.16 from source

Scheduled Pinned Locked Moved Unsolved General and Desktop
13 Posts 5 Posters 520 Views 2 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.
  • C Christian Ehrlicher
    29 days ago

    Your compiler is to old

    G Offline
    G Offline
    Gravit22
    wrote 29 days ago last edited by
    #3

    @Christian-Ehrlicher I do not understand. My Perl version is v5.38.2 and cmake version is 3.28.3.
    As I understand it is relatively recent. What exactly is outdated?

    C 1 Reply Last reply 29 days ago
    0
    • P Offline
      P Offline
      piervalli
      wrote 29 days ago last edited by
      #4

      It Is Qt5 what is the version of mingw64 used?

      1 Reply Last reply
      0
      • G Gravit22
        29 days ago

        @Christian-Ehrlicher I do not understand. My Perl version is v5.38.2 and cmake version is 3.28.3.
        As I understand it is relatively recent. What exactly is outdated?

        C Offline
        C Offline
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote 29 days ago last edited by
        #5

        @Gravit22 said in Error when building Qt5.15.16 from source:

        My Perl version is v5.38.2 and cmake version is 3.

        Neither of them is your compiler... You need a recent gcc

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

        G 1 Reply Last reply 29 days ago
        3
        • C Christian Ehrlicher
          29 days ago

          @Gravit22 said in Error when building Qt5.15.16 from source:

          My Perl version is v5.38.2 and cmake version is 3.

          Neither of them is your compiler... You need a recent gcc

          G Offline
          G Offline
          Gravit22
          wrote 29 days ago last edited by Gravit22 5 Oct 2025, 12:44
          #6

          @Christian-Ehrlicher My gcc version is:
          gcc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
          Also seems not too bad
          @piervalli as I understand this is my mingw64 version

          C 1 Reply Last reply 29 days ago
          0
          • P Offline
            P Offline
            piervalli
            wrote 29 days ago last edited by
            #7

            Sorry usually I use Windows instead of Linux the same version of Qt Ubuntu 20.04, you can find on release notes which is the distro used.

            1 Reply Last reply
            0
            • P Offline
              P Offline
              piervalli
              wrote 29 days ago last edited by
              #8

              This is page
              https://wiki.qt.io/Qt_5.15_Tools_and_Versions

              1 Reply Last reply
              0
              • G Gravit22
                29 days ago

                @Christian-Ehrlicher My gcc version is:
                gcc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
                Also seems not too bad
                @piervalli as I understand this is my mingw64 version

                C Offline
                C Offline
                Christian Ehrlicher
                Lifetime Qt Champion
                wrote 29 days ago last edited by
                #9

                @Gravit22 it looks like an older version is used. What does 'gcc - - version' say?

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

                G 1 Reply Last reply 28 days ago
                0
                • C Christian Ehrlicher
                  29 days ago

                  @Gravit22 it looks like an older version is used. What does 'gcc - - version' say?

                  G Offline
                  G Offline
                  Gravit22
                  wrote 28 days ago last edited by
                  #10

                  @Christian-Ehrlicher It states the version of gcc is 13.3.0

                  gcc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
                  Copyright (C) 2023 Free Software Foundation, Inc.
                  This is free software; see the source for copying conditions.  There is NO
                  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
                  
                  1 Reply Last reply
                  0
                  • P Offline
                    P Offline
                    posktomten
                    wrote 28 days ago last edited by
                    #11

                    Worked for me

                    Qt5.15.16
                    Compiled on Lubuntu 20.04 64-bit
                    GLIBC 2.31
                    GCC 9.4.0
                    
                    
                     ../qt-everywhere-src-5.15.16/configure -release -prefix "/opt/Qt/5.15.16/gcc_64" -opensource -confirm-license -silent -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -system-freetype -opengl desktop -make libs -make tools -flite -openssl-runtime OPENSSL_PREFIX="/opt/Qt/Tools/OpenSSLv3/src"
                    
                    make
                    make install
                    

                    posktomten

                    1 Reply Last reply
                    0
                    • C Offline
                      C Offline
                      Christian Ehrlicher
                      Lifetime Qt Champion
                      wrote 28 days ago last edited by
                      #12

                      Also - do you really need qtlocation? If not simply skip it.

                      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
                      • H Offline
                        H Offline
                        hskoglund
                        wrote 28 days ago last edited by
                        #13

                        Hi, good advice of @Christian-Ehrlicher 's to skip it, otherwise there is a solution here:
                        https://bugreports.qt.io/browse/QTBUG-122589

                        1 Reply Last reply
                        2

                        12/13

                        11 May 2025, 09:42

                        • Login

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