Android NDK make-standalone-toolchain因mips而失败

时间:2014-10-10 15:01:36

标签: android-ndk mips

我正在运行make-standalone-toolchain.sh以使用以下命令为mips架构创建工具链:

./build/tools/make-standalone-toolchain.sh
    --platform=android-L
    --toolchain=mipsel-linux-android-4.9
    --abis=mips
    --system=darwin-x86_64
    --install_dir=/tmp/toolchain/mips

这会出现以下错误:

ERROR: Cant' copy from non-directory: ./sources/cxx-stl/gnu-libstdc++/4.9/libs/mips/lib

我已将问题缩小到make-standalone-toolchain.sh中的以下几行:

705:  mips)
706:      if [ "$STL" = "gnustl" -a "$GCC_VERSION" == "4.9" ]; then
707:          copy_stl_libs mips         "bits"                "bits"             "../lib"       "lib"
708:          copy_stl_libs mips         "mips-r2/bits"        "mips-r2/bits"     "../libr2"     "libr2"
709:          copy_stl_libs mips         "mips-r6/bits"        "mips-r6/bits"     "../libr6"     "libr6"
710:      else
711:          copy_stl_libs mips         "bits"                "bits"
712:      fi
713:      ;;

问题是我们进入了'然后' case,它试图复制一些不存在的文件夹。当我修改make-standalone-toolchain.sh并强制它执行' else'相反,整个过程工作正常,工具链可以按预期使用。

我是否遗失了一个标志以避免错误,或者这是make-standalone-toolchain.sh的错误?

1 个答案:

答案 0 :(得分:0)

这是NDK的一个问题,已经解决并添加到下一个版本中。

Here is the Android Issue

相关问题