美文网首页
Mac 编译iOS(armv7/7s/64/X86/i386)

Mac 编译iOS(armv7/7s/64/X86/i386)

作者: lishichuang | 来源:发表于2018-02-01 14:51 被阅读0次

    libjpeg编译命令

    编译环境:

        Xcode 9.2

        Mac OS 10.12.6

        libjpeg(1.5.3)

    ——————————libjpeg—arm64—————————————————

    sudo sh ../configure CC="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" CFLAGS="-mfloat-abi=softfp -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk -O3 -arch arm64 -miphoneos-version-min=7.0 -funwind-tables

    " --host=armv8-apple-darwin --with-jpeg8

    ——————————libjpeg—armv7—————————————————

    sudo sh ../configure CC="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" CFLAGS="-mfloat-abi=softfp -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk -O3 -arch armv7 -miphoneos-version-min=7.0" --host=arm-apple-darwin10 --with-jpeg8

    ——————————libjpeg—armv7s—————————————————

    sudo sh ../configure CC="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" CFLAGS="-mfloat-abi=softfp -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk -O3 -arch armv7s -miphoneos-version-min=7.0" --host=arm-apple-darwin10 --with-jpeg8

    ——————————libjpeg—X_86—————————————————

    sudo sh ../configure --host x86_64-apple-darwin NASM=/usr/local/bin/nasm

    ——————————libjpeg—i386—————————————————

    sudo sh ../configure --host i686-apple-darwin CFLAGS='-O3 -m32' LDFLAGS=-m32

    相关文章

      网友评论

          本文标题:Mac 编译iOS(armv7/7s/64/X86/i386)

          本文链接:https://www.haomeiwen.com/subject/qshdzxtx.html