Mac下Opencv(2.4.9)配置Xcode(4.6.1)
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
3.使用Xcode进行OpenCV项目开发
1.Open Xcode, choose New -> New Project -> Command
Line Tool
2.Name it and select C++
for
type
build
settings
tab from the top. Search Paths
.
Under header search paths
, for debug and
release,/usr/local/include
.
Under library search paths
, set the path$(PROJECT_DIR)
. Finally, check if C++
standard library
is libc++(Xcode默认的就是这个
)
or not,if not, change it to this!File->New->New
Group
, OpenCV Frameworks
. OpenCV
Frameworks
File -> add Files
,
Type shift + command +G, which /usr/local/lib
libopencv_core.dylib
, libopencv_highgui.dylib
,Add
. (you may need to add
other library files from this folder to run other code.)#include <opencv2/opencv.hpp>
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。