Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to get GCC for Qt 5.9.5?
Qt 6.12 LTS is out! See what's new in the release blog

How to get GCC for Qt 5.9.5?

Scheduled Pinned Locked Moved Unsolved General and Desktop
13 Posts 4 Posters 4.2k 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.
  • SGaistS SGaist

    Hi,

    There's a coherence issue here: you mention 5.9.5 but your shows 6.3.0.

    Are you sure you are using the correct version of Qt ?

    hslee_6560H Offline
    hslee_6560H Offline
    hslee_6560
    wrote on last edited by
    #3

    @SGaist I think the 6.3.0 is mingw version, not qt version. I realized mingw53_32 is in qt 5.9.5 already. But still working on it. why mingw53_32 is separated in two directories? There are C:\Qt\5.9.5\Tools\mingw530_32 and C:\Qt\5.9.5\mingw53_32. As the contents inside, former looks like MinGW side, and Latter looks like Qt side.

    SGaistS 1 Reply Last reply
    0
    • hslee_6560H hslee_6560

      @SGaist I think the 6.3.0 is mingw version, not qt version. I realized mingw53_32 is in qt 5.9.5 already. But still working on it. why mingw53_32 is separated in two directories? There are C:\Qt\5.9.5\Tools\mingw530_32 and C:\Qt\5.9.5\mingw53_32. As the contents inside, former looks like MinGW side, and Latter looks like Qt side.

      SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #4
      C:\Qt\5.9.5\mingw53_32
      

      This means that you have a 32 bit Qt version built with MinGW5.3. The subfolder name indicates which compiler was used as well as the architecture of the build.

      The compiler is located under Tools.

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

      hslee_6560H 1 Reply Last reply
      2
      • SGaistS SGaist
        C:\Qt\5.9.5\mingw53_32
        

        This means that you have a 32 bit Qt version built with MinGW5.3. The subfolder name indicates which compiler was used as well as the architecture of the build.

        The compiler is located under Tools.

        hslee_6560H Offline
        hslee_6560H Offline
        hslee_6560
        wrote on last edited by
        #5

        @SGaist I see, I think the mingw53_32 is missed something. So I want to get mingw 5.3.0 separately. is there MinGW archive something for each version of mingw? I could not find it.

        jsulmJ 1 Reply Last reply
        0
        • hslee_6560H hslee_6560

          @SGaist I see, I think the mingw53_32 is missed something. So I want to get mingw 5.3.0 separately. is there MinGW archive something for each version of mingw? I could not find it.

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #6

          @hslee_6560 How did you install Qt? The Qt installer and Qt maintenance tool both give you the possibility to install MinGW.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • J Offline
            J Offline
            Jleon
            wrote on last edited by
            #7

            Is this problem solved? I've met the same problem. My gstreamer android version:gstreamer-1.0-android-universal-1.18.6. However windows version work perfect.

            jsulmJ 1 Reply Last reply
            0
            • J Jleon

              Is this problem solved? I've met the same problem. My gstreamer android version:gstreamer-1.0-android-universal-1.18.6. However windows version work perfect.

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #8

              @Jleon said in How to get GCC for Qt 5.9.5?:

              I've met the same problem

              Not really. Problem in this thread was witn MinGW build on Windows.
              You have a problem with Android.
              Please explain exactly what you're doing and what the problem you have.

              GStreamer on Android: https://doc.qt.io/qt-5/platform-notes-gstreamer-on-android.html

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • J Offline
                J Offline
                Jleon
                wrote on last edited by Jleon
                #9

                I build a qgc project on the windows with qt version 5.15.2 , Android setting:jdk-11,sdk version 9.0 and ndk-verison 21.3.6528147. Before importing gstreamer, it work well. After downloading gstreamer-1.0-android-universal-1.18.6, and change the GST_ROOT at VideoReceiver.pri. I run the program in the abi of arm64-v8a, I get the following error.

                :/MinGW/lib/gcc/mingw32/6.3.0/include/c++/mingw32/bits/c++config.:223: Parse error at "__cxx11"
                make: *** [Makefile:128648: arm64-v8a\moc_gstqsgtexture.cpp] Error 1
                make: *** Waiting for unfinished jobs....
                :/MinGW/lib/gcc/mingw32/6.3.0/include/c++/mingw32/bits/c++config.:223: Parse error at "__cxx11"
                make: *** [Makefile:129061: arm64-v8a\moc_qtwindow.cpp] Error 1
                :/MinGW/lib/gcc/mingw32/6.3.0/include/c++/mingw32/bits/c++config.:223: Parse error at "__cxx11"
                make: *** [Makefile:129457: arm64-v8a\moc_qtitem.cpp] Error 1
                10:21:56: The process "D:\Android\sdk\ndk\21.3.6528147\prebuilt\windows-x86_64\bin\make.exe" exited with code 2.
                Error while building/deploying project qgroundcontrol (kit: Android Qt 5.15.2 Clang Multi-Abi)
                When executing step "Make"
                

                Should I modify the document of gradle?

                jsulmJ 1 Reply Last reply
                0
                • J Jleon

                  I build a qgc project on the windows with qt version 5.15.2 , Android setting:jdk-11,sdk version 9.0 and ndk-verison 21.3.6528147. Before importing gstreamer, it work well. After downloading gstreamer-1.0-android-universal-1.18.6, and change the GST_ROOT at VideoReceiver.pri. I run the program in the abi of arm64-v8a, I get the following error.

                  :/MinGW/lib/gcc/mingw32/6.3.0/include/c++/mingw32/bits/c++config.:223: Parse error at "__cxx11"
                  make: *** [Makefile:128648: arm64-v8a\moc_gstqsgtexture.cpp] Error 1
                  make: *** Waiting for unfinished jobs....
                  :/MinGW/lib/gcc/mingw32/6.3.0/include/c++/mingw32/bits/c++config.:223: Parse error at "__cxx11"
                  make: *** [Makefile:129061: arm64-v8a\moc_qtwindow.cpp] Error 1
                  :/MinGW/lib/gcc/mingw32/6.3.0/include/c++/mingw32/bits/c++config.:223: Parse error at "__cxx11"
                  make: *** [Makefile:129457: arm64-v8a\moc_qtitem.cpp] Error 1
                  10:21:56: The process "D:\Android\sdk\ndk\21.3.6528147\prebuilt\windows-x86_64\bin\make.exe" exited with code 2.
                  Error while building/deploying project qgroundcontrol (kit: Android Qt 5.15.2 Clang Multi-Abi)
                  When executing step "Make"
                  

                  Should I modify the document of gradle?

                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by
                  #10

                  @Jleon I don't understand what you are doing: if you're building for Android then why there is mingw32 stuff in the build log?!
                  And you always should post the very first error.

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • J Offline
                    J Offline
                    Jleon
                    wrote on last edited by
                    #11

                    Alright the first error is AVD start error, but I thought it's irrelevant. Well my setting is the belowing:

                    else : android-clang {
                            CONFIG += AndroidBuild MobileBuild
                            DEFINES += __android__
                            DEFINES += __STDC_LIMIT_MACROS
                            DEFINES += QGC_ENABLE_BLUETOOTH
                            DEFINES += QGC_GST_TAISYNC_ENABLED
                            DEFINES += QGC_GST_MICROHARD_ENABLED
                            QMAKE_CXXFLAGS_WARN_ON += -Werror \
                                -Wno-unused-parameter \             # gst_plugins-good has these errors
                                -Wno-implicit-fallthrough \         # gst_plugins-good has these errors
                                -Wno-unused-command-line-argument \ # from somewhere in Qt generated build files
                                -Wno-parentheses-equality           # android gstreamer header files
                            }
                    

                    I was not sure why did mingw32 in there.

                    1 Reply Last reply
                    0
                    • J Offline
                      J Offline
                      Jleon
                      wrote on last edited by
                      #12

                      I found the answer.
                      Go to the file:C:\MinGW\lib\gcc\mingw32\6.3.0\include\c++\mingw32\bits\c++config.h
                      And modify the code

                      #define _GLIBCXX_USE_CXX11_ABI 0
                      

                      from 1 to 0
                      But I don't think it is the best solution, it might destroy some structure.
                      What flags should I use in .pro to make sure the file got to know it defines to zero?

                      image.png

                      jsulmJ 1 Reply Last reply
                      0
                      • J Jleon

                        I found the answer.
                        Go to the file:C:\MinGW\lib\gcc\mingw32\6.3.0\include\c++\mingw32\bits\c++config.h
                        And modify the code

                        #define _GLIBCXX_USE_CXX11_ABI 0
                        

                        from 1 to 0
                        But I don't think it is the best solution, it might destroy some structure.
                        What flags should I use in .pro to make sure the file got to know it defines to zero?

                        image.png

                        jsulmJ Offline
                        jsulmJ Offline
                        jsulm
                        Lifetime Qt Champion
                        wrote on last edited by
                        #13

                        @Jleon I still fail to understand what MinGW stuff has to do with Android build.
                        For Android the Clang compiler from NDK is used.
                        It seems that your environment is broken.

                        https://forum.qt.io/topic/113070/qt-code-of-conduct

                        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
                        • Unsolved