How to compile OpenCV iOS with ENABLE_BITCODE

后端 未结 2 1445
梦毁少年i
梦毁少年i 2020-12-25 14:54

When I tried to compile my XCode project with OpenCV 2.4 iOS using XCode 7 + iOS SDK 9, XCode complained that

ld: \'opencv2.framework/opencv2(alloc.

2条回答
  •  臣服心动
    2020-12-25 15:04

    OpenCV is precisely the kind of software (along with audio and video Codecs) that is likely to have hand-rolled ARM NEON optimisations. The documentation suggests that ~40 functions have had this treatment in OpenCV3.0.

    If compiling for LLVM bit-code you'll get the generic (less optimised, implemented in C or C++) versions instead.

    Use of Bitcode is optional - except when compiling for Apple watch, where it's hard to imagine you'd run computationally complex image processing anyway. If you're bundling a watch app, override the build setting for bitcode on it only.

提交回复
热议问题