我正在尝试freetype2
使用 OSX 中的 Xcode 命令行工具为 arm7 编译库。我正在使用项目configure
脚本的以下参数化:
运行脚本时产生了这些错误:
配置:3426:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -E conftest.c 在 conftest.c:10 中包含的文件中:/Applications/Xcode.app/内容/Developer/Platforms/iPhoneOS.platform/Developer/usr/llvm-gcc-4.2/bin/../lib/gcc/i686-apple-darwin10/4.2.1/include/limits.h:15:25:错误:limits.h: 没有这样的文件或目录
配置:3426:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -E -traditional-cpp conftest.c conftest.c:12:错误:assert.h:否这样的文件或目录
配置:3426:/lib/cpp conftest.c /Volumes/DATA/filestore/development/libs/c/freetype2/extract/2.5.3/builds/unix/configure:第 1600 行:/lib/cpp:没有这样的文件或目录
配置:3465:结果:/lib/cpp 配置:3485:/lib/cpp conftest.c /Volumes/DATA/filestore/development/libs/c/freetype2/extract/2.5.3/builds/unix/configure:第 1600 行: /lib/cpp: 没有这样的文件或目录
我可以看到错误消息中的目录输出中确实存在丢失的文件。
CFLAGS
并LDFLAGS
包含以下参数,该参数应允许包含系统头文件:
-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/
我注意到这些错误消息的另一件奇怪的事情是目录结构中的体系结构标识符是i686-apple-darwin10
. -arch armv7
正在使用编译器标志,那么为什么要i686-apple-darwin10
检查目录呢?
* 更新 *
我还尝试configure
按照另一个示例对脚本进行参数化:
https://stackoverflow.com/a/12594507/1704014
以下错误终止了其执行:
检查本机可执行文件的后缀... ld:未找到 -lcrt1.10.6.o collect2 的库:ld 返回 1 退出状态配置:错误:本机 C 编译器不工作
这也表明正在构建不同的目标架构(OSX 10.6),而不是 arm7。
非常感谢任何帮助。