我的一个朋友问我是否可以将Octave项目移植到iPhone上。我以前没有为iPhone项目编译过外部包,所以我下载了源代码,然后使用在几个不同网站(one、two)上找到的一些脚本来尝试并构建这些库。但是,当我尝试这两个脚本中的任何一个(它们几乎相同)时,它们最终在configure阶段终止,并显示以下错误输出:
[...snip checks...]
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking how to get verbose linking output from ... configure: WARNING: compilation failed
checking for Fortran 77 libraries of ... rm: conftest.dSYM: is a directory
checking for dummy main to link with Fortran 77 libraries... rm: conftest.dSYM: is a directory
none
checking for Fortran 77 name-mangling scheme... configure: error: cannot compile a simple Fortran program
See `config.log' for more details.是Fortran /Xcode没有包含iPhone交叉编译器的问题,还是我做错了什么?
发布于 2009-09-10 08:17:54
FORTRAN不包含iPhone编译器。Apple的上一个FORTRAN产品是为Apple ][,尽管第三方和/或开源编译器已经存在于Apple构建的大多数系统中。
您可以配置和构建gfortran,但这将是一个PITA。您可能需要合并在iPhone here下找到的苹果定制的GCC 4.2分支的更改,以及为达尔文构建它的秘诀,如this。
您可以按照Octave项目的建议尝试f2c。
https://stackoverflow.com/questions/1402675
复制相似问题