0

I already have installed openCV 3.1.0, and though some people have said otherwise, ArUco was not included in that.

I've been trying to install ArUco for my laptop (OSX 10.11.5), and I've downloaded the latest version of ArUco from the website, v2.0.7 (https://sourceforge.net/projects/aruco/files/).

I've unzipped it, created a directory build inside, and ran cmake .. from the build directory. My output looks like this:

-- GLUT_glut_LIBRARY=GLUT_glut_LIBRARY-NOTFOUND
-- Try OpenMP C flag = [-fopenmp=libomp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [ ]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed

and has more tests for OpenMP and more failures.

At the end, it says

-- Could NOT find OpenMP (missing:  OpenMP_C_FLAGS OpenMP_CXX_FLAGS)-- OpenCV_LIB_DIR=/usr/local/share/OpenCV/3rdparty/lib

How should I fix this? I have Xcode installed, and according to other questions/answers Xcode should come with OpenGL and GLUT.

4

2 回答 2

1

您混淆了两个库。OpenCV 有自己的 aruco 实现,与 SF 上的其他项目无关。

它在名为http://docs.opencv.org/3.1.0/d9/d6a/group__aruco.htmlopencv_contrib的单独模块中实现。aruco

默认情况下,contrib 模块是可选的,因此您必须同时获取opencvopencv_contribrepos,并在 CMake 配置期间启用所需的模块。

在 OSX 上,我相信您可以使用 Homebrew 包管理器来安装 OpenCV 3:https ://github.com/Homebrew/homebrew-science/blob/master/opencv3.rb 。

于 2016-10-25T14:11:30.243 回答
0

我认为 aruco 是为 windows 和 linux 而设计的,而不是 OSX。我知道 OSX 和 linux 都是 Unix,但仍然存在差异。因此您可能无法在您的 osx 机器上构建它。告诉你是否找到了解决办法。

于 2016-06-19T20:20:03.170 回答