简体   繁体   English

使用Ogg Flac和Vorbis在Fedora中构建libsndfile

[英]Building libsndfile in Fedora with Ogg Flac and Vorbis

I'm trying to build the libsndfile library in Fedora 20 with the added options of Flac, Ogg and Vorbis. 我正在尝试使用Flac,Ogg和Vorbis的添加选项在Fedora 20中构建libsndfile库。

So, as the readme says I installed flac ogg and vorbis using this command: 因此,正如自述文件所述,我使用以下命令安装了flac ogg和vorbis:

sudo yum install flac libogg libvorbis

After that I did the ./configure in libsndfile source like the readme says but when it does that it says it can't find flac, vorbis and vorbisenc (it DID find ogg). 之后,我在libsndfile源文件中执行了./configure,就像自述文件中所说的那样,但是当它这样做时,它说它找不到flac,vorbis和vorbisenc(它直接找到了ogg)。 This is the output from the ./configure command: 这是./configure命令的输出:

checking for flac >= 1.2.1 ... no
checking for ogg >= 1.1.3 ... yes
checking for vorbis >= 1.2.3 ... no
checking for vorbisenc >= 1.2.3 ... no

I checked the versions of flac and the vorbis install and they both are higher than the minimum requested version. 我检查了flac和vorbis安装的版本,它们都高于最低要求的版本。

How can I make the ./configure file find those libraries so I can build libsndfile like I want? 我如何才能使./configure文件找到那些库,以便按我的意愿构建libsndfile?

Thanks in advance 提前致谢

In many distributions, a package, like libogg , contains only the shared (and maybe static) libraries for the package - whatever is required to run other programs that are already linked with that library. 在许多发行版中,软件包(如libogg )仅包含该软件包的共享(也许是静态)库-运行已与该库链接的其他程序所需的一切。 The C header files and other support files that are needed for actually building a new application that uses that library are generally not included in this package, but in another one, often named with a -devel or -dev suffix - libogg-devel in this case. 实际构建使用该库的新应用程序所需的C头文件和其他支持文件通常不包含在此程序包中,而是包含在另一个通常以-devel-dev后缀命名的-devel libogg-devel案件。 So what you need to do in order to build the package you are trying to build in this case, based on the given output, would be: 因此,在这种情况下,根据给定的输出,要构建要构建的包所需要做的是:

yum install flac-devel libogg-devel libvorbis-devel vorbis-tools

The vorbis-tools package doesn't fit the above description, but it is where the vorbisenc binary mentioned in the output is packaged... vorbis-tools软件包不适合上面的描述,但是它是输出中提到的vorbisenc二进制文件的打包位置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM