1#!/bin/bash 2 3# Cross-compilation to ARM. Adjust XBIN below according to your 4# cross-compiler location. 5# 6# Assumes that you have downloaded the Tremor CVS snapshot from the 7# Vorbis site and unpacked it (resulting in a directory named Tremor): 8# 9# http://www.xiph.org/ogg/vorbis/download/tremor_cvs_snapshot.tgz 10# http://www.xiph.org/ogg/vorbis/download/ 11# 12# It make be in a numbered release file by now, so look around the 13# site if you can't find it. 14# 15# You may also need to install libtool to get this to build. 16 17XBIN=/usr/local/arm/2.95.3/bin/ 18XGCC=$XBIN/arm-linux-gcc 19XCPP=$XBIN/cpp 20 21cd Tremor || { echo "Tremor directory not found!!"; exit 1; } 22 23./autogen.sh --host=arm CC=$XGCC CPP=$XCPP || exit 1 24make || exit 1 25 26echo "" 27 28cp -v .libs/libvorbisidec.a ../libs/linux-arm-libvorbisidec.a || { 29 echo libvorbisidec.a missing; exit 1; } 30 31#cp -v ivorbiscodec.h ivorbisfile.h ogg.h os_types.h config_types.h ../libs/ || { 32# echo Not all expected header files present; exit 1; } 33 34make clean >/dev/null 2>&1 35 36echo DONE 37 38