【问题标题】:Build AOSP 5.1 for Sony Xperia Z1 fail为 Sony Xperia Z1 构建 AOSP 5.1 失败
【发布时间】:2017-06-09 07:30:37
【问题描述】:

我多次尝试构建 AOSP,但我从未以成功的语句结束它。我的主机PC是虚拟机Ubuntu 16.04 我还尝试了不同版本的 AOSP 6.0、6.1、5.0,但都失败了。 这是部分问题的屏幕。 http://imgur.com/a/WrvFQ

【问题讨论】:

    标签: android build android-source sony-xperia


    【解决方案1】:

    好的。可能我描述的不太对。 现在最新消息是:

    ...
    libnativehelper/JniConstants.cpp:140: error: unsupported reloc 43
    libnativehelper/toStringArray.cpp:21: error: unsupported reloc 43
    libnativehelper/toStringArray.cpp:21: error: unsupported reloc 43
    ...
    libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43
    clang: error: linker command failed with error 1
    build/core/host_shared_library_internal.mk:44 recipe for target out/host/linux-x86/obj32/lib/libnativehelper.so failed
    
    ### make failed with build some targets 
    

    【讨论】:

      【解决方案2】:

      试试这个:

      cp /usr/bin/ld.gold prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6/x86_64-linux/bin/ld
      

      在这里找到解决方案: Building Android from sources: unsupported reloc 43

      它对我有用

      【讨论】:

      • 用你的替换文件位置。名字很相似,只是版本不一样。在该位置替换您的版本。
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-11-16
      • 2013-11-18
      • 2022-01-03
      • 1970-01-01
      • 2023-03-29
      • 2018-06-09
      相关资源
      最近更新 更多