Centos7 编译 android4.4

1.安装jdk,比如:jdk1.6.0_45,将jdk1.6.0_45.bin解压到/root/bin/jdk1.6.0_45  (注:root用户的home就是/root下)

JAVA_HOME=/root/bin/jdk1.6.0_45
export JRE_HOME=$JAVA_HOME/jre 
export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH   
export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH

2. 安装依赖库:

sudo yum install gcc gcc-c++ gperf flex bison glibc-devel zlib-devel ncurses-devel libsx-devel readline-devel perl-Switch bc zip curl git-core

sudo yum install  ncurses-devel readline-devel zlib-devel libX11-devel xorg-x11-proto-devel libuuid-devel uuid uuid-devel libsx-devel

 

3.再根据情况安装缺失模块,如:

 ld-linux.so.2
    yum whatprovides ld-linux.so.2

 libz.so.1
     yum whatprovides  libz.so.1

 libstdc++.so.6

  yum whatprovides libstdc++.so.6 

 

posted @ 2015-06-14 23:56  linuxkid  阅读(583)  评论(0编辑  收藏  举报