主题 : 编译android-4.2.2出错(Tiny4412) 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 99368
精华: 0
发帖: 9
金钱: 45 两
威望: 9 点
综合积分: 18 分
注册时间: 2013-12-27
最后登录: 2014-01-08
楼主  发表于: 2013-12-27 11:46

 编译android-4.2.2出错(Tiny4412)

请问版主和各位高手,按照友善的Tiny4412手册上的方法将ubuntu-12.04.3-desktop-amd64.iso安装到虚拟机上能用吗?我按手册上的方法,安装到虚拟机上,编译内核没问题,但编译android-4.2.2_r1-fs-20131202.tar.gz时报如下错误:
out/host/linux-x86/bin/acp: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
make: *** [out/host/linux-x86/framework/guavalib.jar] Error 127
,请问这个问题该怎么解决呢?谢谢
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2013-12-27 12:19
out/host/linux-x86/bin/acp: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

你试过用"sudo apt-get install libstdc++6:i386"吗?
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 99368
精华: 0
发帖: 9
金钱: 45 两
威望: 9 点
综合积分: 18 分
注册时间: 2013-12-27
最后登录: 2014-01-08
2楼  发表于: 2013-12-27 12:52

 回 1楼(kasim) 的帖子

嗯嗯,谢谢斑主的回复,可以编译了。我之前试过sudo apt-get install libstdc++6不成功,原来需要在后面加个:i386。请问为什么需要加这个呢?
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2013-12-27 15:47

 回 2楼(tanhuqiang) 的帖子

因为out/host/linux-x86/bin/acp是32位的执行档,需要链接32位的库。在64位Ubuntu上"sudo apt-get install libstdc++6"等同于"sudo apt-get install libstdc++6:amd64"
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."