android 4.0.3编译错误

ubuntu 11.10 64位 gcc、g++版本均为4.4.6

1、

host Executable: adb (out/host/linux-x86/obj/EXECUTABLES/adb_intermediates/adb)

/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.6/../../../libtinfo.so when searching for -ltinfo
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.6/../../../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 -ltinfo
collect2: ld 返回 1
make: *** [out/host/linux-x86/obj/EXECUTABLES/adb_intermediates/adb] 错误 1

原因:

XXX@XXX:/$ file /lib/libtinfo.so.5.9 
/lib/libtinfo.so.5.9: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, stripped
XXX@XXX:/$ file /lib32/libtinfo.so.5.9 
/lib32/libtinfo.so.5.9: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, stripped

解决:在/lib32/

ln -sf /lib32/libtinfo.so.5 libtinfo.so

你可能感兴趣的:(android 4.0.3编译错误)