Installing ffmpeg2theora with scons can't find libavcodec
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
My $PKG_CONFIG_PATH is:
/usr/lib/pkgconfig:/usr/share/pkgconfig:/usr/X11R7/lib/pkgconfig:/opt/qt/lib/pkgconfig:/opt/qt-3.3.7/lib/pkgconfig:/usr/local/lib/pkgconfig:/opt/lib/pkgconfig
avcodec.h used to be installed in ffmpeg/avcodec.h, but some time near the beginning of this year it was moved to libavcodec/avcodec.h. It would appear that ffmpeg2theora isn't aware of the change.
The easiest thing to do to get it to compile would be to find in all the source files where you have "#include <ffmpeg/avcodec.h>" and change it to "#include <libavcodec/avcodec.h>"
I wonder if the warning about libavcodec not being found in PKG_CONFIG_PATH isn't a false lead, since when I run "pkg-config --cflags --libs "libavcodec"" I get the following:
I had already installed ffmpeg via svn. I did use get_ffmpeg_svn.sh to download and compile ffmpeg in the source directory but didn't actually install that one.
Edit to add: I should say by saying I'd already installed ffmpeg via svn I should say that I had just updated the svn files and installed it 10 minutes before I started on ffmpeg2theora.
Edited again: Looking again at your output I should note that when installing ffmpeg I did not enable faac, a52, or x264. I don't know what the -lz is
I tried recreating your issue, but after uninstalling the currently installed ffmpeg (which was ffmpeg-svn_13024-i586-2gsb) and building via get_ffmpeg_svn.sh I was able to successfully build ffmpeg2theora without a problem. I also got the same output as you now when running "pkg-config --cflags --libs "libavcodec"" after installing the new ffmpeg.
Which distro are you using? Maybe you're missing the ffmpeg development libraries, and pkg-config is using outdated cache information. I would suggest reinstalling ffmpeg that's provided, and check for ffmpeg-dev* package as well.
I really appreciate the time and effort. It is odd. I've used both of these programs before. Something in the upgrade broke it, I guess. Maybe I can try to find the old versions.
I'm using Linux From Scratch 6.3. Everything I have was compiled from source.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.