Ffmpeg can';t在centos 7上安装libvorbis,致命错误:ogg/ogg.h:没有这样的文件或目录

Ffmpeg can';t在centos 7上安装libvorbis,致命错误:ogg/ogg.h:没有这样的文件或目录,ffmpeg,centos7,Ffmpeg,Centos7,您好,我一直在尝试使用本教程安装带有一些库的FFmpeg 使用此命令安装libvorbis cd ~/ffmpeg_sources curl -O -L http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.5.tar.gz tar xzvf libvorbis-1.3.5.tar.gz cd libvorbis-1.3.5 ./configure --prefix="$HOME/ffmpeg_build" --with-ogg="$H

您好,我一直在尝试使用本教程安装带有一些库的FFmpeg

使用此命令安装libvorbis

cd ~/ffmpeg_sources
curl -O -L http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.5.tar.gz
tar xzvf libvorbis-1.3.5.tar.gz
cd libvorbis-1.3.5
./configure --prefix="$HOME/ffmpeg_build" --with-ogg="$HOME/ffmpeg_build" --disable-shared
make
make install
我用make命令得到这个错误

    ../include/vorbis/codec.h:26:21: fatal error: ogg/ogg.h: No such file or directory
     #include <ogg/ogg.h>
compilation terminated.

谢谢

libvorbis需要libogg。您遵循的指南中提到了这一点。因此,首先编译libogg:

cd ~/ffmpeg_sources
curl -O -L https://downloads.xiph.org/releases/ogg/libogg-1.3.4.tar.gz
tar xzvf libogg-1.3.4.tar.gz
cd libogg-1.3.4
./configure --prefix="$HOME/ffmpeg_build" --disable-shared
make
make install
然后编译libvorbis:

cd ~/ffmpeg_sources
curl -O -L https://downloads.xiph.org/releases/vorbis/libvorbis-1.3.6.tar.gz
tar xzvf libvorbis-1.3.6.tar.gz
cd libvorbis-1.3.6
./configure --prefix="$HOME/ffmpeg_build" --with-ogg="$HOME/ffmpeg_build" --disable-shared
make
make install
请注意,libogg目前的版本为1.3.4,libvorbis的版本为1.3.6。您正在遵循指南的旧版本,因此尝试安装libvorbis 1.3.5

cd ~/ffmpeg_sources
curl -O -L https://downloads.xiph.org/releases/vorbis/libvorbis-1.3.6.tar.gz
tar xzvf libvorbis-1.3.6.tar.gz
cd libvorbis-1.3.6
./configure --prefix="$HOME/ffmpeg_build" --with-ogg="$HOME/ffmpeg_build" --disable-shared
make
make install