質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
CMake

CMakeはクロスプラットフォームで作動するオープンソースのビルドシステムです。コマンドライン又は組み込まれた開発環境で使うことができる元のmakefileとプロジェクトファイルを生成します。

OpenCV

OpenCV(オープンソースコンピュータービジョン)は、1999年にインテルが開発・公開したオープンソースのコンピュータビジョン向けのクロスプラットフォームライブラリです。

Q&A

1回答

2589閲覧

cmake-guiでError in configuration process, project files may be invalidとエラーが出る

robotprogrammer

総合スコア10

CMake

CMakeはクロスプラットフォームで作動するオープンソースのビルドシステムです。コマンドライン又は組み込まれた開発環境で使うことができる元のmakefileとプロジェクトファイルを生成します。

OpenCV

OpenCV(オープンソースコンピュータービジョン)は、1999年にインテルが開発・公開したオープンソースのコンピュータビジョン向けのクロスプラットフォームライブラリです。

0グッド

0クリップ

投稿2018/11/17 03:23

前提・実現したいこと

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で試してみましたが両方ともうまく行きませんでした。

補足情報(FW/ツールのバージョンなど)

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

ls -l /home/pi/opencv-3.1.0/build/CMakeCache.txt
の実行結果はどのようになりますでしょうか。

投稿2018/11/19 03:52

kazto

総合スコア7196

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだベストアンサーが選ばれていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問