我嘗試使用OpenCV for Java Desktop(自2013年2月15日起可用)做簡單的人臉識別項目(用於學習目的)和我在Windows中構建OpenCV時遇到問題。無法使用CMAKE構建Makefile,未指定編譯器
我正在關注這個tutorial, 我被困在構建部分,你需要生成一個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,但它返回了相同的錯誤。
在此先感謝。
可能的重複http://stackoverflow.com/questions/4101456/running-cmake-on-windows – cdarke 2013-03-11 14:29:05