/usr/bin/ld:无法找到-lasound

4
在文件夹snowboy/examples/C/中使用make命令对snowboy进行编译时,我遇到了以下错误。
/usr/bin/ld: cannot find -lf77blas
/usr/bin/ld: cannot find -lcblas
/usr/bin/ld: cannot find -llapack_atlas
/usr/bin/ld: cannot find -latlas
/usr/bin/ld: cannot find -lasound

我已经成功解决了所有问题,除了使用命令-lasound

sudo apt-get install libatlas-base-dev

我该如何添加缺失的库-lasound

1个回答

5

在文件install_portaudio.sh中有一行被注释的代码,其中写着:

# On linux systems, we only build with ALSA, so make sure you install it using
# e.g.:
#   sudo apt-get -y install libasound2-dev

所以只需在终端中运行命令 sudo apt-get -y install libasound2-dev,就可以解决问题。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接