I've been trying to install ffmpeg-php v0.6.0 on RHEL (Redhat Enterprise Linux) 5.6 (Tikanga) environment. I'm running PHP Version 5.2.17 and have the following ffmpeg packages installed:
- ffmpeg-0.6.5-1.el5.rf
- ffmpeg-devel-0.6.5-1.el5.rf
- ffmpeg-libpostproc-0.6.5-1.el5.rf
I've followed these installation instructions. I'm stuck on the step where I run make
, I am getting the following errors:
In file included from /usr/include/sys/stat.h:105,
from /usr/include/php/main/php_streams.h:28,
from /usr/include/php/main/php.h:400,
from /usr/local/src/ffmpeg-php-0.6.0/ffmpeg-php.c:40:
/usr/include/bits/stat.h:88: error: field 'st_atim' has incomplete type
/usr/include/bits/stat.h:89: error: field 'st_mtim' has incomplete type
/usr/include/bits/stat.h:90: error: field 'st_ctim' has incomplete type
/usr/include/bits/stat.h:149: error: field 'st_atim' has incomplete type
/usr/include/bits/stat.h:150: error: field 'st_mtim' has incomplete type
/usr/include/bits/stat.h:151: error: field 'st_ctim' has incomplete type
In file included from /usr/include/php/main/php.h:406,
from /usr/local/src/ffmpeg-php-0.6.0/ffmpeg-php.c:40:
/usr/include/php/TSRM/tsrm_virtual_cwd.h:209: error: expected specifier-qualifier-list 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'
Have been crawling the interwebs looking to see if others have encountered similar issues, so far I've found this which recommends to install an older version of ffmpeg-php.
I'm discontent with using older version of things, and was wondering if anyone else has encountered the errors above and has successfully resolved them, or if they can point me in the right direction to start resolving them.