qq_35366617
qq_35366617
采纳率0%
2016-08-04 11:22 阅读 1.3k

ubuntu14.04 编译 android5.1

#

A fatal error has been detected by the Java Runtime Environment:

#

SIGSEGV (0xb) at pc=0x00002b271a5b6c1e, pid=29366, tid=47447106537216

#

JRE version: OpenJDK Runtime Environment (7.0_101) (build 1.7.0_101-b00)

Java VM: OpenJDK 64-Bit Server VM (24.95-b01 mixed mode linux-amd64 compressed oops)

Derivative: IcedTea 2.6.6

Distribution: Ubuntu 14.04 LTS, package 7u101-2.6.6-0ubuntu0.14.04.1

Problematic frame:

V [libjvm.so+0x5b4c1e]

#

Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again

#

If you would like to submit a bug report, please include

instructions on how to reproduce the bug and visit:

http://icedtea.classpath.org/bugzilla

#

How to solve this problem,please help me !!! God bless you !

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

2条回答 默认 最新

  • devmiao devmiao 2016-08-04 11:30

    1、安装Ubuntu14.04

    先下载Ubuntu系统,官网地址,从ubuntu10.04-ubuntu15.04都有下载,具体根据需求可以下载desktop和server版本

    一般虚拟机建议安装desktop版本,方便管理,本人电脑是64位的,所以下载的ubuntu-14.04.2-server-amd64.iso

    安装ubuntu系统,其实很简单,网上也很多视图教程,用U盘安装时需要注意,我之前用UltraISO来制作系统,结果系统装不上,后面用win32diskimager-v0.8-binary.zip制作U盘才行,然后通过U盘启动就好了,其余步骤和VMware Workstation安装一样

    Windows 7下硬盘安装Ubuntu 14.10图文教程 http://www.linuxidc.com/Linux/2014-10/108430.htm

    2、安装Android5.1环境编译需要的相关包

    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 lib32z-dev libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc lib32readline-gplv2-dev

    3、安装openJDK

    sudo apt-get install default-jre

    sudo apt-get install default-jdk

    默认安装在usr/lib/jvm下,安装成功了,可以通过java -version进行查看,如要设为默认的,可进行如下步骤

    sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/java-1.7.0-openjdk-amd64/bin/java 300
    sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/java-1.7.0-openjdk-amd64/bin/javac 300
    sudo update-alternatives --config java

    设置环境变量(全局)

    sudo gedit /etc/profile

    export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-amd64
    export CLASSPATH=".:$JAVA_HOME/lib:$CLASSPATH"
    export PATH="$JAVA_HOME/bin:$PATH"

    sudo gedit /etc/environment添加相应的path路径

    4、解压kernel和android包

    kernel包解压:tar -zxvf ${customer_project}_KERNEL.tar.gz

    android包解压:

    ALPS.L1.MP8.V1_ELINK8163_TB_L1_INHOUSE.tar.gz00

    ALPS.L1.MP8.V1_ELINK8163_TB_L1_INHOUSE.tar.gz01....

    ALPS.L1.MP8.V1_ELINK8163_TB_L1_INHOUSE.tar.gz08

    解压可以通过:

    cat ${customer_project}_INHOUSE.tar.gz* | tar zxvf -

    或者先将上面的gz00-gz01压缩成一个包:终端运行命令如下

    cat (空格)

    ALPS.L1.MP8.V1_ELINK8163_TB_L1_INHOUSE.tar.gz00 (空格)

    ALPS.L1.MP8.V1_ELINK8163_TB_L1_INHOUSE.tar.gz01 (空格)

    ...

    ALPS.L1.MP8.V1_ELINK8163_TB_L1_INHOUSE.tar.gz08 (空格)

    ALPS.L1.MP8.V1_ELINK8163_TB_L1_INHOUSE.tar.gz

    这样就多了一个压缩包ALPS.L1.MP8.V1_ELINK8163_TB_L1_INHOUSE.tar.gz ,再通过解压命令 tar -zxvf 进行解压即可

    5、编译android

    编译命令:

    source build/envsetup.sh

    lunch

    make -j16 2>&1 | tee build.log

    Ubuntu 14.04 搭建Android开发环境 http://www.linuxidc.com/Linux/2014-05/101149.htm

    Ubuntu 14.04 x64配置Android 4.4 kitkat编译环境的方法 http://www.linuxidc.com/Linux/2014-05/101148.htm

    Ubuntu 12.04搭建Android开发环境 http://www.linuxidc.com/Linux/2012-09/69961.htm

    Ubuntu 14.04 配置 Android SDK 开发环境 http://www.linuxidc.com/Linux/2014-05/101039.htm

    64位Ubuntu 11.10下Android开发环境的搭建(JDK+Eclipse+ADT+Android SDK详细) http://www.linuxidc.com/Linux/2013-06/85303.htm

    Ubuntu 12.10 x64 安装 Android SDK http://www.linuxidc.com/Linux/2013-03/82005.htm

    更多Android相关信息见Android 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=11

    更多Ubuntu相关信息见Ubuntu 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=2

    点赞 评论 复制链接分享
  • CSDNXIAOS Robot-S 2016-08-04 11:37

    1、安装Ubuntu14.04
    先下载Ubuntu系统,官网地址,从ubuntu10.04-ubuntu15.04都有下载,具体根据需求可以下载desktop和server版本
    一般虚拟机建议安装desktop版本,方便管理,本人电脑是64位的,所以下载的ubuntu-14.04.2-server-amd64.iso
    安装ubuntu系统,其实很简单,网上也很多视图教程,用U盘安装时......
    答案就在这里:Ubuntu 14.04搭建Android5.1开发环境和编译
    ----------------------Hi,地球人,我是问答机器人小S,上面的内容就是我狂拽酷炫叼炸天的答案,除了赞同,你还有别的选择吗?

    点赞 评论 复制链接分享

相关推荐