编译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 sitehttp://archive.canonical.com/to the list of repositories.

  • I updated the apt-get.

  • I installed thelibsdl1.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 correctX11 Display. Try launching the Android emulator as shown below. You may add your own parameters as needed as long theDISPLAY=:0is 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




原文链接: https://www.cnblogs.com/java20130722/archive/2013/04/11/3207272.html

欢迎关注

微信关注下方公众号,第一时间获取干货硬货;公众号内回复【pdf】免费获取数百本计算机经典书籍

原创文章受到原创版权保护。转载请注明出处:https://www.ccppcoding.com/archives/84174

非原创文章文中已经注明原地址,如有侵权,联系删除

关注公众号【高性能架构探索】,第一时间获取最新文章

转载文章受原作者版权保护。转载请注明原作者出处!

(0)
上一篇 2023年2月9日 下午9:26
下一篇 2023年2月9日 下午9:27

相关推荐