Instructions for cross compiling PortAudio for a BeagleBoard XM
PortAudio is an easy to use cross platform audio API for that looks the
same on Mac, Windows, Linux, etc. More info on PortAudio here:
I started with a BeagleBoard XM Rev C1 running the Angstrom demo.
I then installed Ubuntu 11.10 on my Mac as a VMWare application:
Installed ALSA development packet for the BeagleBoard target into my
cross compiler toolchain. In Ubuntu Linux enter:
opkg-target install alsa-dev
I then downloaded the nightly snapshot of PortAudio V19 from:
to a Work directory in a user account on Ubuntu.
Then I compiled it by entering in Ubuntu Linux:
# the following is all on one line
CFLAGS="-march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp"
You should end up with a bunch of test files in the bin folder.
I copied a test file from Ubuntu to my BeagleBoard using scp. You will
need to change the IP address and account name to match your setup.
scp bin/paex_sine email@example.com:/home/phil/.
Then on the BeagleBoard, as root, I entered:
If you have speakers hooked up, then you should hear a sine wave play
for 5 seconds.
For your cross compiled BeagleBoard project, link directly with the
If you have suggestions or corrections, please let me know.