今天在公司安装ffmpeg-php,在./configure的时候都是正常的,但是在make的时候出现
/root/mpeg/ffmpeg-php-0.5.3.1/ffmpeg_frame.c:282: error: for each function it appears in.)
/root/mpeg/ffmpeg-php-0.5.3.1/ffmpeg_frame.c:282: error: `img_resample_ctx' undeclared (first use in this function)
/root/mpeg/ffmpeg-php-0.5.3.1/ffmpeg_frame.c:308: warning: implicit declaration of function `img_resample_full_init'
/root/mpeg/ffmpeg-php-0.5.3.1/ffmpeg_frame.c:321: warning: implicit declaration of function `img_resample'
/root/mpeg/ffmpeg-php-0.5.3.1/ffmpeg_frame.c:326: warning: implicit declaration of function `img_resample_close'
make: *** [ffmpeg_frame.lo] Error 1
|
这样的错误,首先我先
find / -name "*ffmpeg_frame*"
|
结果搜出
[root@localhost ffmpeg-php-0.5.3.1]# find / -name "*ffmpeg_frame*"
/root/mpeg/ffmpeg-php-0.5.3.1/ffmpeg_frame.loT
/root/mpeg/ffmpeg-php-0.5.3.1/ffmpeg_frame.h
/root/mpeg/ffmpeg-php-0.5.3.1/ffmpeg_frame.c
|
这样的结果,发现并没有
ffmpeg_frame.lo这个文件,于是我就手动把ffmpeg_frame.loT这个文件改名mv ffmpeg_frame.loT ffmpeg_frame.lo
|
然后在make就正常了
阅读(1755) | 评论(1) | 转发(0) |