技术开发 频道

Android 内核编绎错误解决方案

  【IT168 方案】

  错误1:

  /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory

  解决:

  sudo apt-get install libc6-dev-i386

  错误2:

  host Executable: acp (out/host/linux -x86/obj/EXECUTABLES/acp_intermediates/acp)

  /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/libstdc++.so when searching for -lstdc++

  /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/libstdc++.a when searching for -lstdc++

  /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/libstdc++.so when searching for -lstdc++

  /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/libstdc++.a when searching for -lstdc++

  解决:

  sudo apt-get install g++-multilib

  错误3:

  /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../libz.so when searching for -lz

  /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../libz.a when searching for -lz

  /usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz

  /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz

  /usr/bin/ld: cannot find -lz

  解决:

  sudo apt-get install lib32z1-dev

  错误4:

  /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../libncurses.so when searching for -lncurses

  /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../libncurses.a when searching for -lncurses

  /usr/bin/ld: skipping incompatible /usr/lib/libncurses.so when searching for -lncurses

  /usr/bin/ld: skipping incompatible /usr/lib/libncurses.a when searching for -lncurses

  /usr/bin/ld: cannot find -lncurses

  解决:

  sudo apt-get install lib32ncurses5-dev

  错误5:

  In file included from external/qemu/Android /skin/window.c:19:

  prebuilt/linux-x86/sdl/include/SDL/SDL_syswm.h:55:22: error: X11/Xlib.h: 没有那个文件或目录

  prebuilt/linux-x86/sdl/include/SDL/SDL_syswm.h:56:23: error: X11/Xatom.h: 没有那个文件或目录

  解决:

  sudo apt-get install libx11-dev

0
相关文章