libiconv on ios
2012-01-19 17:24
281 查看
libiconv-1.14 on ios
cross-compile libiconv-1.14 on MacOS10.7,I will introduce step by step:
⑴:download source code (http://ftp.gnu.org/pub/gnu/libiconv/)
⑵:execute build command
./configure --prefix=/Users/jwang/libiconv --host=arm-apple-darwin --enable-static=yes --enable-shared=no CC=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc CFLAGS="-arch
armv6 -pipe -mdynamic-no-pic -Wno-trigraphs -fpascal-strings -O0 -Wreturn-type -Wunused-variable -fmessage-length=0 -fvisibility=hidden -miphoneos-version-min=2.0 -gdwarf-2 -mthumb -I/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/usr/include/libxml2
-isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk" CPP=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/cpp AR=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ar LDFLAGS="-isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk
-Wl,-dead_strip -miphoneos-version-min=2.0" LD=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ld--disable-cxx
if you meet with this problem:
unistd.h:668:28: error: crt_externs.h: No such file or directory
you can execute:
cp /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/usr/include/crt_externs.h
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/usr/include/
⑶:execute make and make install all right
author:wangjie
email:jwang@keqisoft.com
cross-compile libiconv-1.14 on MacOS10.7,I will introduce step by step:
⑴:download source code (http://ftp.gnu.org/pub/gnu/libiconv/)
⑵:execute build command
./configure --prefix=/Users/jwang/libiconv --host=arm-apple-darwin --enable-static=yes --enable-shared=no CC=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc CFLAGS="-arch
armv6 -pipe -mdynamic-no-pic -Wno-trigraphs -fpascal-strings -O0 -Wreturn-type -Wunused-variable -fmessage-length=0 -fvisibility=hidden -miphoneos-version-min=2.0 -gdwarf-2 -mthumb -I/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/usr/include/libxml2
-isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk" CPP=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/cpp AR=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ar LDFLAGS="-isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk
-Wl,-dead_strip -miphoneos-version-min=2.0" LD=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ld--disable-cxx
if you meet with this problem:
unistd.h:668:28: error: crt_externs.h: No such file or directory
you can execute:
cp /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/usr/include/crt_externs.h
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/usr/include/
⑶:execute make and make install all right
author:wangjie
email:jwang@keqisoft.com
相关文章推荐
- gettext or libintl on ios
- Unity Xcode 8 iOS 10 出现警告 Libinfo call to mDNSResponder on main thread
- iOS: 下载等待画面open source lib - MBProgressHUD
- How to Customize UITabBar on iOS 5
- OpenGL ES on iOS【IOS的OpenGL ES】
- python_matplotlib cannot import name _thread on mac
- Automatic Preferred Max Layout Width is not available on iOS versions prior to
- firebase messaging - topic messaging on iOS
- How we Built an iOS game on PC
- TEA Algorithm Implementation on iOS
- error fix undefined reference to libiconv_open'
- iOS -- 二维码生成使用cocoapods导入libqrencode第三方库
- OpenGL ES on iOS
- iOS集成微信支付的一些坑:onResp不回调、只显示一个确定按钮、闪回
- Remove Google Play Games libraries on iOS (Unity3D开发之二十一)
- 配置IPsec on GRE Tunnel with IOS Firewall and NAT
- jq在ios下的on事件失效
- /var/lib/rpm/__db.001: No space left on device
- undefined reference to `libiconv_open'
- ios 发布被拒绝错误吗 10.6 Apple and our customers place a high value on simple...的理解和解决方式