Reputation: 7035
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
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
Reputation: 46
I finally got this to work after installing:
sudo apt-get install ia32-libs-sdl
Upvotes: 3
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
Reputation: 4948
sudo apt-get install libsdl1.2debian:i386
also works on ubuntu 13.10
thank you to crimeminister
Upvotes: 0
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
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
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
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
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
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
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