installing audiowaveform & gcc on virtualbox centOS

Feb 16, 04:44 AM

installing centOS 6.6 on virtualbox

0) get ISO

1) start with fixed size 20 gig drive

2) change settings: System—>Processor, Extended Features: Enable PAE/NX Storage: change CD to the ISO file Network: attach the Bridged Adapter

3) when building/installing centOS, be sure to “connect automatically” the network! button is in lower-left corner. dont forget this step.

4) “Use all space” when setting up storage

5) be sure to select “Software Development Workstation “ when selecting desktop

===(installing wav2json instead)=======
installing wav2json:
yum —assumeyes update ;
yum —assumeyes install cmake ;
yum —assumeyes install gcc gcc-devel ;
yum —assumeyes sndfile1-dev ;
yum —assumeyes libsndfile libsndfile-devel ;
yum —assumeyes boost-program-options ;
git clone https://github.com/beschulz/wav2json.git
cd ./wav2json/build ;
make all ;
/home/mark/wav2json/bin/Linux/wav2json —version ;

===============================
6) when booted up:
yum —assumeyes update;
yum —assuumeyes install cmake ;
yum —assuumeyes install gd gd-devel php-gd ;
yum —assumeyes install libsndfile-devel ;
yum —assumeyes groupinstall “Development tools” ; ## optional

9) mkdir gcc ; cd gcc ;
10) wget ftp.gnu.org/gnu/gcc/gcc-4.9.2/gcc-4.9.2.tar.gz’>gcc-4.9.2.tar.gz

11) note gcc steps:
tar xzf gcc-4.9.2.tar.gz ;
cd gcc-4.9.2 ;
./contrib/download_prerequisites ;
cd .. ;
mkdir objdir ; cd objdir ;
$PWD/../gcc-4.9.2/configure —prefix=$HOME/gcc-4.9.2 ; ## prefix needs DOUBLE-DASH
make && make install ; ## time consuming part
export PATH=/root/gcc-4.9.2/bin/:$PATH; ## to point to the new gcc (maybe we can move this?)

which gcc ;
gcc -v; #either test

===========================================

20) create gmock directory into the audiowaveform area ;
mkdir gmock; cd gmock ;
wget https://googlemock.googlecode.com/files/gmock-1.7.0.zip
./configure && make && make check ; ## notice no make-install

21) libmad installation:
http://sourceforge.net/projects/mad/files/libmad/ – simple gzip/tar vi ./configure, and remove the “fforce-mem” line ! ! ! !

22) install boost:
download http://www.boost.org/users/history/version_1_57_0.html
./bootstrap ; ## bootstrap ?? ;-)
./b2 ; ## we were instructed to run this

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

git clone https://github.com/bbcrd/audiowaveform.git ;

mv ./gmock/ ./audiowaveform/

mkdir cmake ; cd cmake ;
cmake -D CMAKE_C_COMPILER=”/opt/centos/devtoolset-1.0/root/usr/bin/gcc” \ -D CMAKE_CXX_COMPILER=”/opt/centos/devtoolset-1.0/root/usr/bin/g++” \ .. ;
make && make install ;
22) test it:
audiowaveform -v ;
AudioWaveform v1.0.9
/usr/local/bin/audiowaveform —input-filename xx.wav —output-filename test.json -z 256 -b 8 ;

Mark Edwards

,

---

Commenting is closed for this article.

---