How to find/install -lncurses for compiling android under ubuntu 11.04 64 bits

1,992 views
Skip to first unread message

yin...@gmail.com

unread,
May 14, 2011, 11:34:48 PM5/14/11
to android-...@googlegroups.com
Hi,

I am trying to compile android under ubuntu 11.04 64 bits. But i am getting an incompatible error:
Can you please tell me how can I can get/install an incompatible error for compiling andriod undedr 11.04 64bits?

host Executable: adb (out/host/linux-x86/obj/EXECUTABLES/adb_intermediates/adb)
/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
collect2: ld returned 1 exit status
make: *** [out/host/linux-x86/obj/EXECUTABLES/adb_intermediates/adb] Error 1
make: *** Waiting for unfinished jobs....

Jean-Baptiste Queru

unread,
May 16, 2011, 11:17:48 AM5/16/11
to android-...@googlegroups.com
Possibly "sudo apt-get install lib32ncurses5-dev"

JBQ

> --
> You received this message because you are subscribed to the "Android
> Building" mailing list.
> To post to this group, send email to android-...@googlegroups.com
> To unsubscribe from this group, send email to
> android-buildi...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en
>

--
Jean-Baptiste M. "JBQ" Queru
Software Engineer, Android Open-Source Project, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

Abeng

unread,
May 15, 2011, 3:16:24 PM5/15/11
to Android Building
sudo apt-get install lib32ncurses5-dev and start over. Got a similar
error last night but after installing lib32ncurses5-dev, which seems
to install one moment and not another, compiled like a charm.

Shankar Athinarayanan

unread,
May 15, 2011, 8:21:55 PM5/15/11
to Android Building
Hi, did you do this step:

To set up your development environment, install the following required
packages:

$ 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
For building Froyo or an older release on a 64-bit system, several
other packages are necessary to establish a 32-bit build environment:

$ sudo apt-get install gcc-multilib g++-multilib libc6-i386 libc6-dev-
i386

It should work after you do that.

On May 14, 11:34 pm, "ying...@gmail.com" <ying...@gmail.com> wrote:

Shankar Athinarayanan

unread,
May 15, 2011, 4:32:11 PM5/15/11
to Android Building
Hey,

did you do this step?

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



On May 14, 11:34 pm, "ying...@gmail.com" <ying...@gmail.com> wrote:

Jean-Baptiste Queru

unread,
May 16, 2011, 11:38:50 AM5/16/11
to android-...@googlegroups.com
Thanks to everyone who stepped in, sorry that we all ended up writing
redundant replies. I did a moderation pass during the week-end but
didn't have time to actually reply to the messages that I had
moderated.

JBQ

Shankar Athinarayanan

unread,
May 19, 2011, 6:36:40 PM5/19/11
to Android Building
Hi,

No problem, happy to help whenever I can :)
Reply all
Reply to author
Forward
0 new messages