木木——木木 2021-10-29 10:18 采纳率: 0%
浏览 97

使用qt新建msvc项目时报错 是环境配置的问题 但是都按网上的要求做了

错误如下,实在解决不了了

D:\Qt\Tools\CMake_64\share\cmake-3.21\Modules\CMakeTestCXXCompiler.cmake:62: error: The C++ compiler "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/HostX64/x64/cl.exe" is not able to compile a simple test program. It fails with the following output: Change Dir: C:/Users/mumumu/Desktop/FEM/build-test-Desktop_Qt_6_2_1_MSVC2019_64bit-Debug/CMakeFiles/CMakeTmp Run Build Command(s):C:/PROGRA2/MICROS3/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe cmTC_2a368 && [1/2] Building CXX object CMakeFiles\cmTC_2a368.dir\testCXXCompiler.cxx.obj [2/2] Linking CXX executable cmTC_2a368.exe FAILED: cmTC_2a368.exe cmd.exe /C "cd . && D:\Qt\Tools\CMake_64\bin\cmake.exe -E vs_link_exe --intdir=CMakeFiles\cmTC_2a368.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests -- C:\PROGRA2\MICROS3\2019\Community\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\link.exe /nologo CMakeFiles\cmTC_2a368.dir\testCXXCompiler.cxx.obj /out:cmTC_2a368.exe /implib:cmTC_2a368.lib /pdb:cmTC_2a368.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_2a368.dir/manifest.res CMakeFiles\cmTC_2a368.dir/manifest.rc" failed (exit code 0) with the following output: 绯荤粺鎵句笉鍒版寚瀹氱殑鏂囦欢銆 ninja: build stopped: subcommand failed.

  • 写回答

1条回答 默认 最新

报告相同问题?

问题事件

  • 创建了问题 10月29日

悬赏问题

  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
  • ¥15 关于#hadoop#的问题
  • ¥15 (标签-Python|关键词-socket)