Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Unable to delete "MinGW 13.1 64-bit" from "Build Tools"
Qt 6.12 LTS is out! See what's new in the release blog

Unable to delete "MinGW 13.1 64-bit" from "Build Tools"

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
14 Posts 5 Posters 566 Views 4 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.
  • 8Observer88 Offline
    8Observer88 Offline
    8Observer8
    wrote last edited by 8Observer8
    #1

    Hello, guys!

    It looks like a bug. I want to delete MinGW 13.1 64-bit from Build Tools:

    3da828dc-449b-4cf9-af98-4b6e505528d4-image.png

    I should uncheck that option to delete. But when I uncheck it try to delete whole Qt:

    5d753e37-e207-4c0d-a21e-093e293a3391-image.png

    3c20b858-9a42-4723-bf3b-f8cd2adbb988-image.png

    It is easy to test it on your computer. Please, confirm you see this problem or explain what I make wrong.

    P.S. I want to delete MinGW 13.1 64-bit because I recognized that I can use MinGW GCC 16.2 from https://winlibs.com/ with Qt because I have built a lot of libraries with GCC 16.2 and I do not want to rebuild them with GCC 13.1
    P.S.S. Yes, I can just reinstall whole Qt, but maybe it is a bug and I can help to point it to solve.

    1 Reply Last reply
    0
    • 8Observer88 8Observer8

      But when I uncheck Build Tools -> MinGW 13.1 64-bit it try to delete whole Qt:

      image.png

      JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote last edited by JKSH
      #7

      @8Observer8 said in Unable to delete "MinGW 13.1 64-bit" from "Build Tools":

      But when I uncheck Build Tools -> MinGW 13.1 64-bit it try to delete whole Qt:

      According to the Qt Online Installer's package manager, "Qt 6.12.0" > "MinGW 13.1.0 64-bit" depends on "Build Tools" > "MinGW 13.1.0 64-bit". So if you uninstall the compiler, it will also uninstall the libraries.

      This is not a bug. It also works the other way round: When someone tries to install "Qt 6.12.0" > "MinGW 13.1.0 64-bit", the installer will automatically install "Build Tools" > "MinGW 13.1.0 64-bit" too.

      P.S. I want to delete MinGW 13.1 64-bit because I recognized that I can use MinGW GCC 16.2 from https://winlibs.com/ with Qt because I have built a lot of libraries with GCC 16.2 and I do not want to rebuild them with GCC 13.1

      You can use your MinGW 16.2 toolchain to build Qt from source: https://doc.qt.io/qt-6/windows-building.html This will have no dependency on MinGW 13.1.

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      8Observer88 3 Replies Last reply
      2
      • Christian EhrlicherC Offline
        Christian EhrlicherC Offline
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote last edited by
        #2

        After deletion did you manually delete the folder on the disc?

        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
        • 8Observer88 Offline
          8Observer88 Offline
          8Observer8
          wrote last edited by 8Observer8
          #3

          No, I did not delete anything. I have stopped on the stage on the screenshot above. What to try on the next step?

          1 Reply Last reply
          0
          • 8Observer88 Offline
            8Observer88 Offline
            8Observer8
            wrote last edited by 8Observer8
            #4

            So, I have installed Qt with Build Tools -> MinGW 13.1 64-bit. I want to delete MinGW 13.1 64-bit to free 600 MB:

            4704dc0c-7156-4f1b-abdb-09b30a17df37-image.png

            1 Reply Last reply
            0
            • 8Observer88 Offline
              8Observer88 Offline
              8Observer8
              wrote last edited by
              #5

              But when I uncheck Build Tools -> MinGW 13.1 64-bit it try to delete whole Qt:

              image.png

              JKSHJ 1 Reply Last reply
              0
              • 8Observer88 Offline
                8Observer88 Offline
                8Observer8
                wrote last edited by
                #6

                I've recorded a short video to demonstrate the problem: https://streamable.com/w5yjn8

                1 Reply Last reply
                0
                • 8Observer88 8Observer8

                  But when I uncheck Build Tools -> MinGW 13.1 64-bit it try to delete whole Qt:

                  image.png

                  JKSHJ Offline
                  JKSHJ Offline
                  JKSH
                  Moderators
                  wrote last edited by JKSH
                  #7

                  @8Observer8 said in Unable to delete "MinGW 13.1 64-bit" from "Build Tools":

                  But when I uncheck Build Tools -> MinGW 13.1 64-bit it try to delete whole Qt:

                  According to the Qt Online Installer's package manager, "Qt 6.12.0" > "MinGW 13.1.0 64-bit" depends on "Build Tools" > "MinGW 13.1.0 64-bit". So if you uninstall the compiler, it will also uninstall the libraries.

                  This is not a bug. It also works the other way round: When someone tries to install "Qt 6.12.0" > "MinGW 13.1.0 64-bit", the installer will automatically install "Build Tools" > "MinGW 13.1.0 64-bit" too.

                  P.S. I want to delete MinGW 13.1 64-bit because I recognized that I can use MinGW GCC 16.2 from https://winlibs.com/ with Qt because I have built a lot of libraries with GCC 16.2 and I do not want to rebuild them with GCC 13.1

                  You can use your MinGW 16.2 toolchain to build Qt from source: https://doc.qt.io/qt-6/windows-building.html This will have no dependency on MinGW 13.1.

                  Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                  8Observer88 3 Replies Last reply
                  2
                  • JKSHJ JKSH

                    @8Observer8 said in Unable to delete "MinGW 13.1 64-bit" from "Build Tools":

                    But when I uncheck Build Tools -> MinGW 13.1 64-bit it try to delete whole Qt:

                    According to the Qt Online Installer's package manager, "Qt 6.12.0" > "MinGW 13.1.0 64-bit" depends on "Build Tools" > "MinGW 13.1.0 64-bit". So if you uninstall the compiler, it will also uninstall the libraries.

                    This is not a bug. It also works the other way round: When someone tries to install "Qt 6.12.0" > "MinGW 13.1.0 64-bit", the installer will automatically install "Build Tools" > "MinGW 13.1.0 64-bit" too.

                    P.S. I want to delete MinGW 13.1 64-bit because I recognized that I can use MinGW GCC 16.2 from https://winlibs.com/ with Qt because I have built a lot of libraries with GCC 16.2 and I do not want to rebuild them with GCC 13.1

                    You can use your MinGW 16.2 toolchain to build Qt from source: https://doc.qt.io/qt-6/windows-building.html This will have no dependency on MinGW 13.1.

                    8Observer88 Offline
                    8Observer88 Offline
                    8Observer8
                    wrote last edited by 8Observer8
                    #8

                    @JKSH said in Unable to delete "MinGW 13.1 64-bit" from "Build Tools":

                    When someone tries to install "Qt 6.12.0" > "MinGW 13.1.0 64-bit", the installer will automatically install "Build Tools" > "MinGW 13.1.0 64-bit" too.

                    I've uninstalled Qt with Revo Uninstaller Pro to delete all files completely to install it again. When I check "Qt 6.12.0" > "MinGW 13.1.0 64-bit" the installer does not check "Build Tools" > "MinGW 13.1.0 64-bit" automatically:

                    b034e377-bd2c-4a63-8f3d-f20b13461e59-image.png

                    So it seems that it is possible to install Qt without "Build Tools" > "MinGW 13.1.0 64-bit". But on the end step it includes "Build Tools" > "MinGW 13.1.0 64-bit":

                    f77905ec-a8bf-471e-8f26-e423a898fbd2-image.png

                    It would make sense if the "Build Tools" > "MinGW 13.1.0 64-bit" checkbox were automatically selected when the "Qt 6.12.0" > "MinGW 13.1.0 64-bit" checkbox appeared. Otherwise, it seems that the "Build Tools" > "MinGW 13.1.0 64-bit" option is independent of the "Qt 6.12.0" > "MinGW 13.1.0 64-bit" option. We can only find out about this at the final step.

                    JKSHJ 1 Reply Last reply
                    0
                    • JKSHJ JKSH

                      @8Observer8 said in Unable to delete "MinGW 13.1 64-bit" from "Build Tools":

                      But when I uncheck Build Tools -> MinGW 13.1 64-bit it try to delete whole Qt:

                      According to the Qt Online Installer's package manager, "Qt 6.12.0" > "MinGW 13.1.0 64-bit" depends on "Build Tools" > "MinGW 13.1.0 64-bit". So if you uninstall the compiler, it will also uninstall the libraries.

                      This is not a bug. It also works the other way round: When someone tries to install "Qt 6.12.0" > "MinGW 13.1.0 64-bit", the installer will automatically install "Build Tools" > "MinGW 13.1.0 64-bit" too.

                      P.S. I want to delete MinGW 13.1 64-bit because I recognized that I can use MinGW GCC 16.2 from https://winlibs.com/ with Qt because I have built a lot of libraries with GCC 16.2 and I do not want to rebuild them with GCC 13.1

                      You can use your MinGW 16.2 toolchain to build Qt from source: https://doc.qt.io/qt-6/windows-building.html This will have no dependency on MinGW 13.1.

                      8Observer88 Offline
                      8Observer88 Offline
                      8Observer8
                      wrote last edited by 8Observer8
                      #9

                      @JKSH said in Unable to delete "MinGW 13.1 64-bit" from "Build Tools":

                      You can use your MinGW 16.2 toolchain to build Qt from source: https://doc.qt.io/qt-6/windows-building.html This will have no dependency on MinGW 13.1.

                      It looks I should because of ABI. The free Gemini 3.8 Flash says: Benefit: 100% ABI compatibility, matching runtimes, and no mysterious linker or runtime crashes. Thus, mixing Qt MinGW 13.1 with MinGW 16.2 (build tools) may be the cause of crashes.

                      1 Reply Last reply
                      0
                      • JKSHJ JKSH

                        @8Observer8 said in Unable to delete "MinGW 13.1 64-bit" from "Build Tools":

                        But when I uncheck Build Tools -> MinGW 13.1 64-bit it try to delete whole Qt:

                        According to the Qt Online Installer's package manager, "Qt 6.12.0" > "MinGW 13.1.0 64-bit" depends on "Build Tools" > "MinGW 13.1.0 64-bit". So if you uninstall the compiler, it will also uninstall the libraries.

                        This is not a bug. It also works the other way round: When someone tries to install "Qt 6.12.0" > "MinGW 13.1.0 64-bit", the installer will automatically install "Build Tools" > "MinGW 13.1.0 64-bit" too.

                        P.S. I want to delete MinGW 13.1 64-bit because I recognized that I can use MinGW GCC 16.2 from https://winlibs.com/ with Qt because I have built a lot of libraries with GCC 16.2 and I do not want to rebuild them with GCC 13.1

                        You can use your MinGW 16.2 toolchain to build Qt from source: https://doc.qt.io/qt-6/windows-building.html This will have no dependency on MinGW 13.1.

                        8Observer88 Offline
                        8Observer88 Offline
                        8Observer8
                        wrote last edited by 8Observer8
                        #10

                        @JKSH said in Unable to delete "MinGW 13.1 64-bit" from "Build Tools":

                        You can use your MinGW 16.2 toolchain to build Qt from source: https://doc.qt.io/qt-6/windows-building.html This will have no dependency on MinGW 13.1.

                        Thank you very much! It is the best solution for my main goal! The main goal was to use Qt with MinGW GCC 16.2.0 from WinLibs.

                        I've saved my result here because it can be useful for someone or for me in the Future. I've built Qt 6.12.0 statically for Windows 10 with MinGW 16.2 for OpenGL and Desktop only. The instruction below was made by free Gemini 3.8 Flash but I have tested it.

                        The result:

                        • C:\Qt\6.12.0_static_mingw162 - 496 MB
                        • 2 minutes to clone source
                        • 20 minutes to build
                        • 2 seconds to install
                        • Released stripped EXE - 30 MB (12 MB in archive) for the OpenGL project: https://github.com/ivan-enzhaev/OpenGLTestQt6
                          f309d264-e174-4a78-b12d-77624d8da574-image.png

                        I have downloaded Qt Creator here: https://github.com/qt-creator/qt-creator/releases

                        The step-by-step guide:

                        • Download and unzip MinGW GCC 16.2.0: https://winlibs.com/ (add the C:\mingw64_16.2\bin path to Environment Variables
                        • Download and install CMake: https://cmake.org/download/
                        • Download and install Ninja (WinLibs is included it)

                        The following guide was generated by free Gemini 3.8 Flash (in Google AI Studio) but they were tested by me:

                        Because you only need Desktop OpenGL, QWindow, and QtWidgets, you do not even need the umbrella Qt repository or Perl. Everything you need is inside qtbase!

                        Cloning only qtbase is faster, uses very little disk space, and takes only ~15 to 25 minutes to build on your i7-7700.


                        Step 1: Clone only qtbase

                        Open a command prompt (make sure git, cmake, ninja, and WinLibs GCC bin are in your PATH):

                        mkdir C:\QtSource
                        cd C:\QtSource
                        
                        :: Clone only qtbase (shallow clone, ~150 MB download)
                        git clone --depth 1 -b v6.12.0 https://code.qt.io/qt/qtbase.git
                        

                        Step 2: Configure for a Static Build

                        Create a separate build folder and run configure.bat:

                        mkdir C:\QtBuild
                        cd C:\QtBuild
                        
                        :: Run configure from qtbase
                        C:\QtSource\qtbase\configure.bat ^
                          -static ^
                          -release ^
                          -prefix C:\Qt\6.12.0_static_mingw162 ^
                          -opengl desktop ^
                          -nomake examples ^
                          -nomake tests
                        

                        What these flags do:

                        • -static: Compiles all Qt libraries as static archives (.a) instead of dynamic DLLs (.dll).
                        • -release: Compiles optimized release libraries without bulky debug symbols (drastically cuts compile time and disk space).
                        • -opengl desktop: Uses native desktop OpenGL (opengl32.lib / GLES wrapper).
                        • -nomake examples -nomake tests: Skips all sample apps and unit tests to save 10+ minutes of build time.

                        Step 3: Compile and Install

                        Run ninja (it will automatically use all 8 threads of your i7-7700):

                        ninja
                        ninja install
                        
                        • Estimated Time: ~15 to 25 minutes.
                        • Final Installed Size: Only ~450 – 650 MB in C:\Qt\6.12.0_static_mingw162.
                        • Once ninja install completes, you can delete C:\QtBuild and C:\QtSource to reclaim disk space.

                        Step 4: Register Kit in Qt Creator

                        1. Open Qt Creator.
                        2. Go to Edit → Preferences (or Tools → Options).
                        3. Under Kits → Qt Versions, click Add and choose:
                          C:\Qt\6.12.0_static_mingw162\bin\qmake.exe
                        4. Under Kits → Compilers, verify your WinLibs GCC 16.2 (C and C++) is detected.
                        5. Under Kits → Debuggers, click Add:
                          • Name: GDB (WinLibs MinGW 16.2)
                          • Path: Choose gdb.exe from your WinLibs directory (e.g. C:\winlibs-...\bin\gdb.exe).
                        6. Under Kits → Kits, click Add:
                          • Name: Qt 6.12.0 Static (MinGW 16.2)
                          • Compiler: WinLibs GCC 16.2 (C and C++)
                          • Debugger: GDB (WinLibs MinGW 16.2)
                          • Qt version: The static one you just added.
                          • CMake Generator: Ninja

                        Step 5: How to use it in your project's CMakeLists.txt

                        When using a static Qt build on Windows, Qt's CMake macros automatically link the static platform plugin (qwindows.lib / libqwindows.a).

                        To make your application a single, 100% standalone .exe with no external DLLs needed, add -static to your target link options:

                        cmake_minimum_required(VERSION 3.21)
                        project(OpenGLTestQt6 LANGUAGES CXX)
                        
                        set(CMAKE_CXX_STANDARD 20)
                        set(CMAKE_CXX_STANDARD_REQUIRED ON)
                        
                        set(CMAKE_AUTOMOC ON)
                        set(CMAKE_AUTOUIC ON)
                        
                        find_package(Qt6 COMPONENTS Widgets OpenGLWidgets REQUIRED)
                        
                        add_executable(OpenGLTest WIN32
                            main.cpp
                            mainwindow.cpp
                            mainwindow.h
                            mainwindow.ui
                        )
                        
                        target_link_libraries(OpenGLTest PRIVATE
                            Qt6::Widgets
                            Qt6::OpenGLWidgets
                            opengl32
                        )
                        
                        if(MINGW)
                            target_link_options(OpenGLTest PRIVATE
                                -static
                                $<$<CONFIG:Release>:-s>
                            )
                        endif()
                        

                        Your resulting .exe will launch independently on any Windows machine with zero DLL dependencies.

                        1 Reply Last reply
                        0
                        • 8Observer88 8Observer8 has marked this topic as solved
                        • 8Observer88 Offline
                          8Observer88 Offline
                          8Observer8
                          wrote last edited by 8Observer8
                          #11

                          Don't forget about this:

                          If you distribute a statically built Qt .exe under the free LGPLv3 license, you must choose one of two options:

                          1. Make your project open source and share your full source code.
                          2. Keep your source code private, but provide your compiled .obj files so users can relink the application with their own Qt library.
                          SGaistS 1 Reply Last reply
                          0
                          • 8Observer88 8Observer8

                            Don't forget about this:

                            If you distribute a statically built Qt .exe under the free LGPLv3 license, you must choose one of two options:

                            1. Make your project open source and share your full source code.
                            2. Keep your source code private, but provide your compiled .obj files so users can relink the application with their own Qt library.
                            SGaistS Offline
                            SGaistS Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote last edited by
                            #12

                            @8Observer8 Hi,

                            Would rather formulate it as: if you want to keep you application code private, you have to provide the build artifacts that allows your users to relink the application with their own Qt library.

                            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
                            2
                            • 8Observer88 8Observer8

                              @JKSH said in Unable to delete "MinGW 13.1 64-bit" from "Build Tools":

                              When someone tries to install "Qt 6.12.0" > "MinGW 13.1.0 64-bit", the installer will automatically install "Build Tools" > "MinGW 13.1.0 64-bit" too.

                              I've uninstalled Qt with Revo Uninstaller Pro to delete all files completely to install it again. When I check "Qt 6.12.0" > "MinGW 13.1.0 64-bit" the installer does not check "Build Tools" > "MinGW 13.1.0 64-bit" automatically:

                              b034e377-bd2c-4a63-8f3d-f20b13461e59-image.png

                              So it seems that it is possible to install Qt without "Build Tools" > "MinGW 13.1.0 64-bit". But on the end step it includes "Build Tools" > "MinGW 13.1.0 64-bit":

                              f77905ec-a8bf-471e-8f26-e423a898fbd2-image.png

                              It would make sense if the "Build Tools" > "MinGW 13.1.0 64-bit" checkbox were automatically selected when the "Qt 6.12.0" > "MinGW 13.1.0 64-bit" checkbox appeared. Otherwise, it seems that the "Build Tools" > "MinGW 13.1.0 64-bit" option is independent of the "Qt 6.12.0" > "MinGW 13.1.0 64-bit" option. We can only find out about this at the final step.

                              JKSHJ Offline
                              JKSHJ Offline
                              JKSH
                              Moderators
                              wrote last edited by
                              #13

                              @8Observer8 said in Unable to delete "MinGW 13.1 64-bit" from "Build Tools":

                              It would make sense if the "Build Tools" > "MinGW 13.1.0 64-bit" checkbox were automatically selected when the "Qt 6.12.0" > "MinGW 13.1.0 64-bit" checkbox appeared. Otherwise, it seems that the "Build Tools" > "MinGW 13.1.0 64-bit" option is independent of the "Qt 6.12.0" > "MinGW 13.1.0 64-bit" option. We can only find out about this at the final step.

                              I agree.

                              Would you be willing to submit a change request to https://qt-project.atlassian.net/ ?

                              @8Observer8 said in Unable to delete "MinGW 13.1 64-bit" from "Build Tools":

                              @JKSH said in Unable to delete "MinGW 13.1 64-bit" from "Build Tools":

                              You can use your MinGW 16.2 toolchain to build Qt from source: https://doc.qt.io/qt-6/windows-building.html This will have no dependency on MinGW 13.1.

                              It looks I should because of ABI.

                              Indeed.

                              Thank you for sharing your findings/solutions.

                              Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                              1 Reply Last reply
                              1
                              • S Offline
                                S Offline
                                SimonSchroeder
                                wrote last edited by
                                #14

                                Compiling Qt yourself for the right compiler version is the right way to go. One simple workaround is to rename the folder of the Qt installation, then uninstall MinGW. Even if it tries to uninstall Qt as well, it will not find the folder. After that you can (and really should) rename the Qt folder back to its original name (some tools have their path baked into the executable).

                                1 Reply Last reply
                                1

                                • Login

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