I'm trying to install opencv with homebrew on OS 10.5.8 but I'm totally stumped by this error:
brew install -v opencv
/tmp/opencv-Qk23/opencv-2.4.6.1/modules/core/src/parallel.cpp:106:39: error: dispatch/dispatch.h: No such file or directory
/tmp/opencv-Qk23/opencv-2.4.6.1/modules/core/src/parallel.cpp: In function 'void cv::parallel_for_(const cv::Range&, const cv::ParallelLoopBody&, double)':
/tmp/opencv-Qk23/opencv-2.4.6.1/modules/core/src/parallel.cpp:267: error: 'dispatch_queue_t' was not declared in this scope
/tmp/opencv-Qk23/opencv-2.4.6.1/modules/core/src/parallel.cpp:267: error: expected `;' before 'concurrent_queue'
/tmp/opencv-Qk23/opencv-2.4.6.1/modules/core/src/parallel.cpp:268: error: 'concurrent_queue' was not declared in this scope
/tmp/opencv-Qk23/opencv-2.4.6.1/modules/core/src/parallel.cpp:268: error: 'dispatch_apply_f' was not declared in this scope
make[2]: *** [modules/core/CMakeFiles/opencv_core.dir/src/parallel.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [modules/core/CMakeFiles/opencv_core.dir/all] Error 2
make: *** [all] Error 2
Any suggestions?