Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 660
Bob de Graaf Avatar asked May 08 '13 18:05

Bob de Graaf


1 Answers

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/

like image 153
LovaBill Avatar answered Oct 25 '22 22:10

LovaBill