I'm trying to install OpenCV on my Mac by following this link
However, when I type
cmake -G "Unix Makefiles" ..
-- The CXX compiler identification is unknown
-- The C compiler identification is unknown
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- broken CMake Error at /opt/local/share/cmake-3.0/Modules/CMakeTestCXXCompiler.cmake:54
(message): The C++ compiler "/usr/bin/c++" is not able to compile a
simple test program.
It fails with the following output:
Change Dir: /Users/kwmaeng/Desktop/opencv/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTryCompileExec653545098/fast"
make: error: unable to find utility "make", not a developer tool or
CMake will not be able to correctly generate this project. Call
Stack (most recent call first): CMakeLists.txt:56 (project)
-- Configuring incomplete, errors occurred! See also "/Users/kwmaeng/Desktop/opencv/build/CMakeFiles/CMakeOutput.log". See
Compiling the CXX compiler identification source file
"CMakeCXXCompilerId.cpp" failed. Compiler: /usr/bin/c++ Build flags:
The output was: 72 xcodebuild: error: SDK
"/Volumes/MAC/dev/adt-bundle-mac-x86_64-20131030/sdk" cannot be
located. c++: error: unable to find utility "clang++", not a developer
tool or in PATH ...(blah blah)
Thanks to everybody's help, I was able to solve my issue.
For other people who may suffer from the same problem in the future, this is what I did:
it was because my
$PATH was messed up (I think it happened when I tried to add Android SDK to
I cleared the
.bash_profile and added C++ and make and
and it worked like charm.