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->换一个构建套件

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

相关推荐
SHARK_pssm10 分钟前
【C++——类和对象(下)】
开发语言·c++·经验分享·笔记
汉克老师39 分钟前
GESP2026年9月认证C++二级( 第一部分选择题(1~7题)精讲
c++·gesp·小学生·学c++编程
沫璃染墨1 小时前
《从零入门Linux系统篇(五十四):线程篇·七——互斥锁底层原理:从原子交换到线程竞争与锁实现》
linux·运维·服务器·开发语言·c++·驱动开发·系统架构
可乐ea3 小时前
GitHub Security Lab 开源 Fuzzing Taskflow:让 LLM 智能体自己跑完 C/C++ 模糊测试
jvm·c++·github·模糊测试·mcp·代码agent·智能体自动化
朝朝辞暮i3 小时前
C++ 第 13 课:值传递 —— 为什么函数里改了,外面却没变?
java·c++·算法
无忧.芙桃4 小时前
C++语言原理与实践(十):vector类的底层实现
开发语言·c++·算法
Quz4 小时前
QML 分隔线:Rectangle、菜单与工具栏分隔线用法
qt
无名猿4 小时前
std::variant 完全指南:类型安全的 union 与 std::visit 用法
c++·stl·标准库·现代c++
Quz4 小时前
QML PathView 入门:直线路径与曲线路径
qt
无名猿5 小时前
C++ 迭代器五分类与失效场景汇总:一张表避开所有 UB
c++·stl·标准库·踩坑记录