今天安装下opencv,在官方下载最新版,我们先安装FFmpeg 安装FFmpeg之前也先安装音频解码
http://www.audiocoding.com/downloads.html
下载这两个 注意,我最新版mp3lame编译没有通过,用3.99版
对不熟linux同学可能比较陌生,现在linux很少有人手工编译安装了。
如果你是64位可以取消i386 不然会报错,我是取消的
https://www.tuicool.com/articles/EJvumq 这个地址有安装
mp3lame:
curl -L -o lame-3.99.5.tar.gz http://sourceforge.net/projects/lame/files/lame/3.99/lame-3.99.5.tar.gz/download
tar xzvf lame-3.99.5.tar.gz
cd lame-3.99.5
./configure --disable-dependency-tracking CFLAGS="-arch -arch x86_64" LDFLAGS="-arch -arch x86_64"
make
sudo make install
cd ..
faac (notice that only compiles for x86_64):
curl -L -o faac-1.28.tar.gz http://sourceforge.net/projects/faac/files/faac-src/faac-1.28/faac-1.28.tar.gz/download
tar xzvf faac-1.28.tar.gz
cd faac-1.28
./configure --disable-dependency-tracking CFLAGS="-arch x86_64" LDFLAGS="-arch x86_64"
make
sudo make install
cd ..
faad:
curl -L -o faad2-2.7.tar.gz http://sourceforge.net/projects/faac/files/faad2-src/faad2-2.7/faad2-2.7.tar.gz/download
tar xvzf faad2-2.7.tar.gz