android 编译问题

先安装必须的软件和库程序:
sudo-s
apt-getupdate
apt-getinstall git-core gnupg   flex bison gperflibsdl-dev libesd0-dev   build-essential zip curllibncurses5-dev zlib1g-dev
然后将cn99软件源添加到更新源,继续:
apt-getinstall sun-java6-jdk  libwxgtk2.6-dev
下载源码:
$ mkdir mydroid 
$ cd mydroid 
$ curlhttp://android.git.kernel.org/repo >./repo
$ repo init -ugit://android.git.kernel.org/platform/manifest.git
$ repo sync 
编译源码:
$ make

会遇到的问题目前是:
权限不够遇到多次
/bin/bash: prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc: 权限不够
/bin/bash: prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc: 权限不够
/bin/bash: build/core/find-jdk-tools-jar.sh: 权限不够
/bin/bash: build/tools/findleaves.py: 权限不够
/bin/bash: build/tools/findleaves.py: 权限不够
Checking API: checkapi-last
/bin/bash: out/host/linux-x86/bin/apicheck: 权限不够

解决:
chmod a+x prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc
对所有没有权限的文件增加可执行权限



apt-get install libc6-dev-i386
apt-get install libstdc++6-4.4-dev



记录下来

你可能感兴趣的:(android 编译问题)