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
网友评论