I'm trying to compile opencv in Mac Yosemite. I have tried a lot of versions of opencv but none has ended correctly. I obtain errors like this:
[ 36%] Building CXX object modules/core/CMakeFiles/opencv_perf_core.dir/perf/perf_dot.cpp.o
[ 36%] Building CXX object modules/core/CMakeFiles/opencv_perf_core.dir/perf/perf_inRange.cpp.o [ 37%] Building CXX object modules/core/CMakeFiles/opencv_perf_core.dir/perf/perf_main.cpp.o /Users/denis/Cpp/opencv-2.4.6.1/modules/core/perf/perf_main.cpp:3:1: error: multiple unsequenced modifications to 'argc' [-Werror,-Wunsequenced] CV_PERF_TEST_MAIN(core) ^~~~~~~~~~~~~~~~~~~~~~~ /Users/denis/Cpp/opencv-2.4.6.1/modules/ts/include/opencv2/ts/ts_perf.hpp:501:5: note: expanded from macro 'CV_PERF_TEST_MAIN' CV_PERF_TEST_MAIN_INTERNALS(modulename, plain_only, __VA_ARGS__)\ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/denis/Cpp/opencv-2.4.6.1/modules/ts/include/opencv2/ts/ts_perf.hpp:480:12: note: expanded from macro 'CV_PERF_TEST_MAIN_INTERNALS' while (++argc >= (--argc,-1)) {__VA_ARGS__; break;} /this ugly construction is needed for VS 2005/\ ^ ~~ 1 error generated. make[2]: * [modules/core/CMakeFiles/opencv_perf_core.dir/perf/perf_main.cpp.o] Error 1 make[1]: [modules/core/CMakeFiles/opencv_perf_core.dir/all] Error 2 make: ** [all] Error 2 Mac-mini-di-Denis:opencv-2.4.6.1 denis$
In Mac OS SX 10.7 Lion all ends correctly. Is there anybody that has compiled opencv correctly in Yosemite?