xcode - "The C++ compiler "/usr/bin/c++" is not able to compile a simple test program." When trying to install OpenCV -
i'm trying install opencv on mac following link
however, when type cmake -g "unix makefiles" ..
on terminal, error printed.
-- cxx compiler identification unknown -- c compiler identification unknown -- check working cxx compiler: /usr/bin/c++ -- check working cxx compiler: /usr/bin/c++ -- broken cmake error @ /opt/local/share/cmake-3.0/modules/cmaketestcxxcompiler.cmake:54 (message): c++ compiler "/usr/bin/c++" not able compile simple test program.
it fails following output:
change dir: /users/kwmaeng/desktop/opencv/build/cmakefiles/cmaketmp
run build command:"/usr/bin/make" "cmtrycompileexec653545098/fast"
make: error: unable find utility "make", not developer tool or in path
cmake not able correctly generate project. call stack (most recent call first): cmakelists.txt:56 (project)
-- configuring incomplete, errors occurred! see "/users/kwmaeng/desktop/opencv/build/cmakefiles/cmakeoutput.log". see "/users/kwmaeng/desktop/opencv/build/cmakefiles/cmakeerror.log".
so checked cmakeerror.log, , content
compiling cxx compiler identification source file "cmakecxxcompilerid.cpp" failed. compiler: /usr/bin/c++ build flags: id flags:
the output was: 72 xcodebuild: error: sdk "/volumes/mac/dev/adt-bundle-mac-x86_64-20131030/sdk" cannot located. c++: error: unable find utility "clang++", not developer tool or in path ...(blah blah)
weird thing is, /volumes/mac/dev/adt-bundle-mac-x86_64-20131030/sdk
android sdk had been installed, , deleted now, there no such folder anymore. error occurring because cmake referring invalid path not exist anymore?? why cmake referring location of android sdk in first place?? matter opencv??
i googled hours not found. please me if have ideas.
thanks in advance.
i had same problem - worked remove command line tools:
rm -rf /library/developer/commandlinetools
then reinstall command line tool:
xcode-select --install
who knows script doing...and don't have time investigate there go...
Comments
Post a Comment