2012-12-31 160 views
0

我试图在我的命令提示符中输入“cpan install FFmpeg”来安装ffmpeg。我已经安装了Image :: Magick,Image :: PBM,Image :: Magick :: Iterator,据我所知,这是我需要的一些先决条件,但似乎还不够。 Here's一些额外的信息。我收到错误消息:在windows xp上安装ffmpeg(perl包)

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 

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

+2

您缺少C库和C头文件。我不想听起来那么尖锐,但你已经选择了一个不带有C编译器的操作系统。您的Perl安装附带了构建模块所需的最小C编译器,但与外部库链接变得更加困难。 –

+0

我有MinGW 5.1.4.1。 –

回答

0

FFmpeg页:

FFmpeg的(在该模块中,在这里被称为FFmpeg的Perl的)是Perl接口基础项目FFmpeg的(这里称为FFmpeg的-C)。

它看起来像Perl FFmpeg模块只是C库的一个包装。如果那是如果你使用的是MinGW,可能是因为你的MinGW环境(C库)没有安装FFMpeg。你需要先安装它,然后尝试安装FFmpeg(Perl库)再次。