"Turn" cannot find-ltinfo when compiling Android 4.0.3

Source: Internet
Author: User

Original URL: http://stackoverflow.com/questions/9055005/cannot-find-ltinfo-when-compiling-android-4-0-3

Up vote0down Votefavorite

Hi I had got a problem that I can ' t solve when compiling the Android source for ICS. The build gets to a certain stage and then I get the message:

/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../libtinfo.so when searching for -ltinfo/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../libtinfo.a when searching for -ltinfo/usr/bin/ld: skipping incompatible /usr/lib/libtinfo.so when searching for -ltinfo/usr/bin/ld: skipping incompatible /usr/lib/libtinfo.a when searching for -ltinfo/usr/bin/ld: cannot find -ltinfocollect2: ld returned 1 exit statusmake: *** [out/host/linux-x86/obj/EXECUTABLES/adb_intermediates/adb] Error 1make: *** Waiting for unfinished jobs....

I have tried updating/installing Libncurses5-dev and Libtinfo-dev which were both latest versions and am a bit stuck now. How can I get rid of this to allow the build to happen properly?

Android Build Compiler-errors
ShareImprove this question Edited Jan at 8:41Jav_rock
13.3k121
Asked Jan ' at 17:10fooforever
25
Add a Comment
3 answersactiveoldestvotes
up vote2down voteaccepted

I had seen similar issue with Gingerbread when compiled on 64bit Ubuntu. It got fixed with installation of Lib32ncurses5-dev and its dependencies which includes Lib32tinfo5-dev. The compiled host ADB executable with Android is a 32-bit executable.

answered  Feb 3 ' at 13:10 vimalesh
361
shareimprove this answer
 
    
this has sorted it, THANKS. –&N Bsp; fooforever feb 6 ' at 12:25
Add a comment
up vote2down vote

I had seen same problem on my Fedora 64bit, same Android branch 4.0.3 R1 you might want to try Ncurses -devel.i686 Yum Install ncurses-devel.i686

It solved my problem

shareimprove this answer answered jul 9 ' at 19:35 Yi Zhang
21 3
  Add a comment
Up vote1down vote

I got this issue while I am building MySQL statically. So I had to install the static versions of these libraries. For example I do run:

yum search ncurses

Then I installed,

yum install ncurses-static # not exactly the same syntax, but something similar; see searc

"Turn" cannot find-ltinfo when compiling Android 4.0.3

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.