4,270
社区成员
发帖
与我相关
我的任务
分享
CMake Error at D:/ruanjian/cmake/share/cmake-3.14/Modules/CMakeTestCXXCompiler.cmake:53 (message):
The C++ compiler
"D:/ruanjian/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: D:/ruanjian/opencv-4.2.0/build1/CMakeFiles/CMakeTmp
Run Build Command(s):D:/ruanjian/Microsoft Visual Studio/2017/Community/MSBuild/15.0/Bin/MSBuild.exe cmTC_c2ea3.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=15.0 /v:m
用于 .NET Framework 的 Microsoft (R) 生成引擎版本 15.9.21+g9802d43bc3
版权所有(C) Microsoft Corporation。保留所有权利。
用于 x64 的 Microsoft (R) C/C++ 优化编译器 19.16.27048 版
版权所有(C) Microsoft Corporation。保留所有权利。
cl /c /Zi /W3 /WX- /diagnostics:classic /Od /Ob0 /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_c2ea3.dir\Debug\\" /Fd"cmTC_c2ea3.dir\Debug\vc141.pdb" /Gd /TP /errorReport:queue "D:\ruanjian\opencv-4.2.0\build1\CMakeFiles\CMakeTmp\testCXXCompiler.cxx"
testCXXCompiler.cxx
LINK : fatal error LNK1104: 无法打开文件“kernel32.lib” [D:\ruanjian\opencv-4.2.0\build1\CMakeFiles\CMakeTmp\cmTC_c2ea3.vcxproj]
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:99 (enable_language)
本来可以用的,后来突然不能用了,不知道是不是误操作了什么。
试了下重下vs和cmake都没用。
有大佬知道问题所在吗,求解!拜托了!!!
4,270
社区成员
发帖
与我相关
我的任务
分享加载中
OpenCV中国团队官方博客:https://blog.csdn.net/opencvchina
试试用AI创作助手写篇文章吧