Skip to content

OpenAL compilation

David Mansolino edited this page Nov 7, 2018 · 5 revisions

This page explains how to recompile the OpenAL dependency on every platforms. OpenAL is used internally by Webots as a sound engine.

Get package

From http://kcat.strangesoft.net/openal.html, get openal-soft-1.16.0.tar.bz2, and move it in ~/software

Extract the package

tar jxf openal-soft-1.16.0.tar.bz2
mv openal-soft-1.16.0 openal
cd openal

Dependencies

On Linux, install libasound2-dev (ALSA) and libpulse-dev (Pulse audio)

sudo apt-get install libasound2-dev libpulse-dev

Compile

cd build

On Windows:

cmake -G "MSYS Makefiles" ..

Elsewhere:

cmake ..

On Linux, make sure that the cmake log contains the ALSA and the PulseAudio support:

-- Building OpenAL with support for the following backends:
--      PulseAudio, ALSA, OSS, WaveFile, Null

Note: probably that only PulseAudio is really required. Compiling with the ALSA support give us more possibilities to help users having sound issues.

Then:

make -jx
# several warnings are generated
Clone this wiki locally