I've just successfully built openCV as a static library for iOS armv7 architecture.
However, when refe开发者_StackOverflowrencing this library from an app compiled under -o3 (or -o2, -o1) the app just freezes when this library is called.
I'm guessing it's something I didn't set as build flags or options when compiling openCV that's the problem (I compiled openCV using cMake and Xcode 4) - any ideas what I'm doing wrong?
Like @ughoavgfhw said above, it was a threading issue. One task was being completed at an earlier stage than expected (with no checking for this), and ended up creating a recurring loop.
精彩评论