I just needed to post this for a future time so I didn't lose it
A simple way to build pianobar for Debian ARM (for Kindle Touch).
HOST:
apt-get install debootstrap qemu-user-static binfmt-support
dd if=/dev/zero of=debian_image.ext3 bs=1M count=2048
mkfs.ext3 debian_image.ext3
tune2fs -i 0 -c 0 debian_image.ext3
mkdir -p /mnt/debian
mount -o loop -t ext3 debian_image.ext3 /mnt/debian
mkdir -p /mnt/debian/usr/bin
cp /usr/bin/qemu-arm-static /mnt/debian/usr/bin
debootstrap --arch=armel wheezy /mnt/debian
http://ftp.us.debian.org/debian
mount -o bind /dev /mnt/debian/dev
mount -o bind /dev/pts /mnt/debian/dev/pts
mount -o bind /proc /mnt/debian/proc
mount -o bind /sys /mnt/debian/sys
chroot /mnt/debian /bin/bash
CHROOT:
apt-get install locales vim
dpkg-reconfigure locales
vim /etc/apt/sources.list
deb
http://ftp.us.debian.org/debian wheezy main contrib non-free
deb-src
http://ftp.us.debian.org/debian wheezy main contrib non-free
# deb
http://ftp.us.debian.org/debian wheezy-backports main contrib non-free
# deb-src
http://ftp.us.debian.org/debian wheezy-backports main contrib non-free
apt-get update
apt-get install -y git libao-dev libgcrypt11-dev libgnutls-dev libfaad-dev libmad0-dev libjson0-dev make pkg-config
# this is just for my notes

git config --global http.proxy $http_proxy
*** This way is FASTER:
apt-get -t wheezy-backports install libavfilter-dev libavformat-dev libswscale-dev libavresample-dev
*** OR this way, SLOWER but preferred, don't need the backports stuff at all:
cd /usr/src
git clone
https://github.com/FFmpeg/FFmpeg.git
cd FFmpeg
./configure --enable-shared --disable-everything --enable-demuxer=mov --enable-encoder=aac --enable-protocol=http \
--enable-filter=volume --enable-filter=aformat --enable-filter=aresample --disable-programs --disable-doc
make
make install
*** pianobar
cd /usr/src
git clone
https://github.com/PromyLOPh/pianobar.git
cd pianobar
make
make install
*** optional - pianobarfly (downloads songs as they are played.)
cd /usr/src
git clone
https://github.com/nega0/pianobarfly.git
apt-get install libid3tag0-dev
make
make install
Note: to get the required libs:
mkdir ./lib
ldd `which pianobar` | grep "=> /" | awk '{print $3}' | xargs -I '{}' cp -v '{}' ./lib > /dev/null
pianobar
Welcome to pianobar (2014.09.28-dev)! Press ? for a list of commands.
[?] Email:
DONE!
edit: forgot to include binfmt-support in the early apt-get list!