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. How to perform a minimal installation for C++ on Windows

How to perform a minimal installation for C++ on Windows

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 5 Posters 2.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.
  • A Offline
    A Offline
    AltitudeDashboard
    wrote on last edited by
    #1

    I tried to search but I got even more confused. My goal is to have a minimal Qt Creator installation on Windows and use the Microsoft Build Tools for C++ as a compiler.
    I tried to find out how to do this by installing as less as possible but I couldn't figure it out. Can anyone please help? I don't want to install tens of GB of files in order to follow a C++ book.

    Pl45m4P 1 Reply Last reply
    0
    • A AltitudeDashboard

      I tried to search but I got even more confused. My goal is to have a minimal Qt Creator installation on Windows and use the Microsoft Build Tools for C++ as a compiler.
      I tried to find out how to do this by installing as less as possible but I couldn't figure it out. Can anyone please help? I don't want to install tens of GB of files in order to follow a C++ book.

      Pl45m4P Online
      Pl45m4P Online
      Pl45m4
      wrote on last edited by Pl45m4
      #2

      @AltitudeDashboard

      What is minimal by your definition?
      Minimal would not include QtCreator.
      You need the QtFramework, that's it.

      Uncheck everything except one Qt version when using the Online Installer or compile Qt/QtCreator yourself from source and exclude modules you don't want to use.


      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      1 Reply Last reply
      0
      • A Offline
        A Offline
        AltitudeDashboard
        wrote on last edited by
        #3

        Does this include a C++ compiler?

        Christian EhrlicherC 1 Reply Last reply
        0
        • A AltitudeDashboard

          Does this include a C++ compiler?

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

          @AltitudeDashboard said in How to perform a minimal installation for C++ on Windows:

          Does this include a C++ compiler

          No. Either install MinGW with the Qt online installer or Microsoft Visual Studio.

          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
          1
          • cristian-adamC Offline
            cristian-adamC Offline
            cristian-adam
            wrote on last edited by
            #5

            You can use the choco package manager and install the following:

            $ choco install visualstudio2022buildtools
            $ choco install windows-sdk-11-version-22h2-all
            $ choco install qtcreator
            $ choco install qtcreator-cdbext
            $ choco install ninja
            $ choco install cmake 
            

            Afterwards select "Visual Studio Installer" from start menu and check "Desktop Development with C++" to get the Visual C++ compiler.

            windows-sdk-11-version-22h2-all is needed for the Windows SDK and the cdb debugger.

            At the end in Qt Creator you would have to create a Kit so that you can configure C++ projects. A Kit consists of a C/C++ Compiler and Debugger. You don't really need the Qt library to develop C++ programs.

            If you want a smaller C++ setup you can try:

            $ choco install mingw
            $ choco install qtcreator
            $ choco install qtcreator-cdbext
            $ choco install ninja
            $ choco install cmake 
            

            The mingw package contains the GCC 13.2.0 compiler and the GDB debugger and also the Windows SDK headers.

            As with the Visual C++ setup you need to create a Kit with the GCC compiler and GDB debugger.

            1 Reply Last reply
            5
            • A Offline
              A Offline
              AltitudeDashboard
              wrote on last edited by
              #6

              Thank you all for helping me.
              I was able to make it work
              These are the options I have installed for Microsoft Build Tools 2022

              image.png

              Then I enabled Debugging Tools for Windows in the Windows 11 Settings -> Apps -> Installed Apps -> Windows Software Development Kit -> Modify

              image.png

              These are the options I installed in Qt

              image.png

              image.png

              Probably I have installed too much but at the moment this combination works

              Pl45m4P 1 Reply Last reply
              1
              • A AltitudeDashboard has marked this topic as solved on
              • A AltitudeDashboard

                Thank you all for helping me.
                I was able to make it work
                These are the options I have installed for Microsoft Build Tools 2022

                image.png

                Then I enabled Debugging Tools for Windows in the Windows 11 Settings -> Apps -> Installed Apps -> Windows Software Development Kit -> Modify

                image.png

                These are the options I installed in Qt

                image.png

                image.png

                Probably I have installed too much but at the moment this combination works

                Pl45m4P Online
                Pl45m4P Online
                Pl45m4
                wrote on last edited by
                #7

                @AltitudeDashboard

                You can definitely uninstall Design Studio and therefore save 5-10 GB.


                If debugging is the process of removing software bugs, then programming must be the process of putting them in.

                ~E. W. Dijkstra

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

                  Is your goal really to use Qt Creator as an IDE for regular C++ projects? Because you haven't selected any Qt version (if you want to install Qt, don't click the check box for the version directly, but expand and only select the version for MSVC).

                  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