How to fix ffmpeg-php compile error – make: *** [ffmpeg_frame.lo] Error 1

Valic —  May 19, 2012 — Leave a comment

You are getting the following error while compiling the latest release of ffmpeg-php-0.6.0 ?

This  will let you know how to get this fixed:

The error:

/usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c: In function âzim_ffmpeg_frame_toGDImageâ:
/usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c:336: error: âPIX_FMT_RGBA32â undeclared (first use in this function)
/usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c:336: error: (Each undeclared identifier is reported only once
/usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c:336: error: for each function it appears in.)
/usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c: In function âzim_ffmpeg_frame_ffmpeg_frameâ:
/usr/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

The fix:
Under the ffmpeg-php-0.6.0 directory modify the file: ffmpeg_frame.c

nano ffmpeg_frame.c

Now replace every instance of PIX_FMT_RGBA32 with PIX_FMT_RGB32

In the final spep run the following commands to install ffmpeg correctly

cd /usr/local/src/ffmpeg-php-0.6.0
cp -aP ffmpeg_frame.loT ffmpeg_frame.lo
make clean
./configure
make
make install

Enjoy

Valic

Posts Twitter Facebook

Editor in Chief at Debian-Tutorials, Linux enthusiast.

No Comments

Be the first to start the conversation.

Leave a Reply