0

我正在尝试通过在命令提示符下键入“cpan install FFmpeg”来安装ffmpeg 。我已经安装了 Image::Magick、Image::PBM、Image::Magick::Iterator,据我所知,这是我需要的一些先决条件,但似乎这还不够。这里有一些额外的信息。我收到错误消息:

Note (probably harmless): No library found for -lavcodec
Note (probably harmless): No library found for -lavformat
Note (probably harmless): No library found for -lz
Note (probably harmless): No library found for -ldl
Note (probably harmless): No library found for -lmp3lame
Note (probably harmless): No library found for -logg
Note (probably harmless): No library found for -lvorbis
Note (probably harmless): No library found for -lvorbisenc
In file included from ffmpeg.h:2,
             from FFmpeg.xs:16:
./ffmpeg-6036.c:21:22: avformat.h: No such file or directory
./ffmpeg-6036.c:22:21: swscale.h: No such file or directory
./ffmpeg-6036.c:23:23: framehook.h: No such file or directory
./ffmpeg-6036.c:24:21: dsputil.h: No such file or directory
./ffmpeg-6036.c:25:17: opt.h: No such file or directory
./ffmpeg-6036.c:44:21: version.h: No such file or directory
./ffmpeg-6036.c:45:22: cmdutils.h: No such file or directory

我猜我需要安装这些文件并告诉安装程序在哪里可以找到它们。如果这是我需要做的,我该怎么做?

4

1 回答 1

0

FFmpeg页面:

FFmpeg(在本模块中,此处称为 FFmpeg-Perl)是基础项目 FFmpeg(此处称为 FFmpeg-C)的 Perl 接口。

看起来 Perl FFmpeg 模块只是 C 库的包装器。如果您使用的是 MinGW,则可能是您的 MinGW 环境(C 库)中没有安装 FFMpeg。您需要先安装它,然后尝试安装 FFmpeg(Perl 库)再次。

于 2013-01-03T17:46:58.950 回答