我想用libopus 1.2.1编译opus-工具。
我从这里得到libopus1.2.1源代码:https://opus-codec.org/release/stable/2017/06/26/libopus-1_2_1.html
我拔掉它,然后做了:
./configure
make
sudo make install一切顺利,现在我在/usr/include中有一个"opus“文件夹,在/usr/local/lib中有一些"libopus.*”文件。
现在我从这里得到了opus-tools源代码:https://opus-codec.org/downloads/。
我提取了它,然后执行了:/配置,最后得到了以下错误消息:
checking for Opus... no
*** Could not run Opus test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means Opus was incorrectly installed
*** or that you have moved Opus since it was installed.
configure: error:
Opus is required to build this package!
please see http://opus-codec.org/ for how to
obtain a copy.为什么它找不到我刚建的libopus图书馆?我怎么能链接到它呢?
谢谢你的帮助!干杯
发布于 2018-09-10 17:47:05
作品包装在Ubuntu (包括18.04 LTS)。您只需在用于的packages.ubuntu.comopus上搜索即可。
您将得到以下软件包:
libopus-dev仿生(18.04LTS) (libdevel):Opus库开发files 1.1.2-1ubuntu1: amd64 .libopus0仿生(18.04LTS) (libs):操作系统编解码运行时library 1.1.2-1ubuntu1: amd64 .opus-tools仿生软件包(18.04LTS) (声音):Opus命令行工具宇宙 0.1.10-1: amd64因此,我建议从存储库安装这些软件包:
sudo add-apt-repository main
sudo add-apt-repository universe
sudo apt-get install libopus-dev libopus0 opus-tools在软件和更新(software-properties-gtk)中启用源代码存储库。
安装opus构建依赖项:
sudo apt-get build-dep libopus0 opus-tools下载并编译新的opus (您确定1.2.1优于1.1.2-1 ubuntu1吗?):
cd ~/Downloads
wget https://archive.mozilla.org/pub/opus/opus-1.2.1.tar.gz
tar -xf opus-1.2.1.tar.gz
cd opus-1.2.1/
./configure
make
sudo make install下载并安装opus-tools (与存储库中的版本完全相同):
cd ~/Downloads
wget https://archive.mozilla.org/pub/opus/opus-tools-0.1.10.tar.gz
tar -xf opus-tools-0.1.10.tar.gz
cd opus-tools-0.1.10/
./configure
make
sudo make install注意:sudo make install也是个坏主意,考虑使用checkinstall。
https://askubuntu.com/questions/1074044
复制相似问题