0

OpenCV for Java Desktop(2013年2月15日から利用可能)を使用して単純な顔認識プロジェクト(調査目的)を実行しようとしていますが、WindowsでOpenCVを構築するのに問題があります。

私はこのチュートリアルに従っていますが、Makefileを生成する必要があるビルド部分で立ち往生しています。

私は以下のコマンドを実行しました(チュートリアルが言うように):

cmake -DBUILD_SHARED_LIBS=OFF

次のエラーが発生しました:

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: cl 
Build flags: 
Id flags:

The output was:
O sistema não pode encontrar o arquivo especificado(System couldn't find the specified file).

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: cl 
Build flags: 
Id flags: -c 

The output was:
O sistema não pode encontrar o arquivo especificado(System couldn't find the specified file) 

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: cl 
Build flags: 
Id flags: 

The output was:
O sistema não pode encontrar o arquivo especificado(System couldn't find the specified file).

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: cl 
Build flags: 
Id flags: -c

The output was:
O sistema não pode encontrar o arquivo especificado(System couldn't find the specified file).

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: cl 
Build flags: 
Id flags: -Aa

The output was:
O sistema não pode encontrar o arquivo especificado(System couldn't find the specified file).

Determining if the CXX compiler works failed with the following output:

私はCの初心者ですが、コンパイラに問題があると思います。MinGWをインストールしていますが、CMakeに彼の居場所を指定する方法がわかりません。

CMake GUIも実行しようとしましたが、同じエラーが返されました。

前もって感謝します。

4

1 に答える 1

1

MinGWはPATH環境変数にあるため、CMakeにMinGWの場所を指定する必要はありません。JavaDesktopをサポートするOpenCV2.4.4をインストールする場合は、すべてのソースをコンパイルする必要はありません。ここから実行可能ファイルをダウンロードし(前述のチュートリアルでも指定)、インストール先のディレクトリに解凍します。 。そしてそれだけです。

以前のバージョンでは、実験的なものであったため、OpencvforJavaのコンパイルが必要でした。

于 2013-03-11T20:13:03.083 に答える