Mon 18 Aug 2008 06:27:00 AM UTC, comment #9:
This was fixed ages ago. I don't know why I haven't closed it.
|
Thu 29 May 2008 08:36:10 PM UTC, comment #8:
Somebody is confused. Maybe it's us, or maybe it's Mandriva's packager, but libformat.pc calls for -I/usr/include/ffmpeg and its avformat.h #includes "avcodec.h", which is consistent, but not what we require. We #include <ffmpeg/avcodec.h>, which requires -I/usr/include. Newer versions of ffmpeg switch to requiring -I/usr/include and they #include <libavcodec/avcodec.h>.
Gah. Botch. Lose. I have work to do, and can't wait for Mandriva to finish installing (it's installing very slowly; I don't know why; it looks like a kernel bug; but I'm hoping the hard-drive-booted version will be fixable; 20 hours remaining in the install; and gnashdev's x86-hardy is down.)
|
Thu 29 May 2008 06:00:15 PM UTC, comment #7:
Whichever of the last two things I did, the symlink or the correction in MediaParser.h, it worked. The build completed with no further errors. Will grep for further instances of hardcoded wrong include locations for ffmpeg.
|
Thu 29 May 2008 05:04:08 PM UTC, comment #6:
Thanks, Rob. I'll check back and try again from scratch and see how that does.
|
Thu 29 May 2008 05:02:01 PM UTC, comment #5:
Related compile bug: make failed at libmedia/MediaParser.h:33 looking for ffmpeg/avcodec.h.
---
In file included from AudioDecoder.h:23,
from AudioDecoderNellymoser.h:51,
from AudioDecoderNellymoser.cpp:49:
MediaParser.h:33:29: error: ffmpeg/avcodec.h: No such file or directory
---
Obviously, with the places where current ffmpeg puts its includes, the file it wants is default $PREFIX/include/libavcodec/avcodec.h; I've tried symlinking it to the desired spot, and also correcting the reference. I'm putting this under this bug item because correction of expected location for ffmpeg includes should make it disappear, but this file is the first build-killer I hit, and therefore one of the references to correct in the process.
Matt
|
Thu 29 May 2008 04:59:36 PM UTC, comment #4:
I thought I checked in a fix for this (I'll check HEAD), but the problem is that $PREFIX is defined in the makefile as lower case, not upper case. The wrong case for PREFIX is in pkg-config, and my fix just converted it to lower case all the time. Once again, pkg-config causes more problems than it supposedly fixes.
|
Thu 29 May 2008 04:20:49 PM UTC, comment #3:
Alright, on ffmpeg from 2008-05-28 and gnash from 2008-05-29, symlinking the installed ffmpeg includes into
$PREFIX/include/ffmpeg/
and specifying
--with-ffmpeg-incl=$PREFIX/include/ffmpeg
lets gnash successfully configure (i.e. without this complaint.)
So that's the gerry-rigging, but from the gnash side perhaps it should simply look for the ffmpeg includes in $PREFIX/include/, where current ffmpeg installs them by default.
(configure failed here with default install of ffmpeg and --with-ffmpeg-incl=$PREFIX/include)
Hope this helps!
Matt
|
Thu 29 May 2008 04:03:00 PM UTC, comment #2:
ffmpeg doesn't default to placing its includes in $PREFIX/include/ffmpeg/...; all of the libav[format, codec, device, etc.] stuff is in $PREFIX/include on my build from 2008-05-28 sources. However, Gnash (0.8.2) looks for this in $PREFIX/include/ffmpeg/, and fails configure when it doesn't find that directory.
I'm going to try gerry-rigging up what gnash is looking for, and see how that works.
Matt
|
Sun 25 May 2008 08:15:56 AM UTC, comment #1:
OK, I just hit the same issue.
Now, I think this is a regression, as I last built Gnash:
2008-05-16
against ffmpeg 'HEAD' built on:
2008-05-11
so it worked then. cvs update today I now get the ffmpeg libavformat error AGAINST the same version of ffmpeg that built OK early.
But, I found that specifying the location of ffmpeg include directory fixes it up for me during ./configure phase - but IU haven't built yet so don't know if the build will fail.
(ffmpeg installed in /usr/local/include/)
--with-ffmpeg-incl=/usr/local/include
...
checking location of avcodec.h using pkgconfig... /usr/local/include/libavcodec/avcodec.h
checking ffmpeg version... 51560
checking for avformat.h... /usr/local/include/libavformat/avformat.h
Nick
|
Sat 24 May 2008 06:08:21 PM UTC, original submission:
I get this failure when trying an ffmpeg build (HEAD), which is wrong:
ERROR: FFMPEG's libavcodec header is installed but not libavformat.
You can install FFMPEG from http://ffmpeg.mplayerhq.hu
or .deb users: apt-get install libavformat-dev
or reconfigure with --enable-media=gst
These files exist:
/usr/lib64/libavformat.so
/usr/lib64/libavformat.so.51
/usr/lib64/libavformat.so.51.12.1
/usr/lib64/pkgconfig/libavformat.pc
|