bugGnash - The GNU Flash player - Bugs: bug #23347, Config failure (ffmpeg)

 
 

bug #23347: Config failure (ffmpeg)

Submitted by:  Benjamin Wolsey <bwy>
Submitted on:  Sat 24 May 2008 06:08:21 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Release: NoneStatus: Fixed
Privacy: PublicAssigned to: Russ Nelson <nelsonrn>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

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.

Benjamin Wolsey <bwy>
Project Member
 Spam posted by an anonymous
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.)

Russ Nelson <nelsonrn>In charge of this item.
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.

Matt Frost <kirkengaard>
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.

Matt Frost <kirkengaard>
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

Matt Frost <kirkengaard>
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.

Rob Savoye <rsavoye>
Project Administrator
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

Matt Frost <kirkengaard>
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

Matt Frost <kirkengaard>
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

Nick Warne <nickw>
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

Benjamin Wolsey <bwy>
Project Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by nelsonrn (Posted a comment)
  • -unavailable- added by rsavoye (Posted a comment)
  • -unavailable- added by kirkengaard (Posted a comment)
  • -unavailable- added by bjacques (Updated the item)
  • -unavailable- added by nickw (Posted a comment)
  • -unavailable- added by bwy (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 18 Aug 2008 06:27:00 AM UTCbwyStatusIn Progress=>Fixed
      Open/ClosedOpen=>Closed
    Thu 29 May 2008 08:36:56 PM UTCnelsonrnStatusNone=>In Progress
    Sun 25 May 2008 08:16:51 AM UTCbjacquesAssigned toNone=>nelsonrn

    Back to the top


    Powered by Savane 3.1-cleanup1