Compiling libao with patch

From The Neuros Technology Wiki

Jump to: navigation, search

Neuros Technology | Products: , OSD, Recorder | Developers

Here are the instructions to compile libao from svn with Adam Torgerson's (may1937) patch. libao is a cross platform audio library from Xiph.org. This patch provides support for the NMS PCM output plugin so you can actually output sound on the OSD.

The first step is to check out libao from svn, to do this we run this command:

svn co http://svn.xiph.org/trunk/ao

That will create a directory containing the ao source named 'ao' in the current directory.

Next you need to download the patch which can be found Here. Save that patch into the ao directory that was created above. Now move into the ao directory and apply the patch/

cd ao

patch -p1 < ao-svn-nms-r1.patch

may1937 did'nt feel like regenerating his patch, so after installing this patch, copy ao_nms.c from here over the one in ao/src/plugins/nms.

Now we need to edit src/plugins/nms/Makefile.am (assuming you're in the ao directory), you can do this with your favorite editor. The path to Neuros-Cooler/include and Neuros-Cooler/src/plugin need to be changed to where your Neuros-Cooler is checked out. When done editing, save the file and exit.

Next, go back to the ao directory and run the autogen.sh script.

./autogen.sh

The above script requires autoconf, automake 1.6 or later, aclocal 1.6 or later, and libtool. After this script runs its time to do a normal cross compile on libao.

./configure --host=arm-linux --prefix=$INSTALL_MOD_PATH --disable-esd --disable-arts

make

make install

Personal tools