Deploy an OpenCV environment inside another xcode project without binding

I developed the xCode static library for the iPhone App using OpenCV. Now I want to provide them with my static library, but I do not want them to experience the difficulties associated with the fact that OpenCV worked in its project, changing the build settings and everything that I already did in the static library.

I usually use the "Projectception" method, dragging my static-library project into my main xCode project. However, when I use this method, I usually need to add all the frameworks that I use in the static library project, again in my main project in the build phase of Link Binary with Libraries.

So my question is: is there a way that OpenCV works only in my static library project and that a new project that imports this static library should not do anything extra for OpenCV to work?

+6
source share
1 answer

Yes. Clone (copy) opencv inside your project (headers and implementation) *, desclare the copied files inside your project and do not use any c / C ++ include folder and any library link.

* implementations are in the modules /.../ src /

+2
source

Source: https://habr.com/ru/post/944555/


All Articles