zoukankan      html  css  js  c++  java
  • 编译android源码四(常见错误)

    运行如下命令:

    $ emulator

    1.错误信息: emulator: WARNING: system partition size adjusted to match image file (205 MB > 200 MB)

    解决方法: emulator -partition-size 300


    2. 错误信息:  SDL init failure, reason is: No available video device

    2.1 安装 libsdl1.2debian:i386.

    • I added the site http://archive.canonical.com/ to the list of repositories.

    • I updated the apt-get.

    • I installed the libsdl1.2debian:i386.

    sudo apt-add-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner"    
    sudo apt-get update    
    sudo apt-get install libsdl1.2debian:i386

    问题原址: http://stackoverflow.com/questions/12709719/sdl-init-failure-reason-is-no-available-video-device-in-ubuntu-12-04-lts

    2.2安装
    sudo apt-get install ia322stdc++6b32

    问题原址:http://stackoverflow.com/questions/4841908/sdl-init-failure-reason-is-no-available-video-device

    用2.1 或者2.2 的方法试试。  

    本人的就是试过上面所有的方法成功了


    出现上面错误的原因,有可能是:

    from Android emulator on a Unix/Linux platform, this typically indicates your shell's DISPLAY variable is not pointing to the correct X11 Display. Try launching the Android emulator as shown below. You may add your own parameters as needed as long the DISPLAY=:0 is there.
    问题原址
    http://babilonline.blogspot.tw/2012/06/android-emulator-gives-sdl-init-failure.html


    解决方法:  DISPLAY=:0 emulator 


    3.错误信息: emulator: WARNING: system partition size adjusted to match image file (205 MB > 200 MB)

    SDL init failure, reason is: No available video device

    解决方法: DISPLAY=:0 emulator -partition-size 300



  • 相关阅读:
    Angular Material Starter App
    缺少标识符、字符串或数字
    jquery ajax post 传递数组 ,多checkbox 取值
    Circular dependencies cannot exist in RelativeLayout
    第二次作业
    第一次作业
    第一次作业
    软工实践个人总结
    第01组 Beta版本演示
    第01组 Beta冲刺(4/5)
  • 原文地址:https://www.cnblogs.com/java20130722/p/3207272.html
Copyright © 2011-2022 走看看