Changes between Version 2 and Version 3 of documentation/BuildingFreeTypeForiOS

Show
Ignore:
Author:
lloydw (IP: 24.82.134.185)
Timestamp:
09/18/10 08:39:48 (7 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • documentation/BuildingFreeTypeForiOS

    v2 v3  
    2121'''i386''' 
    2222{{{ 
    23 $ CC="g++ -arch -i386" ./configure;make 
     23$ ./configure CFLAGS="-arch i386" 
     24$ make 
    2425}}} 
    2526 
    3435'''x86_64''' 
    3536{{{ 
    36 $ CC="g++ -arch -i386" ./configure;make clean;make 
     37$ ./configure CFLAGS="-arch x86_64";make clean;make 
    3738$ cp objs/.libs/libfreetype.a libfreetype-x86_64.a 
    3839}}} 
     40 
     41'''arm6''' 
     42 
     43Arm6 is used on iPhone 3G and earlier. There are quite a few arguments that need to be passed to configure to make it build for arm6. I'm going under the assumption that you're targeting iOS 3.2 using gcc-4.2 as your compiler. If this is not what you want, please update the arguments below accordingly. 
     44 
     45{{{ 
     46$ ./configure --prefix=/usr/local/iphone --host=arm-apple-darwin --enable-static=yes --enable-shared=no CC=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2  CFLAGS="-arch armv6 -pipe -mdynamic-no-pic -std=c99 -Wno-trigraphs -fpascal-strings -O2 -Wreturn-type -Wunused-variable -fmessage-length=0 -fvisibility=hidden -miphoneos-version-min=3.2 -I/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk/usr/include/libxml2 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk" CPP=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/cpp AR=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ar LDFLAGS="-arch armv6 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk -miphoneos-version-min=3.2" 
     47$ make clean;make 
     48$ cp objs/.libs/libfreetype.a libfreetype-arm6.a 
     49}}} 
     50 
     51'''arm7''' 
     52 
     53Arm7 is used on iPhone 3GS and newer. We do the exact same options as above, but pass arm7 as the architecture (remember to update the CFLAGS and the LDFLAGS) 
     54 
     55{{{ 
     56$ ./configure --prefix=/usr/local/iphone --host=arm-apple-darwin --enable-static=yes --enable-shared=no CC=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2  CFLAGS="-arch armv7 -pipe -mdynamic-no-pic -std=c99 -Wno-trigraphs -fpascal-strings -O2 -Wreturn-type -Wunused-variable -fmessage-length=0 -fvisibility=hidden -miphoneos-version-min=3.2 -I/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk/usr/include/libxml2 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk" CPP=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/cpp AR=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ar LDFLAGS="-arch armv7 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk -miphoneos-version-min=3.2" 
     57$ make clean;make 
     58$ cp objs/.libs/libfreetype.a libfreetype-arm7.a 
     59}}}