Qt5.12.3 Win32 MSVC: errors when trying to run app (release and debug)
-
Hello,
New new Qt (but long-time C++ on Windows), I have just made a clean install of the latest Qt release (I downloaded qt-opensource-windows-x86-5.12.3.exe), on a Windows 10 laptop.
I use a recent MSVC 2017, and chose it as my compiler during installation.In QCreator, I created a fresh new "Qt Widgets Application" and tried to run it.
Compilation appeared to go ok, but I am unable to run the new (blank) application:- In release mode, I get only a "Waiting for application to stop." window with a cancel button. (I tried to reboot my machine, still get this same error).
- In debug mode, I get the error "Failure during startup. Aborting. Cannot establish connection to the WinRT debugging helper."
Could anyone help me troubleshoot and fix this?
Thanks !
-ivec -
@ivec said in Qt5.12.3 Win32 MSVC: errors when trying to run app (release and debug):
WinRT
WinRT? Are you sure you're using correct compiler?
Can you show your Kit configuration?
Did you try to disable anti viru software? -
@jsulm your response is appreciated; your reaction to WinRT pointed me to the right direction, I reinstalled and checked the configurations I selected.
However: after installing the "Kits" I wanted and creating a blank "Qt Widget Application" (as instructed in a tutorial based on 5.9), I seem to require an additional step: initially I am unable to just build and run the app, I'm first told the kit is not configured / needs to be configured in Projects.
In there, I find that no "Compiler" is selected - ok this is easy to fix, and I pixed the x86 compiler.
With this, I've been able to run the blank app (yeah!), but I remain unable to debug it.
Going back to the Options window (see below), I find indeed that "Debugger:" is set to "None", and nothing seems to be auto-detected.Is it normal that I needed to select the compiler manually?
And how can I enable the use of a debugger to step through my program?Thanks in advance -ivec
-
Hi @ivec
Is it normal that I needed to select the compiler manually?
No. but please select the C compiler also.
And how can I enable the use of a debugger to step through my program?
You need to install the Debugging Tools for Windows, included in the Windows SDK. Due to licencing, this is not possible otherwise.
Regards