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. Unable to use MSVC 2019 compiler successfully in Qt Creator (C++ / QWidgets app)
Forum Updated to NodeBB v4.3 + New Features

Unable to use MSVC 2019 compiler successfully in Qt Creator (C++ / QWidgets app)

Scheduled Pinned Locked Moved Unsolved General and Desktop
10 Posts 2 Posters 2.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.
  • enjoysmathE Offline
    enjoysmathE Offline
    enjoysmath
    wrote on last edited by
    #1

    38025a69-7f38-4348-8ad8-46b840880e60-image.png

    Those are the build errors I'm getting and some of the info shown.

    The project configuration looks like this:

    ee26c172-7081-4383-b122-fb928a774191-image.png

    The reason I want to use MSCV 2019 over MinGW (which works) is that I think that it's needed to compile and run a QWebEngineView.

    https://github.com/enjoysmath
    https://math.stackexchange.com/users/26327/exercisingmathematician

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

      Hi,

      Did you check your kit to see if it's showing anything unusual ?

      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
      • enjoysmathE Offline
        enjoysmathE Offline
        enjoysmath
        wrote on last edited by
        #3

        49ebde3b-2552-4467-a92b-26b72ce208fb-image.png

        @SGaist Thank you. I am not sure how to see if the kit is showing anything unusual.

        https://github.com/enjoysmath
        https://math.stackexchange.com/users/26327/exercisingmathematician

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

          Well, the ones with warning triangle have an issue and you should hover your mouse on the triangle to get information.

          Can you show the one you are actually using ?

          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
          • enjoysmathE Offline
            enjoysmathE Offline
            enjoysmath
            wrote on last edited by enjoysmath
            #5

            @SGaist

            Thank you. Here is the info:

            4cb63c4e-2cbd-42f1-a11d-e6ef851c970d-image.png

            As a solution attempt I tried installing another Qt framework 5.9.9 and selecting them for my project gives upon compilation:

            dd9b0d56-c7e6-4241-863c-3ea7c229c378-image.png

            In actuality the error that shows first when I select MSVC 2019 is something like "cl.exe" not found, then the errors pane switches to the errors you see in the first post almost immediately.

            I know that re-installing Qt won't fix this and also re-installing Visual Studion with the C++ build kits won't fix this because I did that a long time ago.

            If I can't fix this, my only other options are: PyQt5 (slower runt-time performance) or C# WinForms application using Visual Studio, which would be between 10-40 times faster than python depending on the code. I think the best language for handling a mathematical tool would be C++ / Qt, so please help me get started :)

            C++ is between 10-1000 times faster than Python depending on the algorithm. And Qt Creator is a nice IDE to code in.

            https://github.com/enjoysmath
            https://math.stackexchange.com/users/26327/exercisingmathematician

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

              There's something strange here, you were first showing issues with the 32 bit build and now you are showing a different issue with 64 bit version.

              Which one are you using ?

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

              enjoysmathE 1 Reply Last reply
              1
              • enjoysmathE Offline
                enjoysmathE Offline
                enjoysmath
                wrote on last edited by enjoysmath
                #7

                @SGaist I thought I could freely switch between them, so I usually put both in. With MinGW that approach does work. But preferably for my machine I match it with 64-bit.

                https://github.com/enjoysmath
                https://math.stackexchange.com/users/26327/exercisingmathematician

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

                  The thing here is that it seems you do not have the same error when using MSVC 2019 32 and 64 bit. Hence fixing and after the other would likely be simpler than mixing them all the time.

                  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
                  • SGaistS SGaist

                    There's something strange here, you were first showing issues with the 32 bit build and now you are showing a different issue with 64 bit version.

                    Which one are you using ?

                    enjoysmathE Offline
                    enjoysmathE Offline
                    enjoysmath
                    wrote on last edited by enjoysmath
                    #9

                    @SGaist

                    ff526a5c-b842-4c67-8578-0155316a8207-image.png

                    With MSVC2017 selected (I have "Microsoft Visual Studio Community 2019 Previev" + "Visual C++ 2019" installed), the program builds and initially outputs the above warning. So this is fine. I just need to select MSVC 2017. If you think of something that might get MSVC 2019 workable, please let me know in this thread.

                    Thank you for your guidance.

                    P.S. Do you like my app icon? It's a 64x64 pixel ICO of the unicode galaxy emoji :)

                    I'm making a sort of "Browser for mathematics" it's very open-ended as to what it turns out to be, but I guess you could call this an "informal mathematics" app instead of a formal mathematics app such as Lean or Coq.

                    https://github.com/enjoysmath
                    https://math.stackexchange.com/users/26327/exercisingmathematician

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

                      Did you install the full Visual Studio to just the C++ tools

                      Yes, the icon looks nice.

                      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
                      0

                      • Login

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