Skip to content

Instantly share code, notes, and snippets.

@Petezah
Forked from therealkenc/WSL pulseaudio 9.0 build.md
Last active December 19, 2019 20:55
Show Gist options
  • Save Petezah/3778e8a5218e848c401075107ddd94c7 to your computer and use it in GitHub Desktop.
Save Petezah/3778e8a5218e848c401075107ddd94c7 to your computer and use it in GitHub Desktop.
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install ubuntu-desktop build-essential git automake checkinstall gcc-6 g++-6 \
    intltool libtool \
    alsa-base alsa-utils alsa-tools libasound2 libasound2-plugins \
    libx11-dev libx11-xcb-dev check libsndfile1-dev libtdb-dev libgdbm-dev \
    libgtk-3-dev libgconf2-dev \
    libjack-dev jack libasyncns-dev libasyncns0 libwrap0-dev libwrap0 libsbc-dev libsbc1 \
    libavahi-common-dev libavahi-client3 libdbus-1-dev libssl-dev \
    libfftw3-dev libspeex-dev libspeexdsp-dev speex libsoxr-dev \
    liborc-0.4-dev libsoxr0 liblircclient-dev libsamplerate-dev \
    libwebrtc-audio-processing-dev libwebrtc-audio-processing-0 libjson-c-dev 
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 200
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-6 200

wget https://freedesktop.org/software/pulseaudio/releases/pulseaudio-13.0.tar.gz
tar xzf pulseaudio-13.0.tar.gz
cd pulseaudio-13.0
CFLAGS="$CFLAGS -g -O0" ./configure     \
    --prefix=/usr/local                 \
    --sysconfdir=/etc                   \
    --localstatedir=/var                \
    --disable-bluez4                    \
    --disable-bluez5                    \
    --disable-rpath                     \
    --disable-asyncns                   \
    --disable-udev                      \
    --disable-systemd-daemon            \
    --without-caps                      \
    --enable-force-preopen

make -j 8
sudo apt-get purge pulseaudio
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment