Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
cd ffmpeg-php*
phpize 
./configure --with-ffmpeg=/usr/local/cpffmpeg 
make

Then I end up with the following issues on my make:

...
...
...

/usr/src/ffmpeg-php-0.6.0/ffmpeg-php.c:86: warning: (near initialization for âini_entriesâ)
/usr/src/ffmpeg-php-0.6.0/ffmpeg-php.c:86: warning: excess elements in scalar initializer
/usr/src/ffmpeg-php-0.6.0/ffmpeg-php.c:86: warning: (near initialization for âini_entriesâ)
/usr/src/ffmpeg-php-0.6.0/ffmpeg-php.c:86: warning: excess elements in scalar initializer
/usr/src/ffmpeg-php-0.6.0/ffmpeg-php.c:86: warning: (near initialization for âini_entriesâ)
/usr/src/ffmpeg-php-0.6.0/ffmpeg-php.c:92: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â{â token
/usr/src/ffmpeg-php-0.6.0/ffmpeg-php.c:130: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â{â token
/usr/src/ffmpeg-php-0.6.0/ffmpeg-php.c:143: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â{â token
/usr/local/cpffmpeg/include/libavformat/avio.h:266: error: old-style parameter declarations in prototyped function definition
/usr/src/ffmpeg-php-0.6.0/ffmpeg-php.c:163: error: expected â{â at end of input
make: *** [ffmpeg-php.lo] Error 1

EDIT: I tried this:

CFLAGS=-I/usr/local/cpffmpeg/include/ ./configure --with-ffmpeg=/usr/local/cpffmpeg

and got:

make
/bin/sh /usr/src/ffmpeg-php-0.6.0/libtool --mode=compile cc  -I. -I/usr/src/ffmpeg-php-0.6.0 -DPHP_ATOM_INC -I/usr/src/ffmpeg-php-0.6.0/include -I/usr/src/ffmpeg-php-0.6.0/main -I/usr/src/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/local/cpffmpeg/include/libavcodec/ -I/usr/local/cpffmpeg/include/libavformat/ -I/usr/local/cpffmpeg/include/libavutil/ -I/usr/local/cpffmpeg/include/libswscale/ -I/usr/local/cpffmpeg/include/libavfilter/ -I/usr/local/cpffmpeg/include/libavdevice/  -DHAVE_CONFIG_H  -I/usr/local/cpffmpeg/include/ -Wall -fno-strict-aliasing   -c /usr/src/ffmpeg-php-0.6.0/ffmpeg-php.c -o ffmpeg-php.lo
mkdir .libs
 cc -I. -I/usr/src/ffmpeg-php-0.6.0 -DPHP_ATOM_INC -I/usr/src/ffmpeg-php-0.6.0/include -I/usr/src/ffmpeg-php-0.6.0/main -I/usr/src/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/local/cpffmpeg/include/libavcodec/ -I/usr/local/cpffmpeg/include/libavformat/ -I/usr/local/cpffmpeg/include/libavutil/ -I/usr/local/cpffmpeg/include/libswscale/ -I/usr/local/cpffmpeg/include/libavfilter/ -I/usr/local/cpffmpeg/include/libavdevice/ -DHAVE_CONFIG_H -I/usr/local/cpffmpeg/include/ -Wall -fno-strict-aliasing -c /usr/src/ffmpeg-php-0.6.0/ffmpeg-php.c  -fPIC -DPIC -o .libs/ffmpeg-php.o
In file included from /usr/include/sys/stat.h:107,
                 from /usr/local/include/php/main/php_streams.h:28,
                 from /usr/local/include/php/main/php.h:400,
                 from /usr/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/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/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/src/ffmpeg-php-0.6.0/ffmpeg-php.c: In function âzm_startup_ffmpegâ:
/usr/src/ffmpeg-php-0.6.0/ffmpeg-php.c:94: warning: implicit declaration of function âavcodec_initâ
make: *** [ffmpeg-php.lo] Error 1

I'm not entire sure what is wrong. Been googling for some answers but so far I've got nothing.

I used http://ffmpeginstaller.com/ for the FFMPRG install. Bad idea? I know autoinstaller systems are very bad ideas.

EDIT: Tried other versions, same issue.

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.