【问题标题】:Fontconfig for iOSiOS 的字体配置
【发布时间】:2012-05-14 02:03:10
【问题描述】:

我从这里http://freedesktop.org/software/fontconfig/release下载Fontconfig-2.9.0.tar.gz

但我不知道如何为 iOS 交叉编译它。我需要一个用于 iOS 的 fontconfig.a,有人可以告诉我如何编译它或给我一个指南吗?谢谢!

【问题讨论】:

    标签: ios fontconfig


    【解决方案1】:

    ./configure --host=arm-ios --prefix=$PREFIX --with-freetype-config=$PREFIX/bin/freetype-config --with-arch=arm 制作 进行安装

    【讨论】:

    • 我这样做:./configure --host=arm-ios --prefix=/Users/bluefish625/Desktop/fontconfig/prefix/ --with-freetype-config=$PREFIX/bin/ freetype-config --with-arch=arm.然后,失败报告:检查构建系统类型... x86_64-apple-darwin11.3.0 检查主机系统类型...无效配置arm-ios': system ios'无法识别配置:错误:/bin/sh ./config.sub arm- ios 失败
    • 我试试这个:./configure CC="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" CFLAGS="-isysroot /Applications/Xcode .app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk -arch armv7" --sysconfdir=/Users/bluefish625/Desktop/fontconfig/sysconfdir/ --prefix=/Users/bluefish625/桌面/fontconfig/prefix/ --mandir=/Users/bluefish625/Desktop/fontconfig/mandir --disable-shared --host=armv7-apple-darwin --with-freetype-config=$PREFIX/bin/freetype-config
    • 。错误信息是:配置:错误:找不到 pkg-config 脚本或太旧。确保它在您的 PATH 中或将 PKG_CONFIG 环境变量设置为 pkg-config 的完整路径。
    • 您是否解决了上述问题,如果是,请告诉我该怎么做@Magicfish
    猜你喜欢
    • 2012-09-30
    • 2017-06-11
    • 1970-01-01
    • 2016-11-07
    • 2016-01-17
    • 1970-01-01
    • 1970-01-01
    • 2013-09-22
    • 1970-01-01
    相关资源
    最近更新 更多