Library problems (solved) encountered when compiling Android code with Ubuntux86_64-bit)

Source: Internet
Author: User
First, Zookeeper will encounter the following zookeeper make at the beginning: * ** [out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl] Error1/usr/bin/ld: skippingincompatible/usr/lib/gcc/x86_64-linux-gnu/4.2.4/libstdc ++. sowhensearching

First, generally, Zookeeper will encounter the following zookeeper at the beginning.

Make: *** [out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl]

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

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

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

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

/Usr/bin/ld: cannot find-lstdc ++ collect2: ld returned 1 exit status

It cannot find libstdc ++. The solution is to install the following package:

Apt-get install g ++-multilib

Next I encountered the same problem:

-O-out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/aapt-lz-lrt

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

/Usr/bin/ld: skipping incompatible/usr/lib/gcc/x86_64-linux-gnu/4.3.2/.../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 collect2: ld returned 1 exit status

Make: *** [out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/aapt] Error 1

It cannot find libz, and the solution is to install the following suite

Apt-get install lib32z1-dev

 


Next,

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

/Usr/bin/ld: skipping incompatible/usr/lib/gcc/x86_64-linux-gnu/4.4.1/.../../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

Collect2: ld returned 1 exit status

Make: *** [out/host/linux-x86/obj/EXECUTABLES/adb_intermediates/adb] Error 1

Apt-get install lib32ncurses5-dev

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.