关闭

chromium android 编译

930人阅读 评论(0) 收藏 举报

环境  ubuntu 12.04 X64

         memory 8G

在chromium的官方网站下载chromium,在sun官方网站下载jdk6

1  mkdir /usr/lib/jvm
2  cd /usr/lib/jvm && sudo /bin/sh /home/liuhj/chrome/jdk-6u38-linux-x64.bin -noregister
3  update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.6.0_38/bin/javac 1

    update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.6.0_38/bin/java 1

    update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.6.0_38/bin/javaws 1

    update-alternatives --install /usr/bin/jar jar /usr/lib/jvm/jdk1.6.0_38/bin/jar 1

    update-alternatives --config javac

    update-alternatives --config java

    update-alternatives --config javaws

    update-alternatives --config jar
4 apt-get install git
5 apt-get install subversion
6 apt-get install libnss3-dev libgconf2-dev
7 apt-get install libgcrypt-dev
8 apt-get install libgnome-keyring-dev
9 apt-get install libudev-dev
10 apt-get install libpulse-dev
11 apt-get install libcupsys2-dev
12 apt-get install aptitude
13 aptitude install gconf2 libgconf2-dev
14 apt-get install build-essential
15 apt-get install gcc-4.4 g++-4.4
16 apt-get install bison fakeroot flex g++ g++-multilib gperf
17 apt-get install libgtk2.0-dev
18 apt-get install libpci-dev
19 apt-get install libc6-dev:i386 build-essential gcc-multilib
20 gclient runhooks
21 cd $SRC/build
22 sudo ./install-build-deps-android.sh
23 vim ~/.bashrc
  
   export JAVA_HOME=/usr/lib/jvm/java1.7.0_07
   export JRE_HOME=${JAVA_HOME}/jre
   export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
   export PATH=${JAVA_HOME}/bin:$PATH

   source ~/.bashrc

24 . build/android/envsetup.sh
25 android_gyp
26 ninja -C out/Release -j10 content_shell_apk

参考网址:
http://blog.csdn.net/wangbole/article/details/9080295


0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:122509次
    • 积分:1706
    • 等级:
    • 排名:千里之外
    • 原创:41篇
    • 转载:59篇
    • 译文:0篇
    • 评论:9条
    文章分类
    最新评论