gettext or libintl on ios

                     porting spice-gtk  on  ios dependence  gettext

 

          first you can download gettext source code , the address ishttp://mirrors.xbmc.org/build-deps/darwin-libs/

(gettext-0.17.tar.gz)   then cd gettext-0.17/gettext-tools/gnulib-lib/  modify stpncpy.c file by 33 line,

Modify __stnpcpy (char *dest, constchar *src, size_t n)  to __stpcpy(char *dest,constchar *src, size_t n)

 

          second you may execute this cross-complier command:

./configure --prefix=/Users/jwang/pixmanlib --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

 

             third  you execute  make and make install all ok.

 

                           author by wangjie

                                             QQ: 861898039

 

你可能感兴趣的:(ios,command,File,download)