qt creater运行按钮灰色,问题记录

第一次安装还没运行就出了三个错误:

1.F:\wei\Qt\Tools\CMake_64\share\cmake-3.24\Modules\CMakeTestCXXCompiler.cmake:62: error: The C++ compiler "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/BIN/amd64/cl.exe" is not able to compile a simple test program. It fails with the following output: Change Dir: F:/wei/QTstudy/build-hello-Desktop_x86_windows_msvc2015_pe_64bit-Debug/CMakeFiles/CMakeTmp Run Build Command(s):F:/wei/Qt/Tools/Ninja/ninja.exe cmTC_034dd && [1/2] Building CXX object CMakeFiles\cmTC_034dd.dir\testCXXCompiler.cxx.obj [2/2] Linking CXX executable cmTC_034dd.exe FAILED: cmTC_034dd.exe cmd.exe /C "cd . && F:\wei\Qt\Tools\CMake_64\bin\cmake.exe -E vs_link_exe --intdir=CMakeFiles\cmTC_034dd.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests -- C:\PROGRA~2\MICROS~1.0\VC\bin\amd64\link.exe /nologo CMakeFiles\cmTC_034dd.dir\testCXXCompiler.cxx.obj /out:cmTC_034dd.exe /implib:cmTC_034dd.lib /pdb:cmTC_034dd.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL /subsystem:console kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ." RC Pass 1: command "rc /fo CMakeFiles\cmTC_034dd.dir/manifest.res CMakeFiles\cmTC_034dd.dir/manifest.rc" failed (exit code 0) with the following output: 绯荤粺鎵句笉鍒版寚瀹氱殑鏂囦欢銆 ninja: build stopped: subcommand failed.

  1. error: CMake process exited with exit code 1.

  2. error: CMake project configuration failed. No CMake configuration for build type "Debug" found.

可以看到此时运行按钮时灰色的

点击Debug->换一个构建套件

等待片刻,发现代码就可以正常运行了

相关推荐
星火开发设计18 分钟前
枚举类 enum class:强类型枚举的优势
linux·开发语言·c++·学习·算法·知识
qq_192779876 小时前
C++模块化编程指南
开发语言·c++·算法
代码村新手7 小时前
C++-String
开发语言·c++
qq_401700417 小时前
Qt 中文乱码的根源:QString::fromLocal8Bit 和 fromUtf8 区别在哪?
开发语言·qt
历程里程碑8 小时前
滑动窗口---- 无重复字符的最长子串
java·数据结构·c++·python·算法·leetcode·django
2501_940315269 小时前
航电oj:首字母变大写
开发语言·c++·算法
lhxcc_fly10 小时前
手撕简易版的智能指针
c++·智能指针实现
浒畔居10 小时前
泛型编程与STL设计思想
开发语言·c++·算法
Fcy64810 小时前
C++ 异常详解
开发语言·c++·异常
机器视觉知识推荐、就业指导10 小时前
Qt 和 C++,是不是应该叫 Q++ 了?
开发语言·c++·qt