您的位置:首页 > 移动开发 > Android开发

ubuntu14.04编译Tiny210 android文件系统

2015-07-20 23:50 573 查看
bash: xxx 没有那个目录或文件

经常在ubuntu 64位下运行 ./xxx 会跳出来说没有这个文件或者目录,但是ls看又有这个文件,很是奇怪。

其实原因很简单,是因为他没有32位的运行库 ia32-libs 会出这种八杆子打不着的奇怪提示。

直接安装即可。

apt-get install ia32-libs



vi frameworks/base/libs/utils/Android.mk

Add ‘-fpermissive’to line 64:

LOCAL_CFLAGS += -DLIBUTILS_NATIVE=1 $(TOOL_CFLAGS) –fpermissive

vi frameworks/base/tools/aapt/Android.mk

Add ‘-fpermissive’to line 31:

LOCAL_CFLAGS +=-Wno-format-y2k –fpermissive

Can’t locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at external/webkit/Source/WebCore/make-hash-tools.pl line 23.

BEGIN failed–compilation aborted at external/webkit/Source/WebCore/make-hash-tools.pl line 23.

make: * [out/target/product/mx3/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/html/DocTypeStrings.cpp] Error 2

make: * Waiting for unfinished jobs….

make: * [out/target/product/mx3/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/platform/ColorData.cpp] Error 2

target Generated: libwebcore <= external/webkit/Source/WebCore/html/parser/HTMLEntityNames.in

解决办法:安装perl的switch库

sudo apt-get install libswitch-perl

make: * [out/target/common/obj/APPS/android.core.tests.libcore.package.libcore.no-core-tests-res_intermediates/noproguard.classes-with-local.dex] 已杀死

make: * 正在等待未完成的任务….

make: * [out/target/common/obj/APPS/android.core.tests.libcore.package.org.no-core-tests-res_intermediates/noproguard.classes-with-local.dex] 已杀死

www.armbbs.net/forum.php?mod=viewthread&tid=14302&page=1&from=space

解决办法:把build-android.sh文件里的make -j4改为make

g++: error trying to exec ‘cc1plus’: execvp: 没有那个文件或目录

这个错误可能和g++安装不完整有关。

安装gcc和g++编译相关

在安装gcc的时候会提示:建议安装以下,然后就把以下给安装了

gcc-4.4-multilib gcc-4.4-doc gcc-4.4-locales libgcc1-dbg libgomp1-dbg libcloog-ppl1 libppl-c4 libppl13

在安装g++的时候会提示:建议安装以下,然后就把以下给安装了。

g++-4.4-multilib gcc-4.4-doc libstdc++6-4.4-dbg libstdc++6-4.4-doc

有一篇关于android4.0.4编译情况的介绍可以参考一下:

/article/1440651.html

/article/1608551.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: