我正在尝试在 Mac OS X 10.9(Mavericks)上安装 openCV 2.4.2(不是最新版本,但根据多个来源与较新的 OS X 兼容的稳定版本)。我试过从源代码安装并使用自制软件,但都不起作用。尝试安装时出现以下错误:
build Marieke$ make
[ 25%] Building CXX object modules/ts/CMakeFiles/opencv_ts.dir/src/precomp.cpp.o
In file included from /users/Marieke/Downloads/OpenCV-2.4.2/modules/ts/src/precomp.cpp:1:
In file included from /users/Marieke/Downloads/OpenCV-2.4.2/modules/ts/src/precomp.hpp:2:
In file included from /users/Marieke/Downloads/OpenCV-2.4.2/modules/ts/include/opencv2/ts/ts.hpp:40:
/users/Marieke/Downloads/OpenCV-2.4.2/modules/ts/include/opencv2/ts/ts_gtest.h:1657:13: fatal error:
'tr1/tuple' file not found
# include <tr1/tuple> // NOLINT
^
1 error generated.
make[2]: *** [modules/ts/CMakeFiles/opencv_ts.dir/src/precomp.cpp.o] Error 1
make[1]: *** [modules/ts/CMakeFiles/opencv_ts.dir/all] Error 2
make: *** [all] Error 2
我不知道如何解决这个问题,我已经尝试了几件事(我现在有最新版本的 Xcode、cmake、ffmpeg、faac、faad、qt ......)所以如果有人可以帮助我,那就是非常感谢,谢谢!