Unable to use MSVC 2019 compiler successfully in Qt Creator (C++ / QWidgets app)
-
Those are the build errors I'm getting and some of the info shown.
The project configuration looks like this:
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.
-
Hi,
Did you check your kit to see if it's showing anything unusual ?
-
@SGaist Thank you. I am not sure how to see if the kit is showing anything unusual.
-
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 ?
-
Thank you. Here is the info:
As a solution attempt I tried installing another Qt framework 5.9.9 and selecting them for my project gives upon compilation:
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.
-
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 ?
-
@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.
-
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.
-
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.
-
Did you install the full Visual Studio to just the C++ tools
Yes, the icon looks nice.