前提・実現したいこと
opencvをやろうとしていて初期設定で悩んでいます
発生している問題・エラーメッセージ
cmake-guiでConfigureをするとError in configuration process, project files may be invalidと表示されます
エラーメッセージ
CMake Error: Cannot open file for write: /home/pi/opencv-3.1.0/build/CMakeCache.txt.tmp
CMake Error: : System Error: 許可がありません
CMake Error: Unable to open cache file for save. /home/pi/opencv-3.1.0/build/CMakeCache.txt
CMake Error: : System Error: 許可がありません
CMake Error at /usr/share/cmake-3.7/Modules/CMakeDetermineSystem.cmake:168 (file):
file failed to open for writing
(そのようなファイルやディレクトリはありません):
/home/pi/opencv-3.1.0/build/CMakeFiles/CMakeOutput.log
Call Stack (most recent call first):
CMakeLists.txt:93 (project)
CMake Error: Could not open file for write in copy operation /home/pi/opencv-3.1.0/build/CMakeFiles/3.7.2/CMakeSystem.cmake.tmp
CMake Error: : System Error: そのようなファイルやディレクトリはありません
CMake Error at /usr/share/cmake-3.7/Modules/CMakeDetermineSystem.cmake:180 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:93 (project)
CMake Error at /usr/share/cmake-3.7/Modules/CMakeDetermineCompilerId.cmake:131 (file):
file problem creating directory:
/home/pi/opencv-3.1.0/build/CMakeFiles/3.7.2/CompilerIdCXX
Call Stack (most recent call first):
/usr/share/cmake-3.7/Modules/CMakeDetermineCompilerId.cmake:30 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
/usr/share/cmake-3.7/Modules/CMakeDetermineCXXCompiler.cmake:104 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:93 (project)
CMake Error at /usr/share/cmake-3.7/Modules/CMakeDetermineCompilerId.cmake:131 (file):
file problem creating directory:
/home/pi/opencv-3.1.0/build/CMakeFiles/3.7.2/CompilerIdCXX
Call Stack (most recent call first):
/usr/share/cmake-3.7/Modules/CMakeDetermineCompilerId.cmake:30 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
/usr/share/cmake-3.7/Modules/CMakeDetermineCXXCompiler.cmake:104 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:93 (project)
CMake Error at /usr/share/cmake-3.7/Modules/CMakeDetermineCompilerId.cmake:638 (file):
file failed to open for writing
(そのようなファイルやディレクトリはありません):
/home/pi/opencv-3.1.0/build/CMakeFiles/CMakeError.log
Call Stack (most recent call first):
/usr/share/cmake-3.7/Modules/CMakeDetermineCompilerId.cmake:45 (CMAKE_DETERMINE_COMPILER_ID_VENDOR)
/usr/share/cmake-3.7/Modules/CMakeDetermineCXXCompiler.cmake:104 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:93 (project)
The CXX compiler identification is unknown
CMake Error: Could not open file for write in copy operation /home/pi/opencv-3.1.0/build/CMakeFiles/3.7.2/CMakeCXXCompiler.cmake.tmp
CMake Error: : System Error: そのようなファイルやディレクトリはありません
CMake Error at /usr/share/cmake-3.7/Modules/CMakeDetermineCXXCompiler.cmake:170 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:93 (project)
CMake Error: Could not find cmake module file: /home/pi/opencv-3.1.0/build/CMakeFiles/3.7.2/CMakeCXXCompiler.cmake
CMake Error at /usr/share/cmake-3.7/Modules/CMakeDetermineCompilerId.cmake:131 (file):
file problem creating directory:
/home/pi/opencv-3.1.0/build/CMakeFiles/3.7.2/CompilerIdC
Call Stack (most recent call first):
/usr/share/cmake-3.7/Modules/CMakeDetermineCompilerId.cmake:30 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
/usr/share/cmake-3.7/Modules/CMakeDetermineCCompiler.cmake:112 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:93 (project)
CMake Error at /usr/share/cmake-3.7/Modules/CMakeDetermineCompilerId.cmake:131 (file):
file problem creating directory:
/home/pi/opencv-3.1.0/build/CMakeFiles/3.7.2/CompilerIdC
Call Stack (most recent call first):
/usr/share/cmake-3.7/Modules/CMakeDetermineCompilerId.cmake:30 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
/usr/share/cmake-3.7/Modules/CMakeDetermineCCompiler.cmake:112 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:93 (project)
CMake Error at /usr/share/cmake-3.7/Modules/CMakeDetermineCompilerId.cmake:131 (file):
file problem creating directory:
/home/pi/opencv-3.1.0/build/CMakeFiles/3.7.2/CompilerIdC
Call Stack (most recent call first):
/usr/share/cmake-3.7/Modules/CMakeDetermineCompilerId.cmake:30 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
/usr/share/cmake-3.7/Modules/CMakeDetermineCCompiler.cmake:112 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:93 (project)
CMake Error at /usr/share/cmake-3.7/Modules/CMakeDetermineCompilerId.cmake:131 (file):
file problem creating directory:
/home/pi/opencv-3.1.0/build/CMakeFiles/3.7.2/CompilerIdC
Call Stack (most recent call first):
/usr/share/cmake-3.7/Modules/CMakeDetermineCompilerId.cmake:30 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
/usr/share/cmake-3.7/Modules/CMakeDetermineCCompiler.cmake:112 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:93 (project)
CMake Error at /usr/share/cmake-3.7/Modules/CMakeDetermineCompilerId.cmake:638 (file):
file failed to open for writing
(そのようなファイルやディレクトリはありません):
/home/pi/opencv-3.1.0/build/CMakeFiles/CMakeError.log
Call Stack (most recent call first):
/usr/share/cmake-3.7/Modules/CMakeDetermineCompilerId.cmake:45 (CMAKE_DETERMINE_COMPILER_ID_VENDOR)
/usr/share/cmake-3.7/Modules/CMakeDetermineCCompiler.cmake:112 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:93 (project)
The C compiler identification is unknown
CMake Error: Could not open file for write in copy operation /home/pi/opencv-3.1.0/build/CMakeFiles/3.7.2/CMakeCCompiler.cmake.tmp
CMake Error: : System Error: そのようなファイルやディレクトリはありません
CMake Error at /usr/share/cmake-3.7/Modules/CMakeDetermineCCompiler.cmake:175 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:93 (project)
CMake Error: Could not find cmake module file: /home/pi/opencv-3.1.0/build/CMakeFiles/3.7.2/CMakeCCompiler.cmake
Check for working CXX compiler: /usr/bin/c++
CMake Error at /usr/share/cmake-3.7/Modules/CMakeTestCXXCompiler.cmake:25 (file):
file failed to open for writing
(そのようなファイルやディレクトリはありません):
/home/pi/opencv-3.1.0/build/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
Call Stack (most recent call first):
CMakeLists.txt:93 (project)
CMake Error at /usr/share/cmake-3.7/Modules/CMakeTestCXXCompiler.cmake:30 (try_compile):
Unknown extension ".cxx" for file
/home/pi/opencv-3.1.0/build/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
try_compile() works only for enabled languages. Currently these are:
C CXX
See project() command to enable other languages.
Call Stack (most recent call first):
CMakeLists.txt:93 (project)
Check for working CXX compiler: /usr/bin/c++ -- broken
CMake Error at /usr/share/cmake-3.7/Modules/CMakeTestCXXCompiler.cmake:41 (file):
file failed to open for writing
(そのようなファイルやディレクトリはありません):
/home/pi/opencv-3.1.0/build/CMakeFiles/CMakeError.log
Call Stack (most recent call first):
CMakeLists.txt:93 (project)
CMake Error at /usr/share/cmake-3.7/Modules/CMakeTestCXXCompiler.cmake:44 (message):
The C++ compiler "/usr/bin/c++" is not able to compile a simple test
program.
It fails with the following output:
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:93 (project)
Configuring incomplete, errors occurred!
CMake Error: Cannot open file for write: /home/pi/opencv-3.1.0/build/CMakeCache.txt.tmp
CMake Error: : System Error: 許可がありません
CMake Error: Unable to open cache file for save. /home/pi/opencv-3.1.0/build/CMakeCache.txt
CMake Error: : System Error: 許可がありません
試したこと
ubuntuとraspberrypiで試してみましたが両方ともうまく行きませんでした。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。