Android源代码在Ubuntu 11.10上使用lib32ncurses5-dev,lib32readline5-dev等编译错误

时间:2011-10-25 12:24:27

标签: android

我已经从http://source.android.com/source/index.html下载了Android的源代码,现在我正在尝试构建它,但我发现了不同类型的库错误。虽然我完全遵循了那里的指示但是徒劳无功。你能帮我编译吗?我正在使用带有JDK 1.6的Ubuntu 11.10并安装所有列出的库。我已经下载了android-2.3.7_r1。

错误是:make: * [out / host / linux-x86 / obj / EXECUTABLES / adb_intermediates / adb]错误1

I am also unable to install these packages:
lib32ncurses5-dev ia32-libs 
lib32readline5-dev lib32z-dev 

I am getting error: 
Building dependency tree        
Reading state information... Done 
E: Unable to locate package lib32ncurses5-dev 
E: Unable to locate package ia32-libs 
E: Unable to locate package lib32readline5-dev 
E: Unable to locate package lib32z-dev

此致,

3 个答案:

答案 0 :(得分:1)

答案 1 :(得分:1)

我遇到了同样的问题,我从这里手动下载并安装了一些库:

https://launchpad.net/ubuntu/lucid/+package/lib32ncurses5-dev

https://launchpad.net/ubuntu/lucid/+package/lib32readline5-dev

如果您运行的是Ubuntu 32,我认为您不需要 ia32-libs lib32z-dev 如果您是虽然运行Ubuntu 64,你可能仍然需要它们。请确认此信息!

答案 2 :(得分:0)

你有没有运行这个命令?

$ sudo apt-get install git-core gnupg flex bison gperf build-essential \
  zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs \
  x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev \
  libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown \
  libxml2-utils

按照此页面上的所有说明操作? http://source.android.com/source/initializing.html