在Mac上编译CURL

来源:互联网 发布:淘宝网隐形降权 编辑:程序博客网 时间:2024/05/16 17:33



//模拟器
./configure --host=i386-apple-darwin CFLAGS="-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk" CC="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/i686-apple-darwin11-llvm-gcc-4.2"
//真机
./configure --host=arm-apple-darwin CFLAGS="-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk" CC="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2"


make 

sudo make install


合到一个文件:
lipo -create /ipos/libcurl.a /ip-sim/libcurl.a -output libcurl-all.a