Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 618686 - dev-util/android-studio- emulator doesn't start without pulseaudio
Summary: dev-util/android-studio- emulator doesn't start without pu...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Jason A. Donenfeld
Depends on:
Reported: 2017-05-16 17:43 UTC by Christophe PEREZ
Modified: 2021-10-14 19:25 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---

android-studio- (android-studio-,3.25 KB, text/plain)
2017-11-28 11:37 UTC, Johannes Janssen

Note You need to log in before you can comment on or make changes to this bug.
Description Christophe PEREZ 2017-05-16 17:43:38 UTC
same problem with dev-util/android-studio-

Emulator never starts, because of not found.
I don't use pulseaudio, but I have apulse installed for skype.

I could solve the problem and permit emulator to start linking like :

$ ls -l ~/Android/Sdk/emulator/lib*/
lrwxrwxrwx 1 chris users 31 16 mai   11:14 /home/chris/Android/Sdk/emulator/lib64/ -> /usr/lib64/apulse/
lrwxrwxrwx 1 chris users 31 16 mai   11:14 /home/chris/Android/Sdk/emulator/lib/ -> /usr/lib32/apulse/

I really don't know where the problem comes from.
Comment 1 Jason Zaman gentoo-dev 2017-10-29 11:08:19 UTC
$ ldd /opt/android-sdk-update-manager/emulator/qemu/linux-x86_64/qemu-system-x86_64 | grep pulse => /usr/lib64/ (0x00007fc947bf4000) => /usr/lib64/pulseaudio/ (0x00007fc9455ed000)

looks like the version of qemu in the SDK is linked with
doesnt apulse put its lib in the same path? it finds it fine with pulseaudio on my machine so it should work the same with apulse too?
What do you see if you ldd that same binary on your system?
Comment 2 Johannes Janssen 2017-11-28 11:37:40 UTC
Created attachment 506914 [details]

apulse libs are not put in the same directory as pulse but rather at /usr/lib64/apulse/. Reasoning behind this are binaries that support both pulseaudio and alsa, but prefer pulseaudio. In that case you don't want them to use apulse's pulseaudio wrappers. To support binaries link against only pulseaudio you have to set LD_LIBRARY_PATH or conveniently the wrapper /usr/bin/apulse, which does it for you.

I updated my fix for this to the latest version of android-studio in gentoo. With this emulator still throws some errors like
  12:33	Emulator: pulseaudio: set_source_mute() failed
  12:33	Emulator: pulseaudio: Reason: Oops.
but besides works fine.