opencv的额外模块cmake,出现如下的错误,请问怎么修改

2025-01-01 07:08:23
推荐回答(3个)
回答1:

CMake Error: Unable to open cache file for save. C:/Program Files/Opencv_VS2010/CMakeCache.txt
CMake Error at C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineSystem.cmake:160 (FILE):
file Internal CMake error when trying to open file: C:/Program
Files/Opencv_VS2010/CMakeFiles/CMakeOutput.log for writing.
Call Stack (most recent call first):
CMakeLists.txt:56 (project)
CMake Error: Could not open file for write in copy operation C:/Program Files/Opencv_VS2010/CMakeFiles/CMakeSystem.cmake.tmp
CMake Error: : System Error: No such file or directory
CMake Error at C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineSystem.cmake:172 (CONFIGURE_FILE):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:56 (project)
CMake Error: Could not open file for write in copy operation C:/Program Files/Opencv_VS2010/CMakeFiles/CMakeCCompiler.cmake.tmp
CMake Error: : System Error: No such file or directory
CMake Error at C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCCompiler.cmake:177 (CONFIGURE_FILE):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:56 (project)
CMake Error: Could not find cmake module file:C:/Program Files/Opencv_VS2010/CMakeFiles/CMakeCCompiler.cmake
CMake Error: Could not open file for write in copy operation C:/Program Files/Opencv_VS2010/CMakeFiles/CMakeCXXCompiler.cmake.tmp
CMake Error: : System Error: No such file or directory
CMake Error at C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCXXCompiler.cmake:182 (CONFIGURE_FILE):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:56 (project)
CMake Error: Could not find cmake module file:C:/Program Files/Opencv_VS2010/CMakeFiles/CMakeCXXCompiler.cmake
CMake Error: Could not open file for write in copy operation C:/Program Files/Opencv_VS2010/CMakeFiles/CMakeRCCompiler.cmake.tmp
CMake Error: : System Error: No such file or directory
CMake Error at C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineRCCompiler.cmake:65 (CONFIGURE_FILE):
configure_file Problem configuring file
Call Stack (most recent call first):
C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/Platform/Windows-cl.cmake:28 (ENABLE_LANGUAGE)
C:/Program Files/CMake

回答2:

修改成“如上”就行了

回答3:

如下。。。。。。。。。。。。。。。