您的位置:首页 > 其它

Ubuntu下Essentia安装及配置

2016-03-19 11:17 489 查看

Ubuntu下Essentia安装及配置

之前安装了Yaafe,现在我们来安装Essentia

注意!注意!注意!重要事情说三遍,ubuntu14.04请下载Essentia2.1bate2版本源码解压!!!其他ubuntu版本请注意官网提示信息!

Essentia官网:http://essentia.upf.edu/

Essentia官方安装教程:http://essentia.upf.edu/documentation/installing.html

Ubuntu下Essentia安装及配置
一安装Gaia
1获取Gaia

2安装Gaia的依赖包

3编译安装

二安装ffmpg

三安装Essentia
1获取Essentia

2安装Essentia的依赖包

3编译安装Essentia

一、安装Gaia

gaia项目地址:https://github.com/MTG/gaia

Essentia依赖于gaia项目,要装Essentia就要先装gaia

(1)获取Gaia

步骤:

mkdir Gaia
cd Gaia
git clone https://github.com/MTG/gaia[/code] 
完成后在Gaia文件夹下就有了Gaia源码

(2)安装Gaia的依赖包

步骤:

apt-get install build-essential libqt4-dev libyaml-dev swig python-dev pkg-config


到这里gaia就装好了

(3)编译安装

进入gaia文件夹下:

./waf configure --download
./waf
./waf install


二、安装ffmpg

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

Essentia项目地址:https://github.com/MTG/essentia

(1)获取Essentia

步骤:

mkdir Essentia
cd Essentia
git clone https://github.com/MTG/essentia.git[/code] 
完成后在Essentia文件夹下就有了Essentia源码

(2)安装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依赖包就装好了

(3)编译安装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 *


如果不报错就说明装好了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: