bugGnash - The GNU Flash player - Bugs: bug #24685, Build against current ffmpeg-svn...

 
 

bug #24685: Build against current ffmpeg-svn (2008-10-28) fails

Submitted by:  Sandro Santilli <strk>
Submitted on:  Wed 29 Oct 2008 10:15:49 AM UTC  
 
Category: buildSeverity: 5 - Blocker
Release: NoneStatus: Wont Fix
Privacy: PublicAssigned to: Sandro Santilli <strk>
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)

Thu 12 Mar 2009 10:57:21 PM UTC, comment #6:

I don't have this distro version anymore, so I'm closing this. It may work, or it may not.

Benjamin Wolsey <bwy>
Project Member
Sat 08 Nov 2008 11:42:25 PM UTC, comment #5:

Now it won't complete configure on an older distro (Mandriva 2008.1), either if I pass no ffmpeg options or if I tell it where avcodec.h is. It worked fine before the fixes for this bug.

It tells me:
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

Benjamin Wolsey <bwy>
Project Member
Thu 06 Nov 2008 08:30:19 AM UTC, comment #4:

Is this fixed again now ?

Sandro Santilli <strk>
Project MemberIn charge of this item.
Wed 05 Nov 2008 12:50:54 PM UTC, comment #3:

I accidentally committed with some other stuff a hack I was using to get it to build at all.

Benjamin Wolsey <bwy>
Project Member
Wed 05 Nov 2008 12:28:29 PM UTC, comment #2:

I'm opening this again because I can't build when specifying --with-ffmpeg-incl.

I should pass /usr/local/include/ffmpeg as an argument (unless I'm supposed to pass the directory containing avcodec.h, but that's not in the instructions). The macro ffmpeg.m4 does dirname (why?) to get /usr/local/include, then searches for avcodec.h in /usr/local/include, usr/local/include/ffmpeg, and /usr/local/libavcodec:

if test -f ${with_ffmpeg_incl}/avcodec.h \
-o -f${with_ffmpeg_incl}/ffmpeg/avcodec.h \
-o -f ${with_ffmpeg_incl}/libavcodec/avcodec.h; then
ac_cv_path_ffmpeg_incl="-I`(cd ${with_ffmpeg_incl}; pwd)`"

But it's in /usr/local/include/ffmpeg/libavcodec. Then even if it's found, the variable avcodec_h is not defined, so the version check "if test x"${avcodec_h}" != x" fails, and none of the succeeding tests work either.

Benjamin Wolsey <bwy>
Project Member
Wed 29 Oct 2008 01:33:36 PM UTC, comment #1:

I fixed the ffmpeg.m4 once again, to honour --with-ffmpeg-lib.

Unfortunately, libtool seems to force a -L/usr/lib trough
*.la files, so if system ffmpeg is also installed, linking
results in a mix of system and custom ffmpeg libraries,
which in turn brings to runtime nightmares (segfaults usually)

Please test your ffmpeg builds, crosscompiling and not.

Committed revision 10190.

Sandro Santilli <strk>
Project MemberIn charge of this item.
Wed 29 Oct 2008 10:15:49 AM UTC, original submission:

./configure --enable-media=ffmeg \
--with-ffmpeg-lib=/extra/ffmpeg-svn-20081028/lib/ \
--with-ffmpeg-incl=/extra/ffmpeg-svn-20081028/include/

No ERROR from configure, but make dumpconfig reports:

FFMPEG_CFLAGS is -I/extra/ffmpeg-svn-20081028/include
FFMPEG_LIBS is -L/extra/ffmpeg-svn-20081028/lib -lvorbisenc -lvorbis -lm -logg -lavutil -ltheora -logg -lgsm -ldc1394_control

You can see there's no -lavcodec and -lavformat at all in the
LIBS line !!

Build doesn't fail, but of course run does:
libmedia/.libs/libgnashmedia-trunk.so: undefined symbol: av_register_all

Sandro Santilli <strk>
Project MemberIn charge of this item.

 

(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 bwy (Posted a comment)
  • -unavailable- added by strk (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 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 12 Mar 2009 10:57:21 PM UTCbwyStatusConfirmed=>Wont Fix
      Open/ClosedOpen=>Closed
    Wed 05 Nov 2008 12:33:02 PM UTCbwyOpen/ClosedClosed=>Open
    Wed 05 Nov 2008 12:28:29 PM UTCbwyStatusFixed=>Confirmed
    Sat 01 Nov 2008 10:03:00 AM UTCstrkStatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
    Wed 29 Oct 2008 01:33:36 PM UTCstrkStatusIn Progress=>Ready For Test

    Back to the top


    Powered by Savane 3.1-cleanup1