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

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

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

C言語は、1972年にAT&Tベル研究所の、デニス・リッチーが主体となって作成したプログラミング言語です。 B言語の後継言語として開発されたことからC言語と命名。そのため、表記法などはB言語やALGOLに近いとされています。 Cの拡張版であるC++言語とともに、現在世界中でもっとも普及されているプログラミング言語です。

Python 3.x

Python 3はPythonプログラミング言語の最新バージョンであり、2008年12月3日にリリースされました。

C++

C++はC言語をもとにしてつくられた最もよく使われるマルチパラダイムプログラミング言語の1つです。オブジェクト指向、ジェネリック、命令型など広く対応しており、多目的に使用されています。

Python

Pythonは、コードの読みやすさが特徴的なプログラミング言語の1つです。 強い型付け、動的型付けに対応しており、後方互換性がないバージョン2系とバージョン3系が使用されています。 商用製品の開発にも無料で使用でき、OSだけでなく仮想環境にも対応。Unicodeによる文字列操作をサポートしているため、日本語処理も標準で可能です。

Q&A

解決済

1回答

8884閲覧

Cmakeでエラーがでてしまいconfigureが出来ません。1/2(文字数の問題より2つに分けています)

carnage0216

総合スコア194

C

C言語は、1972年にAT&Tベル研究所の、デニス・リッチーが主体となって作成したプログラミング言語です。 B言語の後継言語として開発されたことからC言語と命名。そのため、表記法などはB言語やALGOLに近いとされています。 Cの拡張版であるC++言語とともに、現在世界中でもっとも普及されているプログラミング言語です。

Python 3.x

Python 3はPythonプログラミング言語の最新バージョンであり、2008年12月3日にリリースされました。

C++

C++はC言語をもとにしてつくられた最もよく使われるマルチパラダイムプログラミング言語の1つです。オブジェクト指向、ジェネリック、命令型など広く対応しており、多目的に使用されています。

Python

Pythonは、コードの読みやすさが特徴的なプログラミング言語の1つです。 強い型付け、動的型付けに対応しており、後方互換性がないバージョン2系とバージョン3系が使用されています。 商用製品の開発にも無料で使用でき、OSだけでなく仮想環境にも対応。Unicodeによる文字列操作をサポートしているため、日本語処理も標準で可能です。

0グッド

0クリップ

投稿2018/01/29 14:40

Cmakeでエラーがでてしまいconfigureが出来ません。1/2(文字数の問題より2つに分けています)

環境
Windows10 64bit

最新版のOPENCVとCmakeをvisual studio 2013 for windowsで使おうとCmakeを用いてconfigure舌のですが以下のエラーが出てしまいます。

CMake Deprecation Warning at CMakeLists.txt:72 (cmake_policy):
The OLD behavior for policy CMP0022 will be removed from a future version
of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances.  Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.

CMake Deprecation Warning at CMakeLists.txt:77 (cmake_policy):
The OLD behavior for policy CMP0026 will be removed from a future version
of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances.  Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.

found IPP (ICV version): 9.0.1 [9.0.1]
at: C:/opencv/sources/3rdparty/ippicv/unpack/ippicv_win
CUDA detected: 9.1
CUDA NVCC target flags: -gencode;arch=compute_20,code=sm_20;-gencode;arch=compute_20,code=sm_21;-gencode;arch=compute_30,code=sm_30;-gencode;arch=compute_35,code=sm_35;-gencode;arch=compute_30,code=compute_30
Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
To enable PlantUML support, set PLANTUML_JAR environment variable or pass -DPLANTUML_JAR=<filepath> option to cmake
Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) (Required is at least version "2.7")
Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) (Required is at least version "2.6")
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'numpy'

Could NOT find Matlab (missing: MATLAB_MEX_SCRIPT MATLAB_INCLUDE_DIRS MATLAB_ROOT_DIR MATLAB_LIBRARIES MATLAB_LIBRARY_DIRS MATLAB_MEXEXT MATLAB_ARCH MATLAB_BIN) 
VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file
CMake Error at modules/gpu/CMakeLists.txt:88 (ocv_add_precompiled_headers):
Unknown CMake command "ocv_add_precompiled_headers".

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CUDA_nppi_LIBRARY (ADVANCED)
linked by target "opencv_cudev" in directory C:/opencv/sources/modules/cudev
linked by target "opencv_cudev" in directory C:/opencv/sources/modules/cudev
linked by target "opencv_test_cudev" in directory C:/opencv/sources/modules/cudev/test
linked by target "opencv_core" in directory C:/opencv/sources/modules/core
linked by target "opencv_core" in directory C:/opencv/sources/modules/core
linked by target "opencv_perf_core" in directory C:/opencv/sources/modules/core
linked by target "opencv_test_core" in directory C:/opencv/sources/modules/core
linked by target "opencv_cudaarithm" in directory C:/opencv/sources/modules/cudaarithm
linked by target "opencv_cudaarithm" in directory C:/opencv/sources/modules/cudaarithm
linked by target "opencv_test_cudaarithm" in directory C:/opencv/sources/modules/cudaarithm
linked by target "opencv_perf_cudaarithm" in directory C:/opencv/sources/modules/cudaarithm
linked by target "opencv_flann" in directory C:/opencv/sources/modules/flann
linked by target "opencv_flann" in directory C:/opencv/sources/modules/flann
linked by target

もう一つの質問へ続きます。
お手数ですがどうかよろしくお願いします。

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

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

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

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

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

yumetodo

2018/01/29 16:58

logが長い場合はpastebinやgistのような外部サービスを利用してください。質問を分割しないでください。またもう一つの質問と言われてもチャットではないのでたどるのが面倒です。
guest

回答1

0

ベストアンサー

とりあえずOpenCVをCMakeを使ってビルドする方法を理解されていないように見受けられるので、
http://yumetodo.hateblo.jp/entry/2016/01/05/161620
のような解説サイトを改めてご覧になってはいかがでしょうか?

CMakeでそのようなエラーが出るのはごくごく日常的で普通のことで、かつエラーメッセージを読めばどんな設定項目が足りないかを知ることができます。

投稿2018/01/29 17:05

yumetodo

総合スコア5850

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

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

carnage0216

2018/01/29 23:59

どうもありがとうございます。 あの、opencvとcmakeに関しては載せていただいたサイトと同じバージョンの方が良いでしょうか?
yumetodo

2018/01/30 02:40

そんな必要は無いですね。依存ライブラリ含め最新版を使ってください。 記事ではWITH_CUDAをOFFにしてCUDAを無効にしていますが、CUDA9.0がVisual Studio 2017まで対応しているので頑張れば有効にできるはず(ビルド時間激増しますが) 一般にメジャーバージョン(x.y.zというバージョン表記に対してx)が変わらない限りは手順が変わるなんてことはありません(たまにやらかしているお馬鹿なプロジェクトがないとは言わないけど、OpenCVもCMakeもその他依存ライブラリもそんなことはない)
carnage0216

2018/01/30 05:13

エラーが出てもokすれば良いとは知りませんでした。(ちゃんと設定が出来ていれば) どうもありがとうございます。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

ただいまの回答率
85.50%

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

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

質問する

関連した質問