ffmpeg php centos,在CentOS上安装ffmpeg-php

我正在尝试在服务器(CentOS)上安装ffmpeg-PHP但在“make”命令之后我收到一个错误:

from /usr/local/src/ffmpeg-PHP-0.6.0/ffmpeg-PHP.c:40:

/usr/include/bits/stat.h:91: error: field 'st_atim' has incomplete type

/usr/include/bits/stat.h:92: error: field 'st_mtim' has incomplete type

/usr/include/bits/stat.h:93: error: field 'st_ctim' has incomplete type

In file included from /usr/local/include/PHP/main/PHP_streams.h:28,from /usr/local/include/PHP/main/PHP.h:400,from /usr/local/src/ffmpeg-PHP-0.6.0/ffmpeg-PHP.c:40:

/usr/include/sys/stat.h:367: error: array type has incomplete element type

/usr/include/sys/stat.h:374: error: array type has incomplete element type

In file included from /usr/local/include/PHP/main/PHP.h:406,from /usr/local/src/ffmpeg-PHP-0.6.0/ffmpeg-PHP.c:40:

/usr/local/include/PHP/TSRM/tsrm_virtual_cwd.h:218: error: expected specifier-qualifier-list before 'time_t'

/usr/local/include/PHP/TSRM/tsrm_virtual_cwd.h:246: error: expected declaration specifiers or '...' before 'time_t'

/usr/local/src/ffmpeg-PHP-0.6.0/ffmpeg-PHP.c: In function 'zm_startup_ffmpeg':

/usr/local/src/ffmpeg-PHP-0.6.0/ffmpeg-PHP.c:94: warning: implicit declaration of function 'avcodec_init'

make: *** [ffmpeg-PHP.lo] Error 1

ffmpeg已成功安装,以及mplayer和mencoder.

ffpeg:

configuration: --enable-gpl --enable-libmp3lame --enable-libtheora --enable-libvo-aacenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-version3

libavutil 51. 73.101 / 51. 73.101

libavcodec 54. 56.100 / 54. 56.100

libavformat 54. 27.101 / 54. 27.101

libavdevice 54. 2.100 / 54. 2.100

libavfilter 3. 16.104 / 3. 16.104

libswscale 2. 1.101 / 2. 1.101

libswresample 0. 15.100 / 0. 15.100

libpostproc 52. 0.100 / 52. 0.100

有帮助吗?

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值