Bob de Graaf
Bob de Graaf

Reputation: 2722

Embed OpenCV framework inside another xCode project without linking

I have developed an xCode static library for an iPhone App using OpenCV. Now I want to give my static library to them but I don't want them to go through the hassle of making OpenCV work in their project by changing build settings and all that, that's what I already had to do myself in the static library.

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

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

Upvotes: 6

Views: 1369

Answers (1)

LovaBill
LovaBill

Reputation: 5139

Yes. Clone(copy) opencv inside your project (headers and implementation)*, desclare the copied files inside your project and don't use any c/c++ include folder and any library linkage.

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

Upvotes: 2

Related Questions