首页| 论坛| 消息

标题:opencv
作者:itcreator20
日期:2020-12-22 19:21
内容:

这是在cmake里面的报错:
The CXX compiler identification is GNU 7.3.0
The C compiler identification is GNU 7.3.0
Check for working CXX compiler: E:/QT/Qt5.14.2/Tools/mingw730_32/bin/g++.exe
Check for working CXX compiler: E:/QT/Qt5.14.2/Tools/mingw730_32/bin/g++.exe -- broken
CMake Error at C:/Program Files/CMake/share/cmake-3.12/Modules/CMakeTestCXXCompiler.cmake:45 (message):
The C++ compiler
"E:/QT/Qt5.14.2/Tools/mingw730_32/bin/g++.exe"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: E:/OpenCV_3.4.3-Build/CMakeFiles/CMakeTmp
Run Build Command:"C:/Windows/System32/mingw32-make.exe" "cmTC_6eaad/fast"
C:/Windows/System32/mingw32-make.exe -f CMakeFiles\cmTC_6eaad.dir\build.make CMakeFiles/cmTC_6eaad.dir/build
process_begin: CreateProcess(NULL, C:/Windows/System32/mingw32-make.exe -f CMakeFiles\cmTC_6eaad.dir\build.make CMakeFiles/cmTC_6eaad.dir/build, ...) failed.
make (e=2): ???????????

mingw32-make.exe: *** Error 2


CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:127 (project)

Configuring incomplete, errors occurred!
See also "E:/OpenCV_3.4.3-Build/CMakeFiles/CMakeOutput.log".
See also "E:/OpenCV_3.4.3-Build/CMakeFiles/CMakeError.log".

基本信息:vs2019 64位,qt 5.14.2,opencv 3.4.3
就是找不到问题点在哪里,请高手指点,谢谢。


#1 [fsu0413 12-22 22:03]
因为你用的并不是msvc
而且mingw32-make需要环境变量中没有sh.exe
而且c:\windows\system32\mingw32-make.exe是什么鬼

回复 发表
主题 版块