android 7.1源码编译 出错

以下是shell上的打印

 Starting build with ninja                                                                                                                                                                       [476/5393]
ninja: Entering directory `.'
[  1% 8/468] target Executable: dexdump (out/target/product/px3/obj/EXECUTABLES/dexdump_intermediates/LINKED/dexdump)
FAILED: /bin/bash -c "prebuilts/clang/host/linux-x86/clang-2690385/bin/clang++ -pie -nostdlib -Bdynamic -Wl,-dynamic-linker,/system/bin/linker -Wl,--gc-sections -Wl,-z,nocopyreloc  -Lout/target/product/
px3/obj/lib -Wl,-rpath-link=out/target/product/px3/obj/lib out/target/product/px3/obj/lib/crtbegin_dynamic.o      out/target/product/px3/obj/EXECUTABLES/dexdump_intermediates/DexDump.o               -Wl
,--whole-archive   -Wl,--no-whole-archive   out/target/product/px3/obj/STATIC_LIBRARIES/libdex_intermediates/libdex.a out/target/product/px3/obj/STATIC_LIBRARIES/libbase_intermediates/libbase.a out/targ
et/product/px3/obj/STATIC_LIBRARIES/libunwind_llvm_intermediates/libunwind_llvm.a out/target/product/px3/obj/STATIC_LIBRARIES/libcompiler_rt-extras_intermediates/libcompiler_rt-extras.a   prebuilts/gcc/
linux-x86/arm/arm-linux-androideabi-4.9/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/lib/armv7-a/libatomic.a prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/../li
b/gcc/arm-linux-androideabi/4.9/armv7-a/libgcc.a -lz -llog -lutils -lc++ -ldl -lc -lm  -o out/target/product/px3/obj/EXECUTABLES/dexdump_intermediates/LINKED/dexdump   -Wl,-z,noexecstack -Wl,-z,relro -W
l,-z,now -Wl,--build-id=md5 -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--icf=safe -Wl,--hash-style=gnu -Wl,--no-undefined-version -Wl,--fix-cortex-a8    -target arm-linux-androideabi -Bprebuilts
/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin   -Wl,--exclude-libs,libunwind_llvm.a -Wl,--no-undefined out/target/product/px3/obj/lib/crtend_android.o"
dalvik/dexdump/DexDump.cpp:517: error: undefined reference to 'dexReadAndVerifyClassData(unsigned char const**, unsigned char const*)'
dalvik/dexdump/DexDump.cpp:627: error: undefined reference to 'dexDecodeDebugInfo(DexFile const*, DexCode const*, char const*, unsigned int, unsigned int, int (*)(void*, unsigned int, unsigned int), voi
d (*)(void*, unsigned short, unsigned int, unsigned int, char const*, char const*, char const*), void*)'
dalvik/dexdump/DexDump.cpp:653: error: undefined reference to 'dexDecodeDebugInfo(DexFile const*, DexCode const*, char const*, unsigned int, unsigned int, int (*)(void*, unsigned int, unsigned int), voi
d (*)(void*, unsigned short, unsigned int, unsigned int, char const*, char const*, char const*), void*)'
dalvik/libdex/DexProto.h:143: error: undefined reference to 'dexProtoCopyMethodDescriptor(DexProto const*)'
dalvik/dexdump/DexDump.cpp:890: error: undefined reference to 'dexGetOpcodeName(Opcode)'
dalvik/dexdump/DexDump.cpp:1055: error: undefined reference to 'gDexOpcodeInfo'
dalvik/dexdump/DexDump.cpp:845: error: undefined reference to 'gDexOpcodeInfo'
dalvik/dexdump/DexDump.cpp:1120: error: undefined reference to 'dexDecodeInstruction(unsigned short const*, DecodedInstruction*)'
dalvik/dexdump/DexDump.cpp:1128: error: undefined reference to 'gDexOpcodeInfo'
dalvik/libdex/DexProto.h:143: error: undefined reference to 'dexProtoCopyMethodDescriptor(DexProto const*)'
dalvik/dexdump/DexDump.cpp:1388: error: undefined reference to 'dexReadAndVerifyClassData(unsigned char const**, unsigned char const*)'
dalvik/dexdump/DexDump.cpp:1704: error: undefined reference to 'dexReadAndVerifyClassData(unsigned char const**, unsigned char const*)'
dalvik/dexdump/DexDump.cpp:1795: error: undefined reference to 'dexOpenAndMap(char const*, char const*, MemMapping*, bool)'
dalvik/dexdump/DexDump.cpp:1804: error: undefined reference to 'dexFileParse(unsigned char const*, unsigned int, int)'
dalvik/dexdump/DexDump.cpp:1820: error: undefined reference to 'sysReleaseShmem(MemMapping*)'
dalvik/dexdump/DexDump.cpp:1822: error: undefined reference to 'dexFileFree(DexFile*)'
dalvik/dexdump/DexDump.cpp:1820: error: undefined reference to 'sysReleaseShmem(MemMapping*)'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
[  1% 8/468] Ensure Jack server is installed and started
Jack server already installed in "/home2/hxw/.jack-server"
Server is already running

我已经试过改了jack的服务端口了
.jack
.jack-setting
.jack-server/config.properties
里面的地址都改了还是不行

据说不是jack的问题,
jack错误只是编译错误引起的。

在网上搜 DexDump都只能搜到一些教怎么单独编译之类的教程

没找到有类似错误的


 最后删掉

 \dalvik\libdex
我把这个目录删了又更新出来了一遍
但是好像没什么不同 

再编译一遍就过了

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值