Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Faulty avcodec_decode_video2 check in configure #78

Closed
GoogleCodeExporter opened this issue Mar 15, 2015 · 9 comments
Closed

Faulty avcodec_decode_video2 check in configure #78

GoogleCodeExporter opened this issue Mar 15, 2015 · 9 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

Which patch are you talking about?

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

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

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
Copy link
Author

applied flopyymasters configure patch

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

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant