LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 08-18-2009, 01:27 PM   #1
kingkashif
Member
 
Registered: May 2009
Posts: 92

Rep: Reputation: 16
ffmpeg-php configuration errror


Hello all..

Well i am running debian.. I am trying to install ffmpeg-php-0.6.0

after running phpize..

when i do ./configure then i get following error.

Code:
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc and cc understand -c and -o together... yes
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20020429
checking for re2c... exit 0;
checking for gawk... gawk
checking for ffmpeg support... yes, shared
checking whether to force gd support in ffmpeg-php... no
./configure: line 4651: syntax error near unexpected token `ffmpeg,'
./configure: line 4651: `  PHP_ADD_EXTENSION_DEP(ffmpeg, gd)'
Pleaes please help me.. As i am really desperate for this to be solved.

I would really appreciate any help.

NOTE -- In older versions the configuration process completes successfully but i get error while i run "make"..

regards

Last edited by kingkashif; 08-19-2009 at 07:14 AM.
 
Old 08-18-2009, 02:16 PM   #2
kingkashif
Member
 
Registered: May 2009
Posts: 92

Original Poster
Rep: Reputation: 16
Ok .. The above problem was solved by upgrading php version to 5.x.x ..

Now when i do "make" then i get following error.. Please now do help me

Code:
 gcc -I. -I/usr/local/src/ffmpeg-php-0.6.0 -DPHP_ATOM_INC -I/usr/local/src/ffmpeg-php-0.6.0/include -I/usr/local/src/ffmpeg-php-0.6.0/main -I/usr/local/src/ffmpeg-php-0.6.0 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/local/include/ffmpeg -DHAVE_CONFIG_H -g -O2 -Wno-deprecated-declarations -Wall -fno-strict-aliasing -c /usr/local/src/ffmpeg-php-0.6.0/ffmpeg_movie.c  -fPIC -DPIC -o .libs/ffmpeg_movie.o
/bin/sh /usr/local/src/ffmpeg-php-0.6.0/libtool --mode=compile gcc  -I. -I/usr/local/src/ffmpeg-php-0.6.0 -DPHP_ATOM_INC -I/usr/local/src/ffmpeg-php-0.6.0/include -I/usr/local/src/ffmpeg-php-0.6.0/main -I/usr/local/src/ffmpeg-php-0.6.0 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/local/include/ffmpeg  -DHAVE_CONFIG_H  -g -O2 -Wno-deprecated-declarations -Wall -fno-strict-aliasing   -c /usr/local/src/ffmpeg-php-0.6.0/ffmpeg_frame.c -o ffmpeg_frame.lo
 gcc -I. -I/usr/local/src/ffmpeg-php-0.6.0 -DPHP_ATOM_INC -I/usr/local/src/ffmpeg-php-0.6.0/include -I/usr/local/src/ffmpeg-php-0.6.0/main -I/usr/local/src/ffmpeg-php-0.6.0 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/local/include/ffmpeg -DHAVE_CONFIG_H -g -O2 -Wno-deprecated-declarations -Wall -fno-strict-aliasing -c /usr/local/src/ffmpeg-php-0.6.0/ffmpeg_frame.c  -fPIC -DPIC -o .libs/ffmpeg_frame.o
/usr/local/src/ffmpeg-php-0.6.0/ffmpeg_frame.c: In function 'zim_ffmpeg_frame_toGDImage':
/usr/local/src/ffmpeg-php-0.6.0/ffmpeg_frame.c:336: error: 'PIX_FMT_RGBA32' undeclared (first use in this function)
/usr/local/src/ffmpeg-php-0.6.0/ffmpeg_frame.c:336: error: (Each undeclared identifier is reported only once
/usr/local/src/ffmpeg-php-0.6.0/ffmpeg_frame.c:336: error: for each function it appears in.)
/usr/local/src/ffmpeg-php-0.6.0/ffmpeg_frame.c: In function 'zim_ffmpeg_frame_ffmpeg_frame':
/usr/local/src/ffmpeg-php-0.6.0/ffmpeg_frame.c:421: error: 'PIX_FMT_RGBA32' undeclared (first use in this function)
make: *** [ffmpeg_frame.lo] Error 1
Please

Last edited by kingkashif; 08-19-2009 at 07:15 AM.
 
Old 08-18-2009, 03:52 PM   #3
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,975

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
Look here for the solution of this error.

Regards
 
Old 08-18-2009, 07:48 PM   #4
kingkashif
Member
 
Registered: May 2009
Posts: 92

Original Poster
Rep: Reputation: 16
Thanks for replying..

Well ffmpeg-php seems to have installed without any error now...

I then added "extension=ffmpeg.so" into my php.ini file.

After restarting webserver when "php -m" or just type "php" and enter then i get following error.

Quote:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613/ffmpeg.so' - libavformat.so.52: cannot open shared object file: No such file or directory in Unknown on line 0
ffmpeg.so is there at /usr/lib/php5/20060613/ffmpeg.so .. But i really don't know why i am getting that error. Using http://localhost/phpinfo.php function i also do not see any ffmpeg-php installed.

Please help me.
 
Old 08-18-2009, 07:59 PM   #5
kingkashif
Member
 
Registered: May 2009
Posts: 92

Original Poster
Rep: Reputation: 16
well i found somewhere that this last problem could be solved by doing following.

Quote:
export LD_LIBRARY_PATH=/usr/local/lib/
But now after executing above.. When i type "php" and hit enter then i get this error
Quote:
Segmentation fault
Please anyone.. Help me.. I don't know whats going on
 
Old 08-19-2009, 01:33 AM   #6
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,975

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
I guess this is because you had php installed in /usr/local and then you have installed php-5.x.x in /usr. Setting the LD_LIBRARY_PATH=/usr/local/lib, makes php to use the libraries from /usr/local/lib/php, so it segfaults.
Unset LD_LIBRARY_PATH and see if php works.
If you still get the error that ffmpeg.so cannot find libavformat.so.52, check php.ini to see if the extension_dir points to the directory where ffmpeg.so is installed. Also try to locate manually libavformat.so.52:
Code:
updatedb
locate libavformat.so.52
 
Old 08-19-2009, 07:11 AM   #7
kingkashif
Member
 
Registered: May 2009
Posts: 92

Original Poster
Rep: Reputation: 16
Well i have unset LD_LIBRARY_PATH and now the php is working fine... but i still get cannot find libavformat.so.52 error

I don't know what seems to be the problem

My php is installed at /usr/local/php5/bin/php
the ffmpeg-php is installed at /usr/local/php5/lib/php/extensions/no-debug-non-zts-20060613/ffmpeg.so

When i run "php" and hit enter then i get

Code:
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/php5/lib/php/extensions/no-debug-non-zts-20060613/ffmpeg.so' - libavformat.so.52: cannot open shared object file: No such file or directory in Unknown on line 0
When i ran "locate libavformat.so.52" then i got

Code:
/usr/local/lib/libavformat.so.52
/usr/local/lib/libavformat.so.52.37.0

What should i do ?

P.S -> extension_dir is pointing to same directory where ffmpeg.so resides.

Last edited by kingkashif; 08-19-2009 at 07:13 AM.
 
Old 08-19-2009, 07:23 AM   #8
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,975

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
To me it looks like you have 2 instances of php installed. One in /usr (maybe using your package manager) and the other in /usr/local (compiled from source?)
Running
Code:
which php
should tell you which one you're using. If you're running php from /usr/bin, them copying libavformat.so.52* in /usr/lib could solve your problem, even though it's not an elegant solution.
 
Old 08-19-2009, 12:33 PM   #9
kingkashif
Member
 
Registered: May 2009
Posts: 92

Original Poster
Rep: Reputation: 16
yeah thats right i am using two .. But the current active php for my webserver is at /usr/local/php5/bin/php
the php in /usr/bin/php is just a symbolic link to the first one.

I think it looks in /usr/lib64 for libavformat.so.52 library. When i copy that library to /usr/lib64 or make a sym link. Then i get this errror.

Code:
php: symbol lookup error: /usr/local/php5/lib/php/extensions/no-debug-non-zts-20060613/ffmpeg.so: undefined symbol: register_ffmpeg_frame_class
running "which php" shows /usr/bin/php but it's as i said a symlink to /usr/local/php5/bin/php


I even downgraded ffmpeg(someone's idea) for it. But still same.

Any ideas ??

Last edited by kingkashif; 08-19-2009 at 12:34 PM.
 
Old 08-19-2009, 12:57 PM   #10
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,975

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
But that's not explaining the fact that setting LD_LIBRARY_PATH=/usr/local/lib php segfaults.

Anyway I have installed ffmpeg-php just for testing on my apache-2.2.13, php-2.3.0 and ffmpeg-g-SVN-r1958. It was built successfully and using the tests it worked as expected. So I guess you have to upgrade ffmpeg from svn and not downgrade it.
What is the output of
Code:
nm /usr/local/php5/lib/php/extensions/no-debug-non-zts-20060613/ffmpeg.so|grep grep register_ffmpeg_frame_class
If you see a "U" it means that's undefined. For my setup it's
Quote:
00006040 T register_ffmpeg_frame_class

Last edited by bathory; 08-19-2009 at 12:59 PM.
 
Old 08-19-2009, 01:30 PM   #11
kingkashif
Member
 
Registered: May 2009
Posts: 92

Original Poster
Rep: Reputation: 16
Yeah yeah i see a U.. The output is

Code:
U register_ffmpeg_frame_class
what should i do ?
 
Old 08-19-2009, 01:39 PM   #12
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,975

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
Upgrade ffmpeg from svn or git, whatever you prefer better. FYI I have used the following ./configure options:
Quote:
./configure --enable-shared --enable-libvorbis --enable-gpl --enable-nonfree --enable-pthreads --enable-libfaac --enable-libfaad --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-libxvid --enable-x11grab
but you can use your own options, specially if you want to avoid installing additional software you're not going to use.
 
Old 08-19-2009, 02:57 PM   #13
kingkashif
Member
 
Registered: May 2009
Posts: 92

Original Poster
Rep: Reputation: 16
well i fresh installed ffmpeg from

Code:
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
And then i again downloaded ffmpeg-0.6.0 and compiled installed it but i am still getting that error

Code:
php: symbol lookup error: /usr/local/php5/lib/php/extensions/no-debug-non-zts-20060613/ffmpeg.so: undefined symbol: register_ffmpeg_frame_class
and by using command "nm" i still get
Code:
U register_ffmpeg_frame_class
the output of "nm /usr/local/php5/lib/php/extensions/no-debug-non-zts-20060613/ffmpeg.so" is

Code:
U add_property_resource_ex
                 U ap_php_snprintf
                 U av_close_input_file
                 U avcodec_alloc_frame
                 U avcodec_close
                 U avcodec_decode_video
                 U avcodec_find_decoder
                 U avcodec_flush_buffers
                 U avcodec_get_pix_fmt_name
                 U avcodec_init
                 U avcodec_open
                 U avcodec_version
                 U av_find_stream_info
                 U av_free
                 U av_free_packet
                 U av_log_set_callback
                 U av_open_input_file
                 U avpicture_alloc
                 U av_picture_copy
                 U av_read_frame
                 U av_register_all
                 U av_seek_frame
0000000000107a60 A __bss_start
0000000000002dc0 t call_gmon_start
                 U calloc@@GLIBC_2.2.5
0000000000107a60 b completed.5959
                 U convert_to_boolean
                 U convert_to_long
                 U _convert_to_string
0000000000107008 d __CTOR_END__
0000000000107000 d __CTOR_LIST__
                 w __cxa_finalize@@GLIBC_2.2.5
                 U display_ini_entries
0000000000005b30 t __do_global_ctors_aux
0000000000002de0 t __do_global_dtors_aux
0000000000107460 d __dso_handle
0000000000107018 d __DTOR_END__
0000000000107010 d __DTOR_LIST__
0000000000107028 a _DYNAMIC
0000000000107a60 A _edata
                 U _efree
                 U _emalloc
0000000000107d18 A _end
                 U _estrndup
                 U executor_globals
                 U expand_filepath
0000000000005a30 T ffmpeg_errorhandler
0000000000005a60 T ffmpeg_img_convert
0000000000107480 D ffmpeg_module_entry
0000000000107a80 B ffmpeg_movie_class_entry
0000000000107a68 b ffmpeg_movie_class_entry_ptr
0000000000107640 D ffmpeg_movie_class_methods
0000000000005b68 T _fini
0000000000002e30 t frame_dummy
0000000000006940 r __FRAME_END__
                 U free@@GLIBC_2.2.5
0000000000002e60 T get_module
0000000000107238 a _GLOBAL_OFFSET_TABLE_
                 w __gmon_start__
0000000000107520 d ini_entries
0000000000002970 T _init
0000000000107020 d __JCR_END__
0000000000107020 d __JCR_LIST__
                 w _Jv_RegisterClasses
0000000000107a70 b le_ffmpeg_movie
0000000000107a74 b le_ffmpeg_pmovie
                 U malloc@@GLIBC_2.2.5
                 U _object_init_ex
0000000000107468 d p.5957
0000000000005050 t _php_alloc_ffmovie_ctx
                 U _php_create_ffmpeg_frame
                 U php_error_docref0
0000000000005290 t _php_free_ffmpeg_movie
0000000000005240 t _php_free_ffmpeg_pmovie
0000000000004110 t _php_get_av_frame
0000000000003c30 t _php_get_codec_bit_rate
0000000000004c90 t _php_get_codec_name
0000000000003b10 t _php_get_decoder_context
0000000000003090 t _php_get_duration
0000000000004440 t _php_get_ff_frame
0000000000003080 t _php_get_filename
0000000000003140 t _php_get_frameheight
0000000000003fd0 t _php_get_framenumber
00000000000030b0 t _php_get_framerate
0000000000003120 t _php_get_framewidth
0000000000003fb0 t _php_get_pixelformat
0000000000003020 t _php_get_stream_index
0000000000003060 t _php_get_video_stream
                 U php_info_print_table_end
                 U php_info_print_table_row
                 U php_info_print_table_start
00000000000040c0 t _php_open_movie_file
00000000000042e0 T _php_pre_read_frame
                 U php_verror
                 U register_ffmpeg_frame_class
00000000000050a0 T register_ffmpeg_movie_class
                 U _safe_emalloc
                 U strlen@@GLIBC_2.2.5
                 U sws_freeContext
                 U sws_getContext
                 U sws_scale
                 U zend_error
                 U zend_fetch_resource
                 U _zend_get_parameters_array_ex
                 U _zend_hash_add_or_update
                 U zend_hash_find
                 U zend_ini_long
                 U _zend_list_addref
                 U _zend_list_find
                 U zend_register_ini_entries
                 U zend_register_internal_class
                 U zend_register_list_destructors_ex
                 U zend_register_long_constant
                 U zend_register_resource
                 U zend_register_string_constant
                 U zend_unregister_ini_entries
                 U zend_wrong_param_count
00000000000052e0 T zim_ffmpeg_movie___construct
0000000000004830 T zim_ffmpeg_movie_getAlbum
0000000000003d20 T zim_ffmpeg_movie_getAudioBitRate
0000000000003ed0 T zim_ffmpeg_movie_getAudioChannels
0000000000004da0 T zim_ffmpeg_movie_getAudioCodec
0000000000003df0 T zim_ffmpeg_movie_getAudioSampleRate
0000000000003160 T zim_ffmpeg_movie_getAudioStreamId
00000000000049f0 T zim_ffmpeg_movie_getAuthor
00000000000034d0 T zim_ffmpeg_movie_getBitRate
0000000000004bb0 T zim_ffmpeg_movie_getComment
0000000000004910 T zim_ffmpeg_movie_getCopyright
00000000000038d0 T zim_ffmpeg_movie_getDuration
0000000000004670 T zim_ffmpeg_movie_getFileName
0000000000005810 T zim_ffmpeg_movie_getFrame
00000000000037d0 T zim_ffmpeg_movie_getFrameCount
0000000000003590 T zim_ffmpeg_movie_getFrameHeight
0000000000004000 T zim_ffmpeg_movie_getFrameNumber
0000000000003710 T zim_ffmpeg_movie_getFrameRate
0000000000003650 T zim_ffmpeg_movie_getFrameWidth
0000000000004750 T zim_ffmpeg_movie_getGenre
0000000000004560 T zim_ffmpeg_movie_getNextKeyFrame
0000000000004310 T zim_ffmpeg_movie_getPixelAspectRatio
0000000000004f60 T zim_ffmpeg_movie_getPixelFormat
0000000000004ad0 T zim_ffmpeg_movie_getTitle
0000000000003a50 T zim_ffmpeg_movie_getTrackNumber
0000000000003c50 T zim_ffmpeg_movie_getVideoBitRate
0000000000004e80 T zim_ffmpeg_movie_getVideoCodec
0000000000003240 T zim_ffmpeg_movie_getVideoStreamId
0000000000003990 T zim_ffmpeg_movie_getYear
00000000000033f0 T zim_ffmpeg_movie_hasAudio
0000000000003320 T zim_ffmpeg_movie_hasVideo
0000000000002e70 T zm_info_ffmpeg
0000000000002f30 T zm_shutdown_ffmpeg
0000000000002f50 T zm_startup_ffmpeg
                 U _zval_copy_ctor_func
I am very upset about this....

I really don't know where i am going wrong.

please help

P.S-> Would you look into this if i give you ssh credentials to my server ? If we get it right then all other friends who might be facing same issue can benefit from it aswell .. ??

Last edited by kingkashif; 08-19-2009 at 04:05 PM.
 
Old 08-19-2009, 03:41 PM   #14
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,975

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
I think that you have mixed shared libraries and header files from various directories. I also noted that you have a /usr/lib64 dir, so I guess your OS is 64-bit. Maybe that's the cause, because for example libavformat.so.52 should go into /usr/lib as a 32-bit lib. You can verify it by
Code:
file /usr/local/lib/libavformat.so.52.37.0
You can edit /etc/ld.so.conf, add in the top the missing directories (e.g. /usr/local/lib etc) and run ldconfig. Check if it's working now, or else do the following:
Run make distclean in the ffmpeg-php-0.6.0 directory and then
Code:
export LD_LIBRARY_PATH=/usr/local/php5/lib:$LD_LIBRARY_PATH
export PATH=/usr/local/php5/bin:$PATH
./configure
After make install run ldconfig and test if ffmpeg.so still complains.
Quote:
P.S-> Would you look into this if i give you ssh credentials to my server ? If we get it right then all other friends who might be facing same issue can benefit from it aswell .. ??
Thx, but I don't feel comfortable poking in other peoples boxes.
You can contact the developer or fill a bug report if you want.

Regards
 
Old 08-19-2009, 04:03 PM   #15
kingkashif
Member
 
Registered: May 2009
Posts: 92

Original Poster
Rep: Reputation: 16
lol it's funny because I once again downloaded fresh ffmpeg-php-0.6.0. After ./configure and make, i ran "make test" ... Every test FAILD as always.

Before "make install" i went ahead and Commented "extention=ffmpeg.so" in php.ini.

After "make install" I added "extension=ffmpeg.so" before zend_extension like following

Code:
extension=ffmpeg.so
zend_extension="/usr/local/dh/apache/template/phpext/ZendExtensionManager.so"
zend_extension="/usr/local/dh/apache/template/phpext/zend_optimizer5/ZendOptimizer.so"
After guess work. IT WORKSSSSSSSSSSSSSSS. I am so happy

But yeah i remember the biggest change this time that i did
was that in the latest version of ffmpeg-php (0.6.0), update ffmpeg_frame.c and replace every instance of PIX_FMT_RGBA32 with PIX_FMT_RGB32

Code:
vi ffmpeg_frame.c
:%s/PIX_FMT_RGBA32/PIX_FMT_RGB32
:w
:q!
./configure
make
make install
Before this i would always get following error during
compilation
Code:
 gcc -I. -I/usr/local/src/ffmpeg-php-0.6.0 -DPHP_ATOM_INC -I/usr/local/src/ffmpeg-php-0.6.0/include -I/usr/local/src/ffmpeg-php-0.6.0/main -I/usr/local/src/ffmpeg-php-0.6.0 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/local/include/ffmpeg -DHAVE_CONFIG_H -g -O2 -Wno-deprecated-declarations -Wall -fno-strict-aliasing -c /usr/local/src/ffmpeg-php-0.6.0/ffmpeg_movie.c  -fPIC -DPIC -o .libs/ffmpeg_movie.o
/bin/sh /usr/local/src/ffmpeg-php-0.6.0/libtool --mode=compile gcc  -I. -I/usr/local/src/ffmpeg-php-0.6.0 -DPHP_ATOM_INC -I/usr/local/src/ffmpeg-php-0.6.0/include -I/usr/local/src/ffmpeg-php-0.6.0/main -I/usr/local/src/ffmpeg-php-0.6.0 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/local/include/ffmpeg  -DHAVE_CONFIG_H  -g -O2 -Wno-deprecated-declarations -Wall -fno-strict-aliasing   -c /usr/local/src/ffmpeg-php-0.6.0/ffmpeg_frame.c -o ffmpeg_frame.lo
 gcc -I. -I/usr/local/src/ffmpeg-php-0.6.0 -DPHP_ATOM_INC -I/usr/local/src/ffmpeg-php-0.6.0/include -I/usr/local/src/ffmpeg-php-0.6.0/main -I/usr/local/src/ffmpeg-php-0.6.0 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/local/include/ffmpeg -DHAVE_CONFIG_H -g -O2 -Wno-deprecated-declarations -Wall -fno-strict-aliasing -c /usr/local/src/ffmpeg-php-0.6.0/ffmpeg_frame.c  -fPIC -DPIC -o .libs/ffmpeg_frame.o
/usr/local/src/ffmpeg-php-0.6.0/ffmpeg_frame.c: In function 'zim_ffmpeg_frame_toGDImage':
/usr/local/src/ffmpeg-php-0.6.0/ffmpeg_frame.c:336: error: 'PIX_FMT_RGBA32' undeclared (first use in this function)
/usr/local/src/ffmpeg-php-0.6.0/ffmpeg_frame.c:336: error: (Each undeclared identifier is reported only once
/usr/local/src/ffmpeg-php-0.6.0/ffmpeg_frame.c:336: error: for each function it appears in.)
/usr/local/src/ffmpeg-php-0.6.0/ffmpeg_frame.c: In function 'zim_ffmpeg_frame_ffmpeg_frame':
/usr/local/src/ffmpeg-php-0.6.0/ffmpeg_frame.c:421: error: 'PIX_FMT_RGBA32' undeclared (first use in this function)
make: *** [ffmpeg_frame.lo] Error 1
to overcome this compilation error I would usually do

Code:
cp ffmpeg_frame_loT ffmpeg_frame_lo
This change would let me compile and then install ffmpeg-php but i after installation i would run into all
those issues

So at last this issue has been solved now. Any one facing same issue should read this whole thread from top to bottom. I am sure it will be informative for you.


In the end I would thank bathory from the core of my heart for solving this issue for me. THANKS BUDDY

Last edited by kingkashif; 08-19-2009 at 04:08 PM.
 
  


Reply


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
Help me in installing ffmpeg, ffmpeg-PHP, Mplayer, Mencoder, flv2tool, LAME MP3 Encod mitesh.ever Red Hat 5 05-16-2009 01:14 PM
ffmpeg-php problems ulver Linux - Software 0 12-17-2008 07:01 AM
Does the latest version of ffmpeg not work with ffmpeg-php? whitey4900 Linux - Software 0 08-04-2008 06:16 PM
PHP: Adding ffmpeg-php without re-compiling? vxc69 Linux - Software 2 05-17-2007 05:47 PM


All times are GMT -5. The time now is 12:21 PM.

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