Android ndk 我需要帮助用gfortran构建android NDK工具链

Android ndk 我需要帮助用gfortran构建android NDK工具链,android-ndk,octave,gfortran,Android Ndk,Octave,Gfortran,我曾尝试根据Danilo的说法,使用gfortran编译器构建android NDK工具链。不幸的是,在操作系统Ubuntu14.04-64位下失败了。编译器提供的信息附在下面。我想从源代码中将倍频程移植到Android(ARM),需要一个fortran交叉编译器。非常感谢您对使用fortran的ndk或移植倍频程方法的任何想法 编译器信息: libtool:finish:PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:

我曾尝试根据Danilo的说法,使用gfortran编译器构建android NDK工具链。不幸的是,在操作系统Ubuntu14.04-64位下失败了。编译器提供的信息附在下面。我想从源代码中将倍频程移植到Android(ARM),需要一个fortran交叉编译器。非常感谢您对使用fortran的ndk或移植倍频程方法的任何想法

编译器信息:

libtool:finish:PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/local/MATLAB/R2013a/bin:/opt/AndroidDev/standalone-r10/bin:/opt/AndroidDev/android-ndk-r8c:/opt/AndroidDev/adt-bundle-linux-x86-20130917/sdk-kivy/tools:/sbin" ldconfig -n /tmp/ndk-aoyama/build/toolchain/temp-install/lib
Libraries have been installed in:
   /tmp/ndk-aoyama/build/toolchain/temp-install/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
make[4]: Leaving directory `/tmp/ndk-aoyama/build/toolchain/mpfr-3.0.1'
make[3]: Leaving directory `/tmp/ndk-aoyama/build/toolchain/mpfr-3.0.1'
make[2]: Leaving directory `/tmp/ndk-aoyama/build/toolchain/mpfr-3.0.1'
make[1]: Leaving directory `/tmp/ndk-aoyama/build/toolchain/mpfr-3.0.1'
([ -d mpc-1.0 ] || \
      mkdir mpc-1.0) && \
    ( \
     cd mpc-1.0 ; \
     error cannot find mpc-1.0/configure \
      '--enable-initfini-array' '--disable-nls' '--prefix=/tmp/ndk-aoyama/build/toolchain/prefix' '--with-sysroot=/tmp/ndk-aoyama/build/toolchain/prefix/sysroot' '--with-binutils-version=2.22.90' '--with-mpfr-version=3.0.1' '--with-mpc-version=1.0' '--with-gmp-version=5.0.5' '--with-gcc-version=4.8.0' '--with-gdb-version=7.4.1' '--with-gxx-include-dir=/tmp/ndk-aoyama/build/toolchain/prefix/include/c++/4.8.0' '--enable-languages=c,c++,fortran' '--disable-libgomp' '--disable-tls' '--disable-libitm' '--disable-libatomic' '--disable-bootstrap' '--disable-libquadmath' '--disable-libquadmath-support' '--disable-plugin' '--with-arch=armv5te' --program-transform-name='s,^,arm-linux-androideabi-,' --prefix=/tmp/ndk-aoyama/build/toolchain/temp-install --disable-shared --host=x86_64-linux-gnu --build=x86_64-linux-gnu --with-gmp=/tmp/ndk-aoyama/build/toolchain/temp-install --with-mpfr=/tmp/ndk-aoyama/build/toolchain/temp-install) && \
    touch stmp-config-host-mpc
/bin/sh: 5: error: not found
make: *** [stmp-config-host-mpc] Error 127
  [1]: http://danilogiulianelli.blogspot.com/2013/02/how-to-build-gcc-fortran-cross-compiler.html

很抱歉编辑不方便,如果您有任何建议,我们将不胜感激。

您是否查看过当前的[应用商店中的八度音阶][?它是由Corbin Champion编写的,他公开了所需的脚本和构建说明。有关详细信息,请参阅octave wiki页面上的。感谢您的评论。Corbin做得很好,而我需要的是Android octave的主库,以便我可以在基于ndk的程序中调用M文件。我已经尝试下载octave和它依赖于CORBIN脚本从ARM Debian中分离出来,然后将C++对象文件与这些LIBs链接起来。不幸的是……我被告知一些未定义的引用发生了。所以我想手动构建八度体,需要使用GoFrTRAN的工具链。