OpenCV and Xcode

与世无争的帅哥 提交于 2019-12-01 07:32:02

问题


I am looking at pattern recognition in images and video and have thought that C++ is the way to go (for high performance/real-time applications). I want to use the OpenCV libraries in Xcode when I build a C++ application (command-line tool)

I am running Xcode 3.2 and have just followed the steps at http://opencv.willowgarage.com/wiki/Mac_OS_X_OpenCV_Port up to "This probably breaks something in TIFF export, but the build at least completes" in the section "Building using the new CMake build system". I have had no errors.

How do I proceed if I want to use the libraries in Xcode now or do I need to do something else? Any help is greatly appreciated.

Max.


回答1:


Basically its a matter of finding the produced library and dropping it into your xcode project. You can either copy the library into your project or just have a reference to it.

There is a section in the "Xcode Project Management Guide" document that explains how to link libraries and frameworks into your application.

The "Linking" section of "Xcode Build System Guide" might be a good read.



来源:https://stackoverflow.com/questions/1834189/opencv-and-xcode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!