User Tools

Site Tools


docs:guide-developer:build.mpd-full.pulse

Building MPD-full with PulseAudio

More information about building from source: OpenWrt Buildroot - Usage

First you need to follow the HowtoBuild MPD-full building from source

Based on the following reference: BB + MPD-full + PulseAudio, unable to build

Barrier Breaker and Chaos Calmer

The MPD Makefile

  1. In your git clone directory edit the makefile /openwrt/feeds/packages/sound/mpd/Makefile
    It is a good idea to make a backup copy before starting.
  2. Detect the area in the Makefile involved with the full MPD installation. Add +pulseaudio-daemon
  3. Save the file

Original file:

  TITLE+= (full)
  DEPENDS+= \
    +AUDIO_SUPPORT:alsa-lib \
    +libaudiofile +BUILD_PATENTED:libfaad2 +libffmpeg +libid3tag \
    +libmms +libogg +libsndfile +libvorbis 
  PROVIDES:=mpd
  VARIANT:=full

Edited file:

 
  TITLE+= (full)
  DEPENDS+= \
    +AUDIO_SUPPORT:alsa-lib \
    +libaudiofile +BUILD_PATENTED:libfaad2 +libffmpeg-full +libid3tag \
    +libmms +libogg +libsndfile +libvorbis +pulseaudio-daemon
  PROVIDES:=mpd
  VARIANT:=full

Edit the –disable-pulse to –enable-pulse

     --disable-mpg123 \
     --disable-mvp \
     --disable-openal \
     --enable-pulse \
     --disable-sidplay \
     --disable-solaris-output \
     --disable-soup \

Edit the TARGET_LDFLAGS and add

,-rpath-link=$(STAGING_DIR)/usr/lib/pulseaudio 

The complete line looks like that:

  TARGET_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib,-rpath-link=$(STAGING_DIR)/usr/lib/pulseaudio $(if $(ICONV_FULL),-liconv)

The Pulseaudio Makefile

The Barrier Breaker and Chaos Calmer Pulseaudio Makefile do not need any modification to be build along with MPD

docs/guide-developer/build.mpd-full.pulse.txt · Last modified: 2018/02/18 20:40 by tmomas