开发者

Linking OpenCV library in Xcode 4?

开发者 https://www.devze.com 2023-02-24 17:02 出处:网络
I\'ve been having trouble compiling my own OpenCV iOS project. I started with a simple command-line app target and I\'ve now added an iOS app target. The problem is that my iOS target produces the fol

I've been having trouble compiling my own OpenCV iOS project. I started with a simple command-line app target and I've now added an iOS app target. The problem is that my iOS target produces the following linker error:

ld: library not found for -lcv

collect2: ld returned 1 exit status

Command

/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-g++-4.2

failed with exit开发者_运维百科 code 1

I'm not sure where the flag, -lcv is coming from, as I haven't set it as any of the settings in my project's "Build Settings". I've downloaded a demo OpenCV iPhone project that compiles perfectly fine, and I've tried to copy the build settings from this project but I can't see what's different!

Thanks very much for any help.


Try adding in the project settings the path exact of the library since : /User/..... important: only ONE ""

0

精彩评论

暂无评论...
验证码 换一张
取 消