win11 qt6.5 构建报错,之前有装其他版本的Qt,但卸载了
-
报错1:
C:\Program Files\CMake\share\cmake-3.26\Modules\CMakeTestCXXCompiler.cmake:60: error: The C++ compiler "C:/Qt/Tools/mingw1120_64/bin/g++.exe" is not able to compile a simple test program. It fails with the following output: Change Dir: E:/Code/Cpp/QtPro/untitled33/build/CMakeFiles/CMakeScratch/TryCompile-mct1cj Run Build Command(s):C:/Qt/Tools/Ninja/ninja.exe -v cmTC_c56a9 && ninja: fatal: couldn't open nul
报错2:
:-1: error: CMake project configuration failed. No CMake configuration for build type "Debug" found.
安装问题困扰很久了,需要找到问题点在哪里 -
报错1:
C:\Program Files\CMake\share\cmake-3.26\Modules\CMakeTestCXXCompiler.cmake:60: error: The C++ compiler "C:/Qt/Tools/mingw1120_64/bin/g++.exe" is not able to compile a simple test program. It fails with the following output: Change Dir: E:/Code/Cpp/QtPro/untitled33/build/CMakeFiles/CMakeScratch/TryCompile-mct1cj Run Build Command(s):C:/Qt/Tools/Ninja/ninja.exe -v cmTC_c56a9 && ninja: fatal: couldn't open nul
报错2:
:-1: error: CMake project configuration failed. No CMake configuration for build type "Debug" found.
安装问题困扰很久了,需要找到问题点在哪里@shanda_zhou
yi
以上为报错信息图片 -
C Christian Ehrlicher moved this topic from General and Desktop on
-
@shanda_zhou
yi
以上为报错信息图片Please write in english or use the appropriate sub-forum.
-
Please write in english or use the appropriate sub-forum.
@Christian-Ehrlicher ok,
Win11 qt6.5 build error, previously installed other versions of Qt, but uninstalled.error1:
C:\Program Files\CMake\share\cmake-3.26\Modules\CMakeTestCXXCompiler.cmake:60: error: The C++ compiler "C:/Qt/Tools/mingw1120_64/bin/g++.exe" is not able to compile a simple test program. It fails with the following output: Change Dir: E:/Code/Cpp/QtPro/untitled33/build/CMakeFiles/CMakeScratch/TryCompile-mct1cj Run Build Command(s):C:/Qt/Tools/Ninja/ninja.exe -v cmTC_c56a9 && ninja: fatal: couldn't open nul
error2:
:-1: error: CMake project configuration failed. No CMake configuration for build type "Debug" found.
Installation issues have been bothering me for a long time, and I need to find out where the problem lies -
If you try to run
C:\Qt\Tools\mingw1120_64\bin\g++.exe --version
from a Terminal do you get the following text:C:\Qt\Tools\mingw1120_64\bin $ g++ --version g++ (x86_64-posix-seh-rev3, Built by MinGW-W64 project) 11.2.0 Copyright (C) 2021 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.