zoukankan      html  css  js  c++  java
  • ZBarSDK-for-iOS

    ZBarSDK-for-iOS

    64bits ZbarSDK for iOS (armv7, amrv7s, arm64).

    Refers to http://stackoverflow.com/questions/18740304/linker-error-in-xcode-5/18937831#18937831

    The lib in this repo has already been rebuilt for 64bit devices, but in case you want to built it on your own, the explicit steps are listed below:

    Download Mercurial first

    Clone the source:

    hg clone http://zbar.hg.sourceforge.net:8000/hgroot/zbar/zbar 
    cd zbar 
    hg checkout iPhoneSDK-1.3.1 
    
    open iphone/zbar.xcodeproj
    

    In Xcode's menu, select "Product > Scheme > libzbar" and then select "Product > Scheme > Edit Scheme…".Select "Run" in the build configuration and click OK.

    In the Project and Targets list, select the libzbar target and click on the Build Settings tab. Verify your Architecture settings, as shown in the screenshot. (Make sure it says iOS and arm64 armv7 armv7s.)Also don't forget to change Architectures to Standard architectures (armv7, armv7s, arm64), otherwise your project won't compile with arm64 (this is not shown properly on screenshot).

    Go back to "Product > Scheme > Edit Scheme…" and check the "Destination" drop-down menu. Change to the simulator. (Build once for both iOS Device and simulator)

    Combine the two library:

    cd ~/Library/Developer/Xcode/DerivedData
    /Users/mario/Library/Developer/Xcode/DerivedData/zbar-******
    cd Build
    cd Products
    lipo -create Release-iphoneos/libzbar.a Release-iphonesimulator/libzbar.a -o libzbar.a 
    cp libzbar.a ~/Desktop (Copy it to your desktop)
    

    replace the libzbar.a in your project!

    Done!

  • 相关阅读:
    HDU 2509 nim博弈
    HDU 1907 nim博弈变形
    HDU 1568 double 快速幂
    HDU 5950 矩阵快速幂
    HDU 1796 容斥原理
    Linux raid信息 查看
    Linux Ubuntu 内核升级
    Ubuntu 14.04 为 root 帐号开启 SSH 登录
    Google 分布式关系型数据库 F1
    分布式事务实现-Spanner
  • 原文地址:https://www.cnblogs.com/1oo1/p/4363284.html
Copyright © 2011-2022 走看看