gpt4 book ai didi

macos - 在 Mac OS X 10.9 (Mavericks) 上安装 openCV 2.4.2

转载 作者:太空宇宙 更新时间:2023-11-03 20:38:18 31 4
gpt4 key购买 nike

我正在尝试在 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,...)所以如果有人能帮助我,那将不胜感激,谢谢!

最佳答案

假设您有 brew,运行以下命令安装。

brew tap homebrew/science
brew install opencv

关于macos - 在 Mac OS X 10.9 (Mavericks) 上安装 openCV 2.4.2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19707468/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com