Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-17-2012, 02:34 AM   #1
LQ Newbie
Registered: Dec 2011
Posts: 4

Rep: Reputation: Disabled
Problem installing ffmpeg-php with PHP 5.3.13 and CentOS 5.8


My System is as under :
PHP - 5.3.13
CentOS - 5.8
Kernel - 2.6.18-308.4.1.el5xen

After following all the steps from, I am struck at the make command. Here is my output

/bin/sh /root/src/php-5.3.13/ext/ffmpeg-php-0.6.0/libtool --mode=compile cc -I. -I/root/src/php-5.3.13/ext/ffmpeg-php-0.6.0 -DPHP_ATOM_INC -I/root/src/php-5.3.13/ext/ffmpeg-php-0.6.0/include -I/root/src/php-5.3.13/ext/ffmpeg-php-0.6.0/main -I/root/src/php-5.3.13/ext/ffmpeg-php-0.6.0 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/include/libavcodec/ -I/usr/include/libavformat/ -I/usr/include/libavutil/ -I/usr/include/libswscale/ -I/usr/include/libavfilter/ -I/usr/include/libavdevice/ -DHAVE_CONFIG_H -g -O2 -Wall -fno-strict-aliasing -c /root/src/php-5.3.13/ext/ffmpeg-php-0.6.0/ffmpeg-php.c -o ffmpeg-php.lo
mkdir .libs
cc -I. -I/root/src/php-5.3.13/ext/ffmpeg-php-0.6.0 -DPHP_ATOM_INC -I/root/src/php-5.3.13/ext/ffmpeg-php-0.6.0/include -I/root/src/php-5.3.13/ext/ffmpeg-php-0.6.0/main -I/root/src/php-5.3.13/ext/ffmpeg-php-0.6.0 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/include/libavcodec/ -I/usr/include/libavformat/ -I/usr/include/libavutil/ -I/usr/include/libswscale/ -I/usr/include/libavfilter/ -I/usr/include/libavdevice/ -DHAVE_CONFIG_H -g -O2 -Wall -fno-strict-aliasing -c /root/src/php-5.3.13/ext/ffmpeg-php-0.6.0/ffmpeg-php.c -fPIC -DPIC -o .libs/ffmpeg-php.o
In file included from /usr/include/sys/stat.h:105,
from /usr/local/include/php/main/php_streams.h:28,
from /usr/local/include/php/main/php.h:400,
from /root/src/php-5.3.13/ext/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
In file included from /usr/local/include/php/main/php.h:406,
from /root/src/php-5.3.13/ext/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’
/root/src/php-5.3.13/ext/ffmpeg-php-0.6.0/ffmpeg-php.c: In function ‘zm_startup_ffmpeg’:
/root/src/php-5.3.13/ext/ffmpeg-php-0.6.0/ffmpeg-php.c:94: warning: implicit declaration of function ‘avcodec_init’
make: *** [ffmpeg-php.lo] Error 1
Found another post with same type of issue

Any help is appreciated.


Old 09-18-2012, 03:18 AM   #2
LQ Newbie
Registered: Dec 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
This issue is solved now. I simply compiled ffmpeg-php with an older version of ffmpeg (0.10.4 Freedom - It compiled without a hitch.

Old 11-19-2012, 10:08 AM   #3
LQ Newbie
Registered: Nov 2012
Posts: 1

Rep: Reputation: Disabled
Please, can you tell me how you did it? I succesfully compiled the old version of ffmpeg and installed it, but ffmpeg-php building keep failing!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing ffmpeg-php problem please help! rewards Linux - Software 8 10-08-2011 11:50 PM
Install ffmpeg for PHP ( ffmpeg-php extension ) shlomi.s Linux - Software 2 02-02-2010 12:52 AM
Help me in installing ffmpeg, ffmpeg-PHP, Mplayer, Mencoder, flv2tool, LAME MP3 Encod mitesh.ever Red Hat 5 05-16-2009 12:14 PM
PHP: Adding ffmpeg-php without re-compiling? vxc69 Linux - Software 2 05-17-2007 04:47 PM

All times are GMT -5. The time now is 04:08 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration