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 install, fourth attempt
Forum Updated to NodeBB v4.3 + New Features

QT install, fourth attempt

Scheduled Pinned Locked Moved Solved Installation and Deployment
27 Posts 5 Posters 6.8k 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.
  • B Offline
    B Offline
    BKBK
    wrote on last edited by
    #18

    The Arduino does have its own IDE. I have installed that and it seems to be working.
    Because of work I am leaning towards the GNU tool chain. I really don't know if there are any downsides to that so ask for opinions. I do have a Linux machine that I might fire up. However, I want to make my HVAC app available to most people and that audience is predominantly Windows.
    What ever you, every read, suggests, it will be my decision, meaning only that I won't blame anyone. Still, I suspect there will not be a bad choice, just maybe one better than the other.

    aha_1980A 1 Reply Last reply
    0
    • B BKBK

      The Arduino does have its own IDE. I have installed that and it seems to be working.
      Because of work I am leaning towards the GNU tool chain. I really don't know if there are any downsides to that so ask for opinions. I do have a Linux machine that I might fire up. However, I want to make my HVAC app available to most people and that audience is predominantly Windows.
      What ever you, every read, suggests, it will be my decision, meaning only that I won't blame anyone. Still, I suspect there will not be a bad choice, just maybe one better than the other.

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #19

      Hi @BKBK,

      On Linux you can use GCC and Clang, and if I remember correctly, both produce binary compatible code, so you can use both with one Qt version.

      On Mac, IMHO, only Clang is used for a long time, probably because Apple said so.

      For Windows, you can use the MSVC and the MinGW compiler with Qt.

      For MSVC, you have to install the MS C++ compiler, the MS CDB console debugger and a suitable Qt MSVC version.

      For MinGW, you can all install with the Qt online installer: the GCC compiler, the GDB debugger and the Qt MinGW version.

      Both toolchains can create fully working Windows programs, however some external libraries are only supported on one of the two.

      In Principle you can develop on one platform and you or someone else can compile on another platform, as long as you don't use System-specific APIs.

      I hope that clearifies things a bit.

      Qt has to stay free or it will die.

      1 Reply Last reply
      1
      • B Offline
        B Offline
        BKBK
        wrote on last edited by
        #20

        Thank you aha_1980
        This this boils down to: Which will be easier to install and get working. The reasons for so much trouble getting the working are quite unclear, but I will continue the attempts.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #21

          If you want a quick and easy setup to start using Qt then the MinGW version is the way to go. You can install everything in one go: Qt, the compiler and debugger.

          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
          1
          • B Offline
            B Offline
            BKBK
            wrote on last edited by
            #22

            @SGaist said in QT install, fourth attempt:

            MinGW

            I am going with MinGW.
            I found the MinGW web site and I think I installed it. Not positive, but lets see what happens.
            Open QT Creator and get to here

            0_1545010289155_sunday 01.JPG
            Click Manage Kits to get:

            0_1545010327387_sunday 02.JPG

            How important is this Auto-detected versus Manual. I cannot tell. But I have MinGW installed and do not want MSVC so try to remove all the MSVC and install the MinGW.
            Start with the Auto-detected by clicking on the item to get
            0_1545010372111_sunday 03.JPG

            Go to Compiler -> C++ and direct it to the MiGW directory.
            No, that does not work.
            Click on button Manage to the right. To get:
            0_1545010413852_sunday 04.JPG

            Don’t want all the Microsoft entries, there is a Remove button that is activated when a line is selected, so do a bunch of removes.
            0_1545010450896_sunday 05.JPG

            As this is being done manually, click on Manual -> C++, that does nothing.
            Click on the Add button, not shown in the previous image.
            Add -> MinGW -> C++ to get a selection dialog.
            Browse to the path to get here
            0_1545010487266_sunday 06.JPG

            Question: What belongs in the fields: Platform codegen flags, Platform linker flags, and ABI?

            To continue, click Apply. It does not acknowledge the button click.
            Click OK. The form closes. But debugger was not set.
            Click Manage Kits again and select debuggers to get
            0_1545010526050_sunday 07.JPG

            Note that it reports 32 bit. I have always selected 64. I don’t know how important this is so continue
            Back to here: image Sunday 08
            0_1545010556053_sunday 08.JPG

            After all that work, Qt Creator is still set up for MSVC 2017.
            I don’t know what to do different. Please advise.

            JKSHJ jsulmJ 2 Replies Last reply
            0
            • B BKBK

              @SGaist said in QT install, fourth attempt:

              MinGW

              I am going with MinGW.
              I found the MinGW web site and I think I installed it. Not positive, but lets see what happens.
              Open QT Creator and get to here

              0_1545010289155_sunday 01.JPG
              Click Manage Kits to get:

              0_1545010327387_sunday 02.JPG

              How important is this Auto-detected versus Manual. I cannot tell. But I have MinGW installed and do not want MSVC so try to remove all the MSVC and install the MinGW.
              Start with the Auto-detected by clicking on the item to get
              0_1545010372111_sunday 03.JPG

              Go to Compiler -> C++ and direct it to the MiGW directory.
              No, that does not work.
              Click on button Manage to the right. To get:
              0_1545010413852_sunday 04.JPG

              Don’t want all the Microsoft entries, there is a Remove button that is activated when a line is selected, so do a bunch of removes.
              0_1545010450896_sunday 05.JPG

              As this is being done manually, click on Manual -> C++, that does nothing.
              Click on the Add button, not shown in the previous image.
              Add -> MinGW -> C++ to get a selection dialog.
              Browse to the path to get here
              0_1545010487266_sunday 06.JPG

              Question: What belongs in the fields: Platform codegen flags, Platform linker flags, and ABI?

              To continue, click Apply. It does not acknowledge the button click.
              Click OK. The form closes. But debugger was not set.
              Click Manage Kits again and select debuggers to get
              0_1545010526050_sunday 07.JPG

              Note that it reports 32 bit. I have always selected 64. I don’t know how important this is so continue
              Back to here: image Sunday 08
              0_1545010556053_sunday 08.JPG

              After all that work, Qt Creator is still set up for MSVC 2017.
              I don’t know what to do different. Please advise.

              JKSHJ Offline
              JKSHJ Offline
              JKSH
              Moderators
              wrote on last edited by
              #23

              OK @BKBK, you've tried lots of different things recently and now you have numerous overlapping installations. It is best to start from scratch again.

              If you follow these steps carefully and thoroughly, you will have a working system:

              1. In Qt Creator go to the Kits tab and Remove your 2 Manual kits ("Desktop" and "Unnamed"):
              2. Close Qt Creator.
              3. Go to the folder where you installed Qt (C:\Qt ?) and run MaintenanceTool.exe. Uninstall everything.
              4. Uninstall everything in C:\MinGW too.
              5. Run the Qt installer again. Select these 2 items (no more, no less):
                • Qt > Qt 5.12.0 > MinGW 7.3.0 64-bit
                • Qt > Tools > MinGW 7.3.0 64 bit
              6. Run Qt Creator and compile an example.

              That's it. You don't need to install or configure anything else.

              If it still doesn't work, do not change any settings; doing so will complicate things further. Post screenshots and we'll have a look.

              Question: What belongs in the fields: Platform codegen flags, Platform linker flags, and ABI?

              Those fields are for cross-compilers. You don't need them if you follow the steps above carefully and thoroughly.

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

              B 1 Reply Last reply
              3
              • B Offline
                B Offline
                BKBK
                wrote on last edited by
                #24

                I am working that. Thank you.

                1 Reply Last reply
                0
                • B BKBK

                  @SGaist said in QT install, fourth attempt:

                  MinGW

                  I am going with MinGW.
                  I found the MinGW web site and I think I installed it. Not positive, but lets see what happens.
                  Open QT Creator and get to here

                  0_1545010289155_sunday 01.JPG
                  Click Manage Kits to get:

                  0_1545010327387_sunday 02.JPG

                  How important is this Auto-detected versus Manual. I cannot tell. But I have MinGW installed and do not want MSVC so try to remove all the MSVC and install the MinGW.
                  Start with the Auto-detected by clicking on the item to get
                  0_1545010372111_sunday 03.JPG

                  Go to Compiler -> C++ and direct it to the MiGW directory.
                  No, that does not work.
                  Click on button Manage to the right. To get:
                  0_1545010413852_sunday 04.JPG

                  Don’t want all the Microsoft entries, there is a Remove button that is activated when a line is selected, so do a bunch of removes.
                  0_1545010450896_sunday 05.JPG

                  As this is being done manually, click on Manual -> C++, that does nothing.
                  Click on the Add button, not shown in the previous image.
                  Add -> MinGW -> C++ to get a selection dialog.
                  Browse to the path to get here
                  0_1545010487266_sunday 06.JPG

                  Question: What belongs in the fields: Platform codegen flags, Platform linker flags, and ABI?

                  To continue, click Apply. It does not acknowledge the button click.
                  Click OK. The form closes. But debugger was not set.
                  Click Manage Kits again and select debuggers to get
                  0_1545010526050_sunday 07.JPG

                  Note that it reports 32 bit. I have always selected 64. I don’t know how important this is so continue
                  Back to here: image Sunday 08
                  0_1545010556053_sunday 08.JPG

                  After all that work, Qt Creator is still set up for MSVC 2017.
                  I don’t know what to do different. Please advise.

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

                  @BKBK said in QT install, fourth attempt:

                  I found the MinGW web site and I think I installed it

                  Please don't!
                  Simply use Qt Online Installer or Qt Maintenance Tool (if Qt is already installed) and select Qt MinGW AND MinGW. It will install MinGW which is proven to work with Qt you're installing.

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

                  1 Reply Last reply
                  3
                  • JKSHJ JKSH

                    OK @BKBK, you've tried lots of different things recently and now you have numerous overlapping installations. It is best to start from scratch again.

                    If you follow these steps carefully and thoroughly, you will have a working system:

                    1. In Qt Creator go to the Kits tab and Remove your 2 Manual kits ("Desktop" and "Unnamed"):
                    2. Close Qt Creator.
                    3. Go to the folder where you installed Qt (C:\Qt ?) and run MaintenanceTool.exe. Uninstall everything.
                    4. Uninstall everything in C:\MinGW too.
                    5. Run the Qt installer again. Select these 2 items (no more, no less):
                      • Qt > Qt 5.12.0 > MinGW 7.3.0 64-bit
                      • Qt > Tools > MinGW 7.3.0 64 bit
                    6. Run Qt Creator and compile an example.

                    That's it. You don't need to install or configure anything else.

                    If it still doesn't work, do not change any settings; doing so will complicate things further. Post screenshots and we'll have a look.

                    Question: What belongs in the fields: Platform codegen flags, Platform linker flags, and ABI?

                    Those fields are for cross-compilers. You don't need them if you follow the steps above carefully and thoroughly.

                    B Offline
                    B Offline
                    BKBK
                    wrote on last edited by BKBK
                    #26

                    @JKSH Ok then, I can build the example project. I had to add a few more steps to configure the project, but then it built and ran.

                    @jsulm Too late, I had already done that. Then I followed the instructions from JKSH, deleted everything, installed a fifth time, and now am up and running.

                    Qt is working now.
                    Thank you all for your time and patience.

                    jsulmJ 1 Reply Last reply
                    1
                    • B BKBK

                      @JKSH Ok then, I can build the example project. I had to add a few more steps to configure the project, but then it built and ran.

                      @jsulm Too late, I had already done that. Then I followed the instructions from JKSH, deleted everything, installed a fifth time, and now am up and running.

                      Qt is working now.
                      Thank you all for your time and patience.

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

                      @BKBK OK, that's fine. But next time if you install Qt you should do it like I suggested - for me it was always working out of the box.
                      Happy coding!

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

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