没有用于在 Ubuntu 上构建 freeswitch 的 speex 包

Dim*_*ims 4 apt compiling 12.04 configure

我正在尝试freeswitch在 Ubuntu上构建并且缺少许多库。其中之一是speexconfigure说它不存在,而dpkg说它在这里:

checking for speex >= 1.2rc1 speexdsp >= 1.2rc1... Package speex was not found in the pkg-config search path. Perhaps you should add the directory containing `speex.pc' to the PKG_CONFIG_PATH environment variable No package 'speex' found Package speexdsp was not found in the pkg-config search path. Perhaps you should add the directory containing `speexdsp.pc' to the PKG_CONFIG_PATH environment variable No package 'speexdsp' found
configure: error: Library requirements (speex >= 1.2rc1 speexdsp >= 1.2rc1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
dims@nebula2:~/src/freeswitch$ dpkg -l *speex*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                             Version                          Description
+++-================================-================================-================================================================================
ii  libspeex1                        1.2~rc1-3ubuntu2                 The Speex codec runtime library
ii  libspeexdsp1                     1.2~rc1-3ubuntu2                 The Speex extended runtime library
ii  speex                            1.2~rc1-3ubuntu2                 The Speex codec command line tools
Run Code Online (Sandbox Code Playgroud)

为什么?以及如何解决?

spa*_*ood 8

你需要安装 libspeex-dev

sudo apt-get install libspeex-dev
Run Code Online (Sandbox Code Playgroud)

所以,你会得到以下结果:

saman@jack:~$ dpkg -l *speex*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
ii  libspeex-dev:a 1.2~rc1.1-1u amd64        The Speex codec library developme
ii  libspeex1:amd6 1.2~rc1.1-1u amd64        The Speex codec runtime library
ii  libspeexdsp1:a 1.2~rc1.1-1u amd64        The Speex extended runtime librar
un  speex          <none>       <none>       (no description available)
Run Code Online (Sandbox Code Playgroud)

  • 我怎么会知道? (2认同)
  • 是的,但总的来说,如果它们不同,我怎么知道库名称? (2认同)

小智 8

您可能还需要安装libspeexdsp-dev软件包(取决于libspeex-dev):

sudo apt-get install libspeexdsp-dev
Run Code Online (Sandbox Code Playgroud)