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

By: Published: Jul 29th, 2012 Category: Linux Tips

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).

 FIX:  error: ffmpeg headers not found. Make sure youve built ffmpeg as shared libs

About 

Milind Koyande is a Project Manager and his job is to work with new technologies, specially Cloud Computing / Virtualization Technology. His past projects include Government Sector initiatives, Backup and Disaster Recovery Solutions.

Tags: , , , , ,

One Response to “FIX:- error: ffmpeg headers not found. Make sure you’ve built ffmpeg as shared libs”


  1. FIX:- error: ffmpeg headers not found. Make sure you’ve built ffmpeg as shared libs « .:][ Gr8 Admin Team ][:.
    on Aug 5th, 2011
    @ 9:39 am

    [...] fix checking for ffmpeg headers… configure: error: ffmpeg headers not found. Make sure you’ve built ffmpeg as shared libs using the –enable-shared option Amplify’d from eitwebguru.com [...]

Leave a Reply

Subscribe to eITWebguru

© 2012 eITWebguru. All Rights Reserved.