我是 C++
和编程的新手,我正在尝试使用 Qt
和 Qt Creator
处理一个小项目 .
我使用的是 MinGW compiler
,但对于这个项目,我需要使用 MSVC compiler
(因为我需要使用 QtWebEngineWidgets
) .
我有 Qt 5.8
而且我正在使用 Qt Creator
. 我下载了Microsoft Visual Studio 2015(社区) .
现在,如果我继续我的项目的工具包部分,它说 MSVC kit has no compiler
.
我去了编译器部分,我看到 Microsoft Visual C++ Compiler 14.0 (x86)
,但在调试器部分没有,只有GNG gdb用于MinGW .
我必须安装另一个调试器,还是我已经有了好的调试器?如果是,我该如何找到并设置它?
非常感谢你的帮助,对不起,如果我的英语不完美!
编辑:
非常感谢您的回答!
我在第一个答案中已经关注了链接,并安装了wdk和winsdk 2015(1703版本) .
现在,在工具/选项/调试器中,我可以看到2个调试器,在Windows Kits文件夹中自动检测cdb.exe(x86和x64) . 我的电脑是x64,但我知道x86版本可能正常工作,所以我正在尝试使用它 .
我试图将它们添加到工具包中,并使用Microsoft Visual C编译器(x86)作为编译器 .
不幸的是,这仍然不起作用:我收到了一条错误消息 .
18:07:19:Exécutiondesétapespourle projet JusticeNavigator ... 18:07:19:Débute:“C:\ Qt \ 5.8 \ msvc2015 \ bin \ qmake.exe”C:\ Users \ Moufid \ Desktop \ Projets \ Qt \ JusticeNavigator \ JusticeNavigator.pro -spec win32-msvc2015“CONFIG = debug”“CONFIG = qml_debug”18:07:21:Le processus“C:\ Qt \ 5.8 \ msvc2015 \ bin \ qmake.exe”s'est终点法则 . 18:07:21:Débute:“C:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ VC \ bin \ amd64_x86 \ cl.exe”qmake_all 18:07:21:Le processus“C:\ Program Files(x86 )\ Microsoft Visual Studio 14.0 \ VC \ bin \ amd64_x86 \ cl.exe“崩溃 . Erreur lors de la compilation /déploiementduprojet JusticeNavigator(kit:Desktop Qt 5.8.0 MSVC2015 32bit)执行步骤“qmake”时
消息是法语,但很容易理解 .
1 回答
根据Qt Creator documentation,Visual Studio不提供所需的调试工具:
适用于Windows的调试工具目前可在此处获取:https://developer.microsoft.com/en-us/windows/hardware/download-windbg