开发者

Compiling with -o3 freezes app, while -o0 works fine

开发者 https://www.devze.com 2023-02-18 00:07 出处:网络
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 ju

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.

0

精彩评论

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