Linux, Apache, PHP, MySQL Administrators Forums

Go Back   Linux, Apache, PHP, MySQL Administrators Forums > LAMP Forums > PHP - Hypertext Preprocessor

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-20-2009, 02:13 PM
Junior Member
 
Join Date: Jan 2009
Location: HongKong
Posts: 8
Thumbs up FFMpeg shared libraries and header files

Would just like to post here some problems and solutions while trying to upgrade ffmpeg-php to 0.6.1 or probably latest SVN.

First problem:

Code:
configure: error: ffmpeg headers not found. Make sure ffmpeg is compiled as shared libraries using the --enable-shared option
I have confirmed that various headers exists under /usr/include/ffmpeg, however they are under their own directories like below:

Code:
[root@zeus ffmpeg]# ls
libavcodec  libavdevice  libavformat  libavutil  libpostproc  libswscale
Solution: Copy the contents of each directory to the main ffmpeg directory like below:

Code:
[root@zeus ffmpeg]# cp /usr/include/ffmpeg/lib*/* /usr/include/ffmpeg/
Problem #2:

Code:
checking for ffmpeg libavcodec.so... configure: error: ffmpeg share libraries not found. Make sure you've built ffmpeg as shared libs using the --enable-shared option
If you are on 64bit and you are certain the shared lib in question exists under /usr/lib64, you will need to add the directory to /etc/ld.so.conf

Hope this helps anyone and everyone not to lose hairs.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-21-2009, 03:27 AM
Administrator
 
Join Date: Jan 2009
Posts: 40
Default

Thank for the tips jack1981!

Just to be clear to jack1981's post above, this is an installation attempt for the ffmpeg-php extension, the problems he encountered and solutions that worked for him and should for others as well.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 10-02-2009, 04:10 PM
zoticai+c's Avatar
Ambiguos Variable
 
Join Date: Jan 2009
Posts: 2,247
Default

Don't forget to issue `ldconfig` after making changes to ld.so.conf so the compiler accepts the changes as well.
__________________
···dotmanila···
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Tags
centos, ffmpeg, ffmpeg headers, ffmpeg shared libraries, ffmpeg-php


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 11:36 AM.


Community hosted with DotManila Consulting
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2