opensmile

本文档详细介绍了如何解决在安装openSMILE 2.3.0过程中遇到的编译错误,包括依赖安装、源码下载、编译步骤及错误分析。通过修改vectorTransform.hpp文件中的一行代码,解决了窄转换警告导致的编译失败问题,成功完成安装。
摘要由CSDN通过智能技术生成

首先安装依赖:

    $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};

保存后,再编译,安装即可。
 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值