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

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

相关推荐
tanyongxi6616 分钟前
C++ 特殊类设计与单例模式解析
java·开发语言·数据结构·c++·算法·单例模式
fqbqrr35 分钟前
2508C++,支持rdma通信的高性能rpc库
c++·rpc
liulilittle1 小时前
BFS寻路算法解析与实现
开发语言·c++·算法·宽度优先·寻路算法·寻路
喜欢吃燃面2 小时前
C++算法竞赛:位运算
开发语言·c++·学习·算法
草莓熊Lotso2 小时前
《详解 C++ Date 类的设计与实现:从运算符重载到功能测试》
开发语言·c++·经验分享·笔记·其他
困鲲鲲2 小时前
CPP多线程2:多线程竞争与死锁问题
c++·多线程·死锁
谱写秋天2 小时前
Qt 5.5 的安装与配置(使用 VSCode编辑)
开发语言·vscode·qt
快乐的划水a11 小时前
组合模式及优化
c++·设计模式·组合模式
星星火柴93612 小时前
关于“双指针法“的总结
数据结构·c++·笔记·学习·算法
艾莉丝努力练剑13 小时前
【洛谷刷题】用C语言和C++做一些入门题,练习洛谷IDE模式:分支机构(一)
c语言·开发语言·数据结构·c++·学习·算法