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

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

相关推荐
sukalot9 分钟前
windows C++ 并行编程-异步消息块(五)
c++·windows
姝孟15 分钟前
C++——类和对象
开发语言·c++
侯孟禹19 分钟前
C++ 新特性
c++
极客小张23 分钟前
基于正点原子Linux开发板的智能监控与家电控制系统设计:深度解析Video4Linux和TCP/IP技术栈
linux·运维·c++·物联网·网络协议·tcp/ip·算法
周哈里窗的编程2 小时前
CSP-CCF★201912-2回收站选址★
c++·算法·图论
未来可期LJ4 小时前
【C++ 设计模式】单例模式的两种懒汉式和饿汉式
c++·单例模式·设计模式
Trouvaille ~5 小时前
【C++篇】C++类与对象深度解析(六):全面剖析拷贝省略、RVO、NRVO优化策略
c++·c++20·编译原理·编译器·类和对象·rvo·nrvo
little redcap5 小时前
第十九次CCF计算机软件能力认证-乔乔和牛牛逛超市
数据结构·c++·算法
机器视觉知识推荐、就业指导6 小时前
Qt/C++事件过滤器与控件响应重写的使用、场景的不同
开发语言·数据库·c++·qt
孤寂大仙v6 小时前
【C++】STL----list常见用法
开发语言·c++·list