Sean
Sean

Reputation: 7035

SDL init failure, reason is: No available video device

I tried to start my avd on Ubuntu 64bit 10.10, but it failed and shows the following in the log:

SDL init failure, reason is: No available video device

What can I do with that?

I tried to search for solutions and someone says it needs x11/sdl/jdk library and I installed them all but it still does not work.

Upvotes: 36

Views: 61538

Answers (12)

Alberto Eusebio
Alberto Eusebio

Reputation: 31

If you, like me, by accident installed manually the SDL library downloading the package and running:

./configure

make

sudo make install

but then also installed it using the package administrator with

sudo apt-get install libsdl2-dev

Then it's possible that you have some conflicts between the libraries. Try uninstalling the pkg version

sudo apt-get remove --purge libsdl2-dev

and manually cd in the directory where you have run ./config and type

sudo make uninstall

After that you are able to reinstall from pakage(usually preferable) running

sudo apt-get install libsdl2-dev

Upvotes: 1

Andrew
Andrew

Reputation: 46

I finally got this to work after installing:

sudo apt-get install ia32-libs-sdl

Upvotes: 3

elektronika
elektronika

Reputation: 71

Uncheck "Show emulator window" in Jenkins job configuration at android section.

SDL init failure, reason is: No available video device

"[android] Emulator did not appear to start; giving up"

Upvotes: 0

rahman
rahman

Reputation: 4948

sudo apt-get install libsdl1.2debian:i386

also works on ubuntu 13.10

thank you to crimeminister

Upvotes: 0

sithu
sithu

Reputation: 1

The following command

sudo apt-get install ia32-libs 

works on 11.10.

Upvotes: 0

Matthias
Matthias

Reputation: 31

If working on a 64 bit linux system you should use the emulator64* commands instead of the emulator* commands without the "64" in their name.

Upvotes: 3

user1505796
user1505796

Reputation:

sudo apt-get install libsdl1.2debian:i386

also works on Debian/Sid amd64 with the foreign architecture i386.

thank you to crimeminister

Upvotes: 3

crimeminister
crimeminister

Reputation: 1359

I just encountered this problem on Ubuntu 12.04 64-bit (Precise) and solved it by installing the 32-bit version of libsdl:

sudo apt-get install libsdl1.2debian:i386

Upvotes: 22

user75240
user75240

Reputation:

For Fedora 14 and 16 64bit.

Install these packages:

yum install glibc.i686 ncurses-libs.i686 libstdc libstdc++.i686 \
    libzip.i686 libX11.i686 libXrandr.i686 SDL.i686

Upvotes: 33

user77115
user77115

Reputation: 5577

I get the "SDL init failure" when running the "emulator" command with a user with not enough privileges. Ex. jenkins user gets the error, but not root.

Drop to the commandline and run the emulator command with your normal user. You should get the same error.

Then switch to root and run emulator command again to see if user permissions or missing/wrong user environment variables is the cause of your problem.

Upvotes: 2

Gary
Gary

Reputation: 2261

https://fedoraproject.org/wiki/User:Hpejakle/Android

Couple of things: Run your emulator call with strace, that'll tell you where it's going sideways... May not necessarily allow you to fix it easily though...

It could be a number of things, the fact that your on 64 bit ubuntu tells me that there are probably missing libraries (32bit).

Check out the link and see if anyone has come up with a faq for Ubuntu 64

Good luck,

Gary

Upvotes: 1

Pierre-Antoine LaFayette
Pierre-Antoine LaFayette

Reputation: 24402

Try unsetting any environment variables along the line of SDL_*, such as SDL_VIDEODRIVER. If that doesn't work, try export DISPLAY=:0.

Upvotes: 8

Related Questions