之前安装了Yaafe,现在我们来安装Essentia
注意!注意!注意!重要事情说三遍,ubuntu14.04请下载Essentia2.1bate2版本源码解压!!!其他ubuntu版本请注意官网提示信息!
Essentia官网:http://essentia.upf.edu/
Essentia官方安装教程:http://essentia.upf.edu/documentation/installing.html
gaia项目地址:https://github.com/MTG/gaia
Essentia依赖于gaia项目,要装Essentia就要先装gaia
mkdir Gaia
cd Gaia
git clone https://github.com/MTG/gaia
完成后在Gaia文件夹下就有了Gaia源码
apt-get install build-essential libqt4-dev libyaml-dev swig python-dev pkg-config
到这里gaia就装好了
进入gaia文件夹下:
./waf configure --download
./waf
./waf install
Essentia的安装网站上http://essentia.upf.edu/documentation/installing.html,对依赖包的需求中有这么一段话:
libavcodec/libavformat/libavutil/libavresample (from the FFmpeg/LibAv project): for loading/saving any type of audio files (optional)
就是这个依赖可以从ffmgp中得到
因此我们就要装ffmpg,这里有一篇博客对ffmpg写的很清楚,大家自行安装http://www.iyowei.cn/2014/09/linux_ffmpeg/
最后我们来安装Essentia
Essentia项目地址:https://github.com/MTG/essentia
mkdir Essentia
cd Essentia
git clone https://github.com/MTG/essentia.git
完成后在Essentia文件夹下就有了Essentia源码
sudo apt-get install build-essential libyaml-dev libfftw3-dev libavcodec-dev libavformat-dev libavresample-dev python-dev libsamplerate0-dev libtag1-dev
sudo apt-get install python-numpy-dev python-numpy python-yaml
到这里Essentia依赖包就装好了
进入Essentia文件夹,输入命令:
./waf configure --mode=release --build-static --with-python --with-cpptests --with-examples --with-vamp --with-gaia
To compile everything you‘ve configured:
./waf
To install the C++ library and the python bindings (if configured successfully; you might need to run this command with sudo):
./waf install
好了,到这里Essentia就装好了
为了证明Essentia装好了,到python环境下输入:
from essentia.standard import *
如果不报错就说明装好了