1./bin/bash: prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc: No such file or directory
解决办法:
下载安装必须的软件:
sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils
xsltproc
2./bin/bash: jar: command not found
解决办法:
cd /usr/bin
必须先进入/usr/bin,下同
sudo ln -s -f /usr/lib/jvm/jdk1.6.0_30/bin/jar
我的jdk是安装在/usr/lib/jvm/jdk1.6.0_30/目录下的
如果提示javah:commond not found,于是照葫芦画瓢,输入命令
cd /usr/bin
ln -s -f /usr/lib/jvm/jdk1.6.0_30/bin/javah
3.make: *** [out/target/common/docs/doc-comment-check-timestamp] Error 45
解决办法:
这是由于clearsilver在编译时如果检测到使用Java JDK 6,就使用64位编译。要避开此错误,需要修改下面四个文件:
- external/clearsilver/cgi/Android.mk
- external/clearsilver/java-jni/Android.mk
- external/clearsilver/util/Android.mk
- external/clearsilver/cs/Android.mk
把这四个Makefile中的下列语句注掉即可:
# This forces a 64-bit build for Java6# Comment by# LOCAL_CFLAGS += -m64# LOCAL_LDFLAGS += -m64
然后在external/clearsilver目录中执行一 下make clean,然后回到项目根目录,继续 make即可。
当编译完成时,生成的image文件放在out/target/product/generic目 录中。