现在我只想在iOS上使用FFTW3,因为我已成功将其编译成iOS模拟器使用的i386版本,其余的工作是将它们编译成armv6(或v7)版本并将这两个版本组合在一起,下面是我的错误配置:
./configure CC = / Developer / Platforms / iPhoneOS.platform / Developer / usr / bin / arm-apple-darwin10-gcc-4.2.1 LD = / Developer / Platforms / iPhoneOS.platform / Developer / usr / bin / ld CCFLAGS =“ - I /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk/usr/lib/gcc/arm-apple-darwin10/4.2.1/include/ -I / Developer / Platforms / iPhoneOS .platform / Developer / SDKs / iPhoneOS4.2.sdk / usr / include / -miphoneos-version-min = 2.2 -arch armv6 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk"LDFLAGS =“ - arch armv6 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk”--enable-float --host = arm-apple-darwin --build = arm-apple-darwin10 - -disable-FORTRAN
当使用它来构建fftw3时,我总是得到这个:
检查与BSD兼容的安装... / usr / bin / install -c检查构建环境是否正常...是检查arm-apple-darwin-strip ...没有检查strip ... strip configure:警告:使用不带主机三元组检查的交叉工具检查线程安全的mkdir -p ... ./install-sh -c -d检查gawk ...没有检查mawk ...没有检查nawk .. . 不检查awk ... awk检查是否make sets $(MAKE)...是检查是否启用Makefile的维护者特定部分...没有检查构建系统类型... arm-apple-darwin10检查主机系统键入... arm-apple-darwin检查arm-apple-darwin-gcc ... /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-gcc-4.2.1检查是否C编译器工作...没有配置:错误:在 /Users/chencyz/Desktop/Development/Misc/fftw3/fftw-3.3': configure: error: C compiler cannot create executables See config.log'中获取更多详细信息
我不太清楚这个问题(C编译器无法正常工作?),任何人都可以给我一些指南,非常感谢!