Blame view
tools/extras/install_speex.sh
1.95 KB
8dcb6dfcb first commit |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
#!/bin/bash # Copyright 2014 IMSL, PKU-HKUST (author: Wei Shi) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED # WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, # MERCHANTABLITY OR NON-INFRINGEMENT. # See the Apache 2 License for the specific language governing permissions and # limitations under the License. # # This script attempts to install Speex, which is needed by someone who wants # to enable audio compression when doing online decoding. # # Note: This script installs Speex in a non-standard position and leads the test # procedure of Speex give out errors. Those errors will not influence the # installation acutally. So you can ignore them and call Speex's library correctly. # I just let it be like this at this moment, and may add a patch to resolve this # later. echo "****() Installing Speex" if [ ! -e speex-1.2rc1.tar.gz ]; then echo "Could not find Speex tarball speex-1.2rc1.tar.gz" echo "Trying to download it via wget!" if ! which wget >&/dev/null; then echo "This script requires you to first install wget" echo "You can also just download speex-1.2rc1.tar.gz from" echo "http://www.speex.org/downloads/)" exit 1; fi wget -T 10 -t 3 -c http://downloads.xiph.org/releases/speex/speex-1.2rc1.tar.gz if [ ! -e speex-1.2rc1.tar.gz ]; then echo "Download of speex_v1.2rc1.tar.gz - failed!" echo "Aborting script. Please download and install Speex manually!" exit 1; fi fi tar -xovzf speex-1.2rc1.tar.gz|| exit 1 rm -fr speex cd speex-1.2rc1 ./configure --prefix `pwd`/build make; make install cd .. ln -s speex-1.2rc1/build speex |