Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange issue #8

Open
shawnzp opened this issue May 16, 2016 · 1 comment
Open

Strange issue #8

shawnzp opened this issue May 16, 2016 · 1 comment

Comments

@shawnzp
Copy link

shawnzp commented May 16, 2016

I am new to Xcode for ios. I encountered a very strange problem.

My Xcode is 7 under MacOS EI. and I download the this opencv samples for ios
And after that I downloaded the opencv2.framework 2.4.9 for ios not Mac (they are different).

but, after I unzipped the opencv2.framework, the folders' names are very strange. There is no FOLDER named "opencv2" but "Headers". If so, how could I find the correct path????

In addition, where is the shared library? the next to that file is named "opencv2" but without any suffix. I do not know what it is. maybe the shared library.

In order to make the paths correct, I have changed the "*.h" files folder name to be "opencv2", so the project can find the header files. But still can not link to the library. The error is as follows.

ld: framework not found opencv2 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Although I have set the search path for headers and library.

I have searched a lot but no answers, Could you please give some ideas??

Thank you in advance!

@shawnzp
Copy link
Author

shawnzp commented May 16, 2016

I have resolved it!!

  1. first in the "Headers" folder, create a folder named "opencv2" and then cut all the other files into it. This solves that "cannot find the include file".
  2. just drop this modified opencv2.framework into the Xcode project's frameworks. Then appears a window. Remember to choose "copy file if needed".
  3. change to the TARGET build Settings, just add the search headers path.

Done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant