to-let
+  jubler.org
|-+  Jubler» Bugs» Compilation and runtime failures with newer SVN snapshots of ffmpeg
Username:
Password:
Pages: [1]
  Print  
Author Topic: Compilation and runtime failures with newer SVN snapshots of ffmpeg  (Read 1925 times)
Firari
Newbie
*
Posts: 9


View Profile
« on: April 28, 2008, 10:43:04 pm »

I was trying to fix header issues introduced in newer versions (headers moving to subdirs). I passed compilation with just changing avformat.h included to libavformat/avformat.h. When I tried to preview a video, Jubler crashed with /usr/lib/jvm/sun-jdk-1.6/bin/java: symbol lookup error: /usr/lib64/jubler/libffdecode.so: undefined symbol: img_convert error. A quicksearch shows that there has been the same issue with other projects (some of them are fixed)

The exact snapshot date is 20080326.

Downstream bug: http://bugs.gentoo.org/show_bug.cgi?id=218091

Thanks,
Serkan
Logged
teras
Administrator
Sr. Member
*****
Posts: 461


View Profile Email
« Reply #1 on: May 03, 2008, 04:31:40 pm »

FFMPEG has obsoleted some functions... like img_convert.

Do you try to compile the static or the dynamic version of ffdecode library?
Logged
Firari
Newbie
*
Posts: 9


View Profile
« Reply #2 on: May 03, 2008, 07:44:05 pm »

Found something that mplayer has done for fix.
http://thiscow.eu/tiki-index.php?page=ffmpeg-api-changed
Logged
Firari
Newbie
*
Posts: 9


View Profile
« Reply #3 on: May 07, 2008, 08:33:55 pm »

http://www.zoneminder.com/forums/viewtopic.php?t=10567&start=0&postdays=0&postorder=asc&highlight=ffmpeg
another example
Logged
teras
Administrator
Sr. Member
*****
Posts: 461


View Profile Email
« Reply #4 on: June 09, 2008, 02:01:13 pm »

Problem fixed in the SVN version of Jubler
Logged
Firari
Newbie
*
Posts: 9


View Profile
« Reply #5 on: June 10, 2008, 03:46:38 am »

Builds fine with specified ffmpeg version (linking to system installed) but fails with bundled ffmpeg. Also fails with "undefined symbol: sws_getCachedContext" at runtime when linked to system installed ffmpeg.
« Last Edit: June 10, 2008, 03:50:37 am by Firari » Logged
teras
Administrator
Sr. Member
*****
Posts: 461


View Profile Email
« Reply #6 on: June 10, 2008, 06:59:51 am »

Bundled ffmpeg might not be the same version, since it's under different repository - don't worry about it, it will work.
The importand part is to link propely in your system.
About the undefined symbol: did you rememeber to "--enable-swscaler" like what you pointed out to me earlier?
http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2006-October/017323.html
Logged
Firari
Newbie
*
Posts: 9


View Profile
« Reply #7 on: June 10, 2008, 08:59:41 am »

There seems to be a typo in the ebuild[1]. It should be --enable-swscaler not --enable-swscale. I'll examine my system to see if it's really not installed. And report the issue to Gentoo. And I'll reply if that fixes the issue (will test it by locally editing the ebuild.)

1: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/ffmpeg/ffmpeg-0.4.9_p20080326.ebuild?view=markup
Logged
Firari
Newbie
*
Posts: 9


View Profile
« Reply #8 on: June 10, 2008, 06:43:42 pm »

I now examined and saw that my assumption was wrong (--enable-swscaler is renamed to --enable-swscale now) The reason is swscale is not given as a parameter to pkgconfig and libffdecode doesn't get link to swscaler. Here's a patch to fix the issue.
Logged
Pages: [1]
  Print  
 
Jump to:  

Renegade Motorhomes - Credit Consolidation - Debt Consolidation - Credit Counseling