Error: ffmpeg headers not found…enable –shared option with FFMPEG

April 10, 2008 on 7:28 pm | In FFMPEG | 1 Comment

You may receive the below error while installing ffmpeg-php in cPanel servers.

Error you receive……

checking for ffmpeg support… yes, shared
checking for ffmpeg headers… configure: error: ffmpeg headers not
found. Make sure you’ve built ffmpeg as shared libs using the –enable-
shared option

This error is due to the header files are not located in “/usr/local/include/ffmpeg” directory.

1. Check whether “/usr/local/include/ffmpeg” directory is created while installing ffmpeg. If not, create this directory.

mkdir /usr/local/include/ffmpeg

2. Copy the necessary ffmpeg header files to “/usr/local/include/ffmpeg”.

cp -p /usr/local/src/ffmpeg/libavformat/avio.h /usr/local/include/ffmpeg
cp -p /usr/local/src/ffmpeg/libavformat/avformat.h /usr/local/include/ffmpeg
cp -p /usr/local/src/ffmpeg/libavcodec/avcodec.h /usr/local/include/ffmpeg

3. After this you need to install your ffmpeg package again. After installing the ffmpeg, install ffmpeg-php.

1 Comment »

RSS feed for comments on this post. TrackBack URI

  1. thank you, brother

    Comment by Greeluck — May 8, 2008 #

Leave a comment