OpenCV 2.4.5 on OSX 10.6.8 with c++ 11 support - make errors
I am building opencv 2.4.5 from source, with options to support clang, c++ 11, and libc++. When running make, I get the error listed in the section below.
I have also checked out the master branch from https://github.com/Itseez/opencv/archive/master.zip and verified that this same problem occurs (The stack trace below is from opencv-master, checked out today). Does anyone one have any idea on how to fix this issue?
My environment is the following:
OS:
Mac OSX 10.6.8
Clang:
clang version 3.3 (trunk 180676) Target: x86_64-apple-darwin10.8.0 Thread model: posix
Cmake command:
cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_CXX_FLAGS="-stdlib=libc++" -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_PERF_TESTS=OFF -D BUILD_TESTS=OFF -D WITH_CUDA=OFF ../
This is the error that I get:
Scanning dependencies of target opencv_legacy [ 59%] Building CXX object modules/legacy/CMakeFiles/opencv_legacy.dir/src/3dtracker.cpp.o [ 59%] Building CXX object modules/legacy/CMakeFiles/opencv_legacy.dir/src/auxutils.cpp.o [ 59%] Building CXX object modules/legacy/CMakeFiles/opencv_legacy.dir/src/bgfg_acmmm2003.cpp.o [ 59%] Building CXX object modules/legacy/CMakeFiles/opencv_legacy.dir/src/bgfg_codebook.cpp.o [ 59%] Building CXX object modules/legacy/CMakeFiles/opencv_legacy.dir/src/bgfg_common.cpp.o [ 60%] Building CXX object modules/legacy/CMakeFiles/opencv_legacy.dir/src/bgfg_estimation.cpp.o [ 60%] Building CXX object modules/legacy/CMakeFiles/opencv_legacy.dir/src/bgfg_gaussmix.cpp.o [ 60%] Building CXX object modules/legacy/CMakeFiles/opencv_legacy.dir/src/blobtrack.cpp.o [ 60%] Building CXX object modules/legacy/CMakeFiles/opencv_legacy.dir/src/blobtrackanalysis.cpp.o [ 60%] Building CXX object modules/legacy/CMakeFiles/opencv_legacy.dir/src/blobtrackanalysishist.cpp.o [ 60%] Building CXX object modules/legacy/CMakeFiles/opencv_legacy.dir/src/blobtrackanalysisior.cpp.o [ 60%] Building CXX object modules/legacy/CMakeFiles/opencv_legacy.dir/src/blobtrackanalysistrackdist.cpp.o [ 60%] Building CXX object modules/legacy/CMakeFiles/opencv_legacy.dir/src/blobtrackgen1.cpp.o [ 61%] Building CXX object modules/legacy/CMakeFiles/opencv_legacy.dir/src/blobtrackgenyml.cpp.o [ 61%] Building CXX object modules/legacy/CMakeFiles/opencv_legacy.dir/src/blobtrackingauto.cpp.o [ 61%] Building CXX object modules/legacy/CMakeFiles/opencv_legacy.dir/src/blobtrackingcc.cpp.o [ 61%] Building CXX object modules/legacy/CMakeFiles/opencv_legacy.dir/src/blobtrackingccwithcr.cpp.o [ 61%] Building CXX object modules/legacy/CMakeFiles/opencv_legacy.dir/src/blobtrackinglist.cpp.o [ 61%] Building CXX object modules/legacy/CMakeFiles/opencv_legacy.dir/src/blobtrackingmsfg.cpp.o [ 61%] Building CXX object modules/legacy/CMakeFiles/opencv_legacy.dir/src/blobtrackingmsfgs.cpp.o [ 61%] Building CXX object modules/legacy/CMakeFiles/opencv_legacy.dir/src/blobtrackpostprockalman.cpp.o [ 61%] Building CXX object modules/legacy/CMakeFiles/opencv_legacy.dir/src/blobtrackpostproclinear.cpp.o [ 62%] Building CXX object modules/legacy/CMakeFiles/opencv_legacy.dir/src/blobtrackpostproclist.cpp.o [ 62%] Building CXX object modules/legacy/CMakeFiles/opencv_legacy.dir/src/calcimagehomography.cpp.o [ 62%] Building CXX object modules/legacy/CMakeFiles/opencv_legacy.dir/src/calibfilter.cpp.o [ 62%] Building CXX object modules/legacy/CMakeFiles/opencv_legacy.dir/src/calonder.cpp.o [ 62%] Building CXX object modules/legacy/CMakeFiles/opencv_legacy.dir/src/camshift.cpp.o [ 62%] Building CXX object modules/legacy/CMakeFiles/opencv_legacy.dir/src ...