1

我正在尝试为opencore-amr项目编译一个静态库以在 ios 中使用。我的设置是 Xcode4.2 / iOS5 sdk(因为我还在运行 Snow Leopard)。我已调整此处附加的构建脚本以使用 -isysroot 而不是 --sysroot,并将 SDK var 更新为 /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk

此时在配置检查中失败:

checking how to run the C preprocessor... /lib/cpp
configure: error: in `/Users/ldwong/Documents/xcode/opencore-amr-0.1.3':
configure: error: C preprocessor "/lib/cpp" fails sanity check

根据我的 config.log,此检查过程中的第一个失败是查找 limits.h:

configure:7965: checking how to run the C preprocessor
configure:7996: gcc -arch armv6 -isysroot=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk -E  conftest.c
In file included from conftest.c:12:
/Developer/Platforms/iPhoneOS.platform/Developer/usr/llvm-gcc-4.2/bin/../lib/gcc/arm-apple-darwin10/4.2.1/include/limits.h:15:25: error: no include path in which to search for limits.h
configure:7996: $? = 1
configure: failed program was:
...

再往下,它也无法使用以下命令找到 assert.h:

configure:7996: gcc -arch armv6 -isysroot=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk -E -traditional-cpp  conftest.c
conftest.c:14: error: assert.h: No such file or directory

谁能指出我错过了什么或做错了什么?谢谢!

4

0 回答 0