[yocto] how to add pulseaudio

Sherif Omran sherifomran2000 at gmail.com
Mon Apr 2 23:15:01 PDT 2018


hi

i used the following

DISTRO_FEATURES_append += " ext2 pulseaudio pam usbhost sbc  alsa-plugins
${DISTRO_FEATURES_LIBC}"
PACKAGECONFIG_pulseaudio += " --with-access-group=audio --enable-bluez5
--disable-x11 --disable-systemd-daemon"

IMAGE_INSTALL_append= " pulseaudio-server libpulsecore sbc
pulseaudio-module-bluetooth-discover pulseaudio-module-bluez5-device
pulseaudio-module-bluez5-discover pulseaudio-module-loopback
pulseaudio-module-rtp-send pulseaudio-module-rtp-recv
pulseaudio-module-bluetooth-policy pulseaudio-misc python dbus gconf
glib-2.0 pulseaudio-module-alsa-card pulseaudio-module-alsa-source
pulseaudio-module-alsa-sink pulseaudio-module-cli libasound libcap libgcc
libltdl liborc-0.4-0 libpulse libsndfile1 libstdc++ libtdb libudev
alsa-utils alsa-utils-speakertest pulseaudio-module-dbus-protocol"
IMAGE_INSTALL_append += " pulseaudiostart "
DISTRO_FEATURES_remove = " x11 "


but when i start pulseaudio now, i get unable to contat dbus:
org.freedesktop.dbus.error.notsupported: using x11 for dbus-daemoun
autolaunch was disabled at compile time, set your Dbus_session_bus_address
instead.

On Tue, Mar 27, 2018 at 10:46 AM, Måns Zigher <mans.zigher at gmail.com> wrote:

> I am no expert but basically the DISTRO_FEATURES is normally used to
> inform recipes about what kind of feature you would like to have. A recipe
> based on the DISTRO_FEATURES can then include take action on certain
> DISTRO_FEATURES. In the yocto ref manual you can read
>
> "In most cases, the presence or absence of a feature in DISTRO_FEATURES is
> translated to the appropriate option supplied to the configure script
> during the do_configure
> <https://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#ref-tasks-configure> task
> for recipes that optionally support the feature"
>
> Since pulseaudio is not by default shipped by the Yocto Project metadata I
> guess you have included some other meta layer to get this feature. But to
> me it looks like you have included pulseaudio in the wrong place it should
> be included in the IMAGE_INSTALL_append. If supported you should include
> just pulseaudio in the DISTRO_FEATURES_append if that is supported as a
> DISTRO_FEATURE in your build to inform recipes about it so that if
> supported the pulsaudio support is included. I suggest to try
>
> DISTRO_FEATURES_append += " ext2 pam usbhost ${DISTRO_FEATURES_LIBC}
> pulseaudio"
> IMAGE_INSTALL_append += " python dbus gconf glib-2.0 pulseaudio
> pulseaudio-module-dbus-protocol pulseaudio-module-bluetooth"
>
> A DISTRO_FEATURES is not necessarily mapped to a package so based on that
> the pulseaudio-module-dbus-protocol pulseaudio-module-bluetooth looks
> strange to be included in the DISTRO_FEATURES_append since those looks like
> packages and not a feature. Also I believe that you still need include
> pulseaudio in IMAGE_INSTALL_append since it not necessarily mapped to
> package but I could be wrong since bitbake and OE surprises me all the time
> on what it can figure out on it's own.
>
> BR
> Mans Zigher
>
> 2018-03-26 22:17 GMT+02:00 Sherif Omran <sherifomran2000 at gmail.com>:
>
>> hello
>>
>> i am trying to add pulse audio to an image but i don't get pulse audio
>> being installed in the image
>>
>> I am using the following
>> DISTRO_FEATURES_append += " ext2 pam usbhost ${DISTRO_FEATURES_LIBC}
>> pulseaudio pulseaudio-module-dbus-protocol pulseaudio-module-bluetooth"
>> IMAGE_INSTALL_append += " python dbus gconf glib-2.0"
>>
>> what am i doing wrong?
>>
>> --
>> _______________________________________________
>> yocto mailing list
>> yocto at yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20180403/66964e4d/attachment.html>


More information about the yocto mailing list