我正在尝试将 FontForge 的库和二进制文件交叉编译到 armv7,但我似乎遇到了几个主要问题。
首先,我在 Xcode 5.0.1 上使用 SDK7.0。
在我的第一次配置中,我收到了几个“错误:在交叉编译时无法检查 X”
一旦我绕过了这个,我意识到程序正在寻找 Carbon(现在在 iOS SDK 文件中已弃用了很长时间。)
一旦我移动了旧的 SDK 文件,大量文件给出了关于未知类型的错误(来自 _types.h,以及所有相关的头文件),最值得注意的是 ssize 和 off_t。即使在修补了这些之后,我最终还是从 sdk 报告了“不受支持的架构”。
这是我的配置命令:
./configure '--with-programs=yes' '--without-spiro' '--with-x=no' '--enable-static' '--with-cairo=no' '--without-python' '--with-pango=no' '--prefix=/Users/thebertolet/fontforge-ios' '--host=arm-apple-darwin' 'CC=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc' 'CFLAGS=-mthumb -arch armv7 -miphoneos-version-min=5.1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/ -I/Users/thebertolet/freetype-ios/include/freetype2/ -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/include/libxml2/' 'LDFLAGS=-mthumb -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/ -miphoneos-version-min=5.1'
另请注意:所有必需的库都是必需的,并已报告给程序。我想我的具体问题是程序试图找到不存在或对 armv7 有点不可用的文件。
或者,有没有人知道打破 ttc 并结合 ttf 的好方法(除了 fontforge)?