将 QT Creator 5.8 与 MSVC 2015 编译器结合使用
Using QT Creator 5.8 with MSVC 2015 compiler
我是 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)
,但调试器部分什么也没有,只有 GNU gdb for MinGW。
我必须安装另一个调试器,还是我已经有了好的调试器?如果是,如何找到并设置它?
非常感谢您的帮助,如果我的英语不完美,请见谅!
编辑:
非常感谢您的回答!
按照第一个回答的link,安装了wdk和winsdk 2015(1703版)
现在,在 Tools/Options/Debuggers 中,我可以在 Windows Kits 文件夹中看到 2 个调试器,自动检测 cdb.exe(x86 和 x64)。我的计算机是 x64,但我知道 x86 版本可能可以正常工作,所以我正在尝试使用它。
我尝试将它们添加到工具包中,并使用 Microsoft Visual C++ Compiler (x86) 作为编译器。
不幸的是,这仍然不起作用:我收到一条错误消息。
18:07:19:执行 JusticeNavigator 项目的步骤... 18:07:19:首次亮相:"C:\Qt.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.8\msvc2015\bin\qmake.exe" s'est terminé normalement。 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" a crashé.Erreur lors de la compilation/déploiement du projet JusticeNavigator (kit : Desktop Qt
5.8.0 MSVC2015 32bit) 当执行步骤"qmake"
消息是法语的,但很容易理解。
根据 Qt Creator documentation,Visual Studio 不提供所需的调试工具:
To use the CDB debugger, you must install the Debugging tools for Windows. You can download them from Download and Install Debugging Tools for Windows.
Note: Visual Studio does not include the Debugging tools needed, and therefore, you must install them separately.
The pre-built Qt for Windows makes use of the library if it is present on the system. When manually building Qt Creator using the Microsoft Visual C++ Compiler, the build process checks for the required files in "%ProgramFiles%\Debugging Tools for Windows".
It is highly recommended that you add the Symbol Server provided by Microsoft to the symbol search path of the debugger. The Symbol Server provides you with debugging informaton for the operating system libraries for debugging Windows applications. For more information, see Setting CDB Paths on Windows.
Windows 的调试工具目前可在此处获得:https://developer.microsoft.com/en-us/windows/hardware/download-windbg
我是 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)
,但调试器部分什么也没有,只有 GNU gdb for MinGW。
我必须安装另一个调试器,还是我已经有了好的调试器?如果是,如何找到并设置它?
非常感谢您的帮助,如果我的英语不完美,请见谅!
编辑:
非常感谢您的回答!
按照第一个回答的link,安装了wdk和winsdk 2015(1703版)
现在,在 Tools/Options/Debuggers 中,我可以在 Windows Kits 文件夹中看到 2 个调试器,自动检测 cdb.exe(x86 和 x64)。我的计算机是 x64,但我知道 x86 版本可能可以正常工作,所以我正在尝试使用它。
我尝试将它们添加到工具包中,并使用 Microsoft Visual C++ Compiler (x86) 作为编译器。
不幸的是,这仍然不起作用:我收到一条错误消息。
18:07:19:执行 JusticeNavigator 项目的步骤... 18:07:19:首次亮相:"C:\Qt.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.8\msvc2015\bin\qmake.exe" s'est terminé normalement。 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" a crashé.Erreur lors de la compilation/déploiement du projet JusticeNavigator (kit : Desktop Qt 5.8.0 MSVC2015 32bit) 当执行步骤"qmake"
消息是法语的,但很容易理解。
根据 Qt Creator documentation,Visual Studio 不提供所需的调试工具:
To use the CDB debugger, you must install the Debugging tools for Windows. You can download them from Download and Install Debugging Tools for Windows. Note: Visual Studio does not include the Debugging tools needed, and therefore, you must install them separately.
The pre-built Qt for Windows makes use of the library if it is present on the system. When manually building Qt Creator using the Microsoft Visual C++ Compiler, the build process checks for the required files in "%ProgramFiles%\Debugging Tools for Windows".
It is highly recommended that you add the Symbol Server provided by Microsoft to the symbol search path of the debugger. The Symbol Server provides you with debugging informaton for the operating system libraries for debugging Windows applications. For more information, see Setting CDB Paths on Windows.
Windows 的调试工具目前可在此处获得:https://developer.microsoft.com/en-us/windows/hardware/download-windbg