I am trying to install OpenCV on my Mac by following this link
However, when I type cmake -G "Unix Makefiles" .. on my terminal, this error is printed.
- CXX compiler identifier unknown - C compiler identifier unknown - Check CXX compiler operation: / usr / bin / C ++ - Check CXX compiler operation: / usr / bin / C ++ - broken CMake error in / opt / local / share / cmake -3.0 / Modules / CMakeTestCXXCompiler.cmake: 54 (message): C ++ compiler "/ usr / bin / C ++" cannot compile a simple test program.
The following output failed:
Edit Dir: / Users / kwmaeng / Desktop / opencv / build / CMakeFiles / CMakeTmp
Run the build command: "/ usr / bin / make" "cmTryCompileExec653545098 / fast"
make: error: cannot find the "make" utility, not the developer tool or in PATH
CMake will not be able to generate this project correctly. Call Stack (last call first): CMakeLists.txt: 56 (project)
- Configuring incomplete, errors have occurred! See also "/Users/kwmaeng/Desktop/opencv/build/CMakeFiles/CMakeOutput.log". See also "/Users/kwmaeng/Desktop/opencv/build/CMakeFiles/CMakeError.log".
So, I checked CMakeError.log and this content
Compilation of CXX Msgstr compiler identification source file "CMakeCXXCompilerId.cpp Error". Compiler: / usr / bin / C ++ Assembly lines: Identification flags:
Output: 72 xcodebuild: error: SDK "/ Volumes / MAC / dev / adt-bundle-mac-x86_64-20131030 / sdk" cannot be located. C ++: error: could not find the "clang ++" utility, not the developer tool or in PATH ... (blah blah)
Strange, /Volumes/MAC/dev/adt-bundle-mac-x86_64-20131030/sdk is where my Android SDK was installed and now it is deleted, so there is no such folder anymore. Is there an error because cmake refers to an invalid path that no longer exists? Why does cmake refer to android sdk location in the first place? Does it even matter for opencv ??
I googled for hours, but not much was found. Please help me if you have any ideas.
Thanks in advance.