Ask Your Question

Revision history [back]

Compile opencv on Mac OS X 10.10 Yosemite

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- error: multiple unsequenced modifications to 'argc' [-Werror,-Wunsequenced] CV_PERF_TEST_MAIN(core) ^~~~~~~~~~~~~~~~~~~~~~~ /Users/denis/Cpp/opencv- note: expanded from macro 'CV_PERF_TEST_MAIN' CV_PERF_TEST_MAIN_INTERNALS(modulename, plain_only, __VA_ARGS__)\ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/denis/Cpp/opencv- 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- denis$

In Mac OS SX 10.7 Lion all ends correctly. Is there anybody that has compiled opencv correctly in Yosemite?