installing audiowaveform on centOs

hello all -

i just got done installing audiowaveform on centOs - and it was a bit more difficult than i expected (ok a LOT more difficult). my goal was to have a tool that created json output.

here are several things i had to do along the way:

1) get a current gcc:
cd /etc/yum.repos.d ;
wget ;
yum --enablerepo=testing-devtools-6 install devtoolset-1.0 ;

2) reference this new gcc in my path:
export PATH=/opt/centos/devtoolset-1.0/root/usr/bin/:$PATH ;
export LIBPATH=/usr/local/lib/ ;
export LD_LIBRARY_PATH=/usr/local/lib/ ;

3) make sure gcc has a more current version than 4.7:
gcc -v ;
gcc version 4.7.0 20120507 (Red Hat 4.7.0-5) (GCC)

4) create gmock directory into the audiowaveform area ;
mkdir gmock;
./configure && make && make check ;
## notice no make-install

5) install audiowaveform (there probably will be other dependencies)

git clone ;
mkdir cmake ; cd cmake ;
cmake -DCMAKE_C_COMPILER="/opt/centos/devtoolset-1.0/root/usr/bin/gcc" .. ;
make && make install ;

6) test it:
audiowaveform -v ;
AudioWaveform v1.0.9
/usr/local/bin/audiowaveform --input-filename xx.wav --output-filename test.json -z 256 -b 8 ;

this should produce a json image of the audio input file.
Last edited: