FIX:- error: ffmpeg headers not found. Make sure you’ve built ffmpeg as shared libs

Filed Under (Linux Tips) by Milind on 05-09-2011

Sometime while compiling FFMPEG-PHP it doesn’t detect FFMPEG as shared lib and throws following Error evern if you have compilied FFMPEG as shared Libs

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

The main reason for this problem is that some libraries of various modules doesn’t gets copied in FFMPEG include directory. To fix this issue, just copy and paste following commands after FFMPEG Installation

# mkdir /usr/local/include/ffmpeg
# cp /usr/local/include/libavcodec/* /usr/local/include/ffmpeg
# cp /usr/local/include/libavdevice/* /usr/local/include/ffmpeg
# cp /usr/local/include/libavformat/* /usr/local/include/ffmpeg
# cp /usr/local/include/libavutil/* /usr/local/include/ffmpeg
# cp /usr/local/include/libswscale/* /usr/local/include/ffmpeg

Now try to compile FFMPEG-PHP and let me know if the error persists (I am sure that this will fix the issue).

No related posts.

Comments:

Total 1 Comment posted FIX:- error: ffmpeg headers not found. Make sure you’ve built ffmpeg as shared libs

Leave a Reply

You must be logged in to post a comment.

Follow US

Enter your email address:


I'm listed in Technology

Sponsors

Advertisement

Become Fan

tag cloud