OpenCV.Framework does not compile for the armv7s architecture

后端 未结 7 1846
北恋
北恋 2021-02-02 13:34

I am working on an iphone application using openCV framework. Everything was working fine. however lately with the release of iOS 6 and XCode 4.5 I was migrating my project to X

7条回答
  •  不知归路
    2021-02-02 14:19

    Clone the Xcode project for opencv and update the opencv git submodule as per the README:

    https://github.com/jonmarimba/OpenCV-iOS

    Check the build settings, make sure iOS6 and armv7s are present. Click build. You should now have the armv7s compatible .a files. I just tried this:

    $ file libopencv_core.a 
    libopencv_core.a: Mach-O universal binary with 2 architectures
    libopencv_core.a (for architecture armv7):  current ar archive random library
    libopencv_core.a (for architecture cputype (12) cpusubtype (11)):   current ar archive random library
    

    The last entry is for armv7s as per my research so far.

    Edit: The last entry is indeed armv7s. I ran the Xcode's own lipo info command:

    $ xcrun -sdk iphoneos lipo -info libopencv_core.a 
    Architectures in the fat file: libopencv_core.a are: armv7 armv7s 
    

提交回复
热议问题