3zm258ohe1 发表于 2016-5-15 10:39:52

MAC os下配置opencv

  其实大多数方法,opencv官网那都有写,直接给出链接:http://opencv.willowgarage.com/wiki/Mac_OS_X_OpenCV_Port
  ios的也有国外的高手直接给出的工程包直接可以用:http://www.eosgarden.com/en/opensource/opencv-ios/overview/
  这里大致都尝试了一下,最方便的配置方法还是用framework直接配置就行了。
  我打了一个包,里面包含opencv2.0的framework和一个空的配置好的工程,在xcode里面用opencv是建立cpp文件的,要不会出现有一些头文件找不到的情况。
  http://download.csdn.net/detail/fzxy002763/3915008

  官网上面这一段也是用framework配置的,这个还是非常简单:(其他几种方法也可以用,不过基本都要自己编译下源码包,比较麻烦,不熟悉linux或者unix的人就可以省省事情,直接用framework就行了)
  


3. Building as an Xcode Framework using the make_frameworks.sh script (obsoleted)

  

Note: the CMake build system should ultimately make this obsolete, one may remove this section when the CMake building is mature on the Mac.By the way, the make_framework.sh script has been removed sincerevision
2528.The last revision where make_framework.sh successfully builds, as I tested, is r2492.

OpenCV can now be built as a Mac OS X Framework useable with XCode. Just invoke the './make_frameworks.sh' script and you will obtain a Universal Framework named "OpenCV.framework" meant as a Private Framework.

Additionally, a pre-built version (universal binary Private Framework, again together with a demo application) is available. See thePrivateFrameworkwiki
page or directly download it fromhttp://www.ient.rwth-aachen.de/~asbach/OpenCV-Private-Framework-1.1.dmg.

A more recent version of the framework can be found herehttp://www.ient.rwth-aachen.de/cms/software/opencv/or
downloaded directly fromhttp://www.ient.rwth-aachen.de/~asbach/OpenCV-Private-Framework-1.2.dmg

OpenCV 2.0 Universal Framework (tested on ppc and i386 Leopard and Snow Leopard): Here is an universal Framework for Mac ppc/i386 built from the OpenCV 2.0 released in September09. By the way, I also fixed some bugs and add some improvements:




-> a bug on Mac (carbon) that prevented cvCloseWindow/cvCloseAllWindow from working. -> a bug when 2 cameras capture images simultaneously (black bands) (see picture bellow) -> The trackbar now displays its current value (see picture bellow) and is resized according to its name.


Those fix/improvements are added to this framework.


[*]

http://vislab.cs.vt.edu/~vislab/wiki/images/4/44/OpenCV2.0.dmg
  如果用macport或者svn那种方式,额。。。其实挺耗时间的,电脑要放在那里一会让它去运行那些后台程序。。。等半天才ok。。。
  

  一些opencv的参考手册(中文的)
  http://fsa.ia.ac.cn/opencv-doc-cn/opencv-doc-cn-0.9.7/ref/opencvref_cv.cn.htm

  http://fsa.ia.ac.cn/opencv-doc-cn/opencv-doc-cn-0.9.7/ref/opencvref_cxcore.cn.htm

  http://fsa.ia.ac.cn/opencv-doc-cn/opencv-doc-cn-0.9.7/ref/opencvref_highgui.cn.htm
页: [1]
查看完整版本: MAC os下配置opencv