查看完整版本: [-- opencv --]

QTCN开发网 -> Qt基础编程 -> opencv [打印本页] 登录 -> 注册 -> 回复主题 -> 发表主题

itcreator20 2020-12-22 19:21

opencv

这是在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: *** [Makefile:120: cmTC_6eaad/fast] 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

就是找不到问题点在哪里,请高手指点,谢谢。



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


查看完整版本: [-- opencv --] [-- top --]



Powered by phpwind v8.7 Code ©2003-2011 phpwind
Gzip disabled