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



  • 相关阅读:
    用户模板和用户场景
    移动端疫情展示
    数据爬取
    全国疫情统计可视化地图-第二、三阶段
    学习进度条-第三周
    学习进度条-第二周
    软件工程第二周开课博客
    返回一个整数数组中最大子数组的和
    JavaWeb选课系统(2)
    JavaWeb选课系统
  • 原文地址:https://www.cnblogs.com/java20130722/p/3207272.html
Copyright © 2011-2022 走看看