首先安装依赖:
$sudo apt-get install automake
$sudo apt-get install autoconf
$sudo apt-get install libtool
$sudo apt-get install m4
$sudo apt-get install gcc
从官网下载安装包:https://www.audeering.com/opensmile/
执行以下命令:
tar -zxvf opensmile-2.3.0.tar.gz
cd opensmile-2.3.0
bash autogen.sh
bash autogen.sh
./configure
make -j4 ; make
sudo make install
注意:你必须执行两遍bash autogen.sh 这一步,因为如果只装一遍的话,必要的文件很可能不会装全。
安装成功:
$ ./SMILExtract -h
===============================================================
openSMILE version 2.3.0 (Rev. 2014:2043)
Build date: Feb 20 2019 (Fri Oct 28 21:16:39 CEST 2016)
Build branch: 'opensmile-2.3.0'
(c) 2014-2016 by audEERING GmbH
All rights reserved. See the file COPYING for license terms.
Lead author: Florian Eyben
===============================================================
我遇到的出错的原因:
Makefile:1457: recipe for target 'src/core/libopensmile_la-componentManager.lo' failed
make: *** [src/core/libopensmile_la-componentManager.lo] Error 1
failed to build or install openSMILE to '/opensmile/opensmile-2.3.0/inst'!
buildStandalone.sh: 64: exit: Illegal number: -1
查找错误信息:
src/include/core/vectorTransform.hpp:117:83: error: narrowing conversion of ‘'\37777777756'’ from ‘char’ to ‘unsigned char’ inside { } [-Wnarrowing]
const unsigned char smileMagic[] = {(char)0xEE, (char)0x11, (char)0x11, (char)0x00};
^
In file included from src/core/vectorTransform.cpp:112:0:
修改方案:
找到相应目录,然后打开vectorTransform.hpp文件
将第117行代码改为
const char smileMagic[] = {(char)0xEE, (char)0x11, (char)0x11, (char)0x00};
保存后,再编译,安装即可。