Linux HOWTOs

About | Home | Search


ERROR: Slooooow dooooown... this page load was delayed.

HOWTO: openal
Description: Cross-platform 3D audio API
Click here for ChangeLog
NOTE: I use GNU tar >= 1.13.25 so it's -j for .tar.bz2 files,
it's safe to assume that make, gcc, binutils, fileutils/coreutils, gawk, sed, and grep are prerequisites for almost everything


# OpenAL 0.0.8
# ============
# Below we cover ALUT and OpenAL


# ALUT 1.1.0
# ==========
cd
test -f installed/freealut-1.1.0.tar.gz &&
 mv installed/freealut-1.1.0.tar.gz .
test ! -f freealut-1.1.0.tar.gz &&
 wget http://www.openal.org/openal_webstf/downloads/freealut-1.1.0.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "freealut-*" -exec rm -r {} \;
tar xzvf ~/freealut-1.1.0.tar.gz
cd freealut-1.1.0
test $UID = 0 && chown -R root:root .
./configure
make

# Become root to install it
su

# Remove old shared library files, install it
rm -f /usr/local/lib/libalut.*
make install
ldconfig

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/freealut-*.tar.*
mv freealut-1.1.0.tar.gz installed/


# OpenAL 0.0.8
# ============
# Prerequisites:
# pkg-config
# ALSA
# aRts
# EsounD/ESD
# SDL
# Vorbis
# SMPEG (covered in my SDL howto)
# ALUT (above)

cd
test -f installed/openal-0.0.8.tar.gz &&
 mv installed/openal-0.0.8.tar.gz .
test ! -f openal-0.0.8.tar.gz &&
 wget http://www.openal.org/openal_webstf/downloads/openal-0.0.8.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "openal-*" -exec rm -r {} \;
tar xzvf ~/openal-0.0.8.tar.gz
cd openal-0.0.8
test $UID = 0 && chown -R root:root .
chmod -R u+w .
./configure
make

# Become root to install it
su

# Remove old shared library files, install it
rm -f /usr/local/lib/libopenal.*
make install
ldconfig

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/openal-*.tar.*
mv openal-0.0.8.tar.gz installed/


# If you ever want to uninstall ALUT, this should do it:
cd
su
test -d src/freealut-* && ( cd src/freealut-* ; make uninstall )
rm -f /usr/local/bin/freealut-config \
 /usr/local/lib/pgkconfig/freealut.pc \
 /usr/local/lib/libfreealut.*
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "freealut-*" -exec rm -r {} \;
rm -f ~/installed/freealut-*.tar.*


# If you ever want to uninstall OpenAL, this should do it:
cd
su
test -d src/openal-* && ( cd src/openal-* ; make uninstall )
rm -f /usr/local/bin/openal-config /
 /usr/local/lib/pgkconfig/openal.pc /
 /usr/local/lib/libopenal.*
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "openal-*" -exec rm -r {} \;
rm -f ~/installed/openal-*.tar.*

Back to the list


Last updated: Tue, 07 Aug 2018 12:06:17 -0400
Jason Englander <jason at englanders dot us>