google-code-export / ffmpegthumbnailer

Automatically exported from code.google.com/p/ffmpegthumbnailer
GNU General Public License v2.0
1 stars 1 forks source link

Faulty avcodec_decode_video2 check in configure #78

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Configure script is hard-coded to use only system default library paths for the 
avcodec_decode_video2 check:

cd ffmpeg-0.6.1
./configure --prefix=/opt/ffmpeg --enable-nonfree --enable-gpl --enable-shared 
--enable-postproc --enable-swscale
make install

cd ffmpegthumbnailer-2.0.6
PKG_CONFIG_PATH=/opt/ffmpeg/lib/pkgconfig/ ./configure 
--prefix=/opt/ffmpegthumbnailer --enable-png --enable-jpeg --enable-static 
--with-pic
...
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for FFMPEG... yes
checking for avcodec_decode_video2 in -lavcodec... no
configure: error:  +Your version of libavcodec is too old 

The attached patch fixes configuring and compilation in such faulty cases.

Original issue reported on code.google.com by rahre...@gmail.com on 19 Jan 2011 at 1:06

Attachments:

GoogleCodeExporter commented 9 years ago
This updated patch works also with the vanilla ffmpegthumbnailer-2.0.6 archive.

Original comment by rahre...@gmail.com on 19 Jan 2011 at 1:24

Attachments:

GoogleCodeExporter commented 9 years ago
This would need to be fixed in configure.ac since the configure file is not 
even in subversion

Original comment by dirk.vdb on 20 Jan 2011 at 3:35

GoogleCodeExporter commented 9 years ago
Here is a patch for configure.ac.

Instead of using AC_CHECK_LIB, it simple passes a minimum libavcodec version to 
PKG_CHECK_MODULES.

It also eliminates the custom error message if ffmpeg is not found. The default 
error message gives the user more detailed feedback. For example:

Requested 'libavcodec >= 53.26.0' but version of libavcodec is 53.7.0

Original comment by floppymaster@gmail.com on 24 Jul 2011 at 4:34

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks,
your patch did the job beautifully on my iBook :)
I will try the same change with 2.0.7 ;-)
Nabil

Original comment by nabilh2...@gmail.com on 20 Feb 2012 at 10:26

GoogleCodeExporter commented 9 years ago
Sorry to say, but your trick does not work on version 2.07, gives the message 
as before with 2.0.6 unpatched that no ffmepg available...
well so I guess, 2.0.6 with your patch will do...

Original comment by nabilh2...@gmail.com on 20 Feb 2012 at 10:53

GoogleCodeExporter commented 9 years ago
Which patch are you talking about?

Original comment by floppymaster@gmail.com on 20 Feb 2012 at 11:43

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I have the same problem. I'm using ffmpeg-0.11.1 and libpng-1.5.10 with 2.0.6 
and 2.0.7. But I ran into other problems which seems to be fixed in the trunk 
version, so this is my patch for the trunk version.

The attached patch do the same changes like 
ffmpegthumbnailer-2.0.6-configure2.patch but works for the trunk version.

Be aware that trunk version comes without configure file. You need to create it 
running the ./autogen.sh script first.

Original comment by marcos.m...@vision-robotics.com on 14 Aug 2012 at 11:10

Attachments:

GoogleCodeExporter commented 9 years ago
applied flopyymasters configure patch

Original comment by dirk.vdb on 25 Aug 2012 at 10:58