Skip to content

Instantly share code, notes, and snippets.

@fengxiaochuang
Forked from infovore/install_audiowaveform.sh
Last active November 13, 2020 03:47
Show Gist options
  • Save fengxiaochuang/806439ca0cb5becbaad27e7ef026c437 to your computer and use it in GitHub Desktop.
Save fengxiaochuang/806439ca0cb5becbaad27e7ef026c437 to your computer and use it in GitHub Desktop.
sudo yum install -y epel-release
# we need this rpmforge release for libmad-devel:
sudo rpm -Uvh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
sudo yum install git cmake libmad-devel libsndfile-devel \
gd-devel unzip -y
# next, let's install boost
# from here: http://vicendominguez.blogspot.co.uk/2014/04/boost-c-library-rpm-packages-for-centos.html
sudo wget http://repo.enetres.net/enetres.repo -O /etc/yum.repos.d/enetres.repo
sudo yum install boost-devel -y
sudo yum install centos-release-scl-rh.noarch
# now, let's install new g++
sudo yum install scl-utils -y
sudo yum install devtoolset-7-gcc-c++ -y
sudo yum install libid3tag-devel.x86_64 -y
yum install boost148-devel-1.48.0-7.el6.x86_64 -y
ln -s /usr/include/boost148/boost /usr/include/boost
# now enable devtoolset-7 to use its g++
scl enable devtoolset-7 bash
# now we should be able to install audiowaveform:
git clone https://github.com/bbcrd/audiowaveform.git
cd audiowaveform
git clone https://github.com/paulsapps/gmock-1.7.0.git
ln -s gmock-1.7.0 googlemock
mkdir build
cd build
cmake -D ENABLE_TESTS=0 -D BUILD_STATIC=0 -DZLIB_LIBRARY=/usr/include/ -DPNG_LIBRARY=/usr/include/ -DPNG_PNG_INCLUDE_DIR=/usr/include/ -DLIBFLAC_LIBRARIES=/usr/include/ -DLIBFLAC_INCLUDE_DIRS=/usr/include/ -DBOOST_LIBRARYDIR=/usr/include/boost148/ ..
make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment