Thank you, private emailer, for diagnosing my compile problem as an
antique version of portaudio from the Ubuntu repositories.

The script below builds freedv on a newly loaded Ubuntu 12 box.

Brian

-----

#!/bin/bash -euET

CLEANEXIT=0
trap '
SAVEDSTATUS=$?
set +x
if [ "$CLEANEXIT" -ne 1 ]
then
        echo "${0##*/}: FATAL Unexpected return value of $SAVEDSTATUS, 
quitting" 1>&2
        exit $SAVEDSTATUS
fi' EXIT

#-----

#
#  Script to build freedv on Ubuntu 12.04.4 LTS 64 bit
#
#  Usage:
#
#       script -c ./build-freedv-on-ubuntu-12 build.log
#

LSBRELEASED=$(lsb_release -d)

if [ "$LSBRELEASED" != 'Description:    Ubuntu 12.04.4 LTS' ]
then
        echo "ERROR unexpected distribution '$LSBRELEASED'" 1>&2
        exit 1
fi

set -x

sudo apt-get install cmake gcc g++ libhamlib-dev libsamplerate-dev \
        libsndfile-dev libsox-dev libgtk-3-dev libasound-dev libhamlib2 \
        libsamplerate0 libsndfile1 libgtk-3-0 libasound2 libcairo2-doc \
        libgtk-3-doc libpango1.0-doc sox subversion

svn checkout svn://svn.code.sf.net/p/freetel/code/ freetel-code

wget http://www.portaudio.com/archives/pa_stable_v19_20111121.tgz

wget http://downloads.sourceforge.net/wxwindows/wxWidgets-3.0.0.tar.bz2

tar -zxvf pa_stable_v19_20111121.tgz
cd portaudio
./configure
make
sudo make install
sudo ldconfig
cd ..

tar -jxvf wxWidgets-3.0.0.tar.bz2
cd wxWidgets-3.0.0
./configure
make
sudo make install
sudo ldconfig
cd ..

mkdir codec2_BUILD
cd codec2_BUILD
cmake ../freetel-code/codec2
make
sudo make install
sudo ldconfig
cd ..

mkdir fdmdv2_BUILD
cd fdmdv2_BUILD
cmake ../freetel-code/fdmdv2
make
sudo make install
sudo ldconfig
cd ..

#-----

CLEANEXIT=1
exit 0

------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
Freetel-codec2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freetel-codec2

Reply via email to