./configure scripts fail to detect libswscale / libavutil

Asked by August Black

I'm trying to configure and make an app (gmerlin_avdecoder) that depends on ffmpeg (libswcale and others)

it finds libpostproc, libavformat, but cannot find libavcodec due to issues with libswscale.

the configure fails saying libswscale is missing and the config.log says this:

configure:14147: $PKG_CONFIG --exists --print-errors "libswscale >= $LIBSWSCALE_REQUIRED"
Package 'libswscale' requires 'libavutil = 49.15.0' but version of libavutil is 49.6.0
configure:14150: $? = 1
configure:14165: $PKG_CONFIG --exists --print-errors "libswscale >= $LIBSWSCALE_REQUIRED"
Package 'libswscale' requires 'libavutil = 49.15.0' but version of libavutil is 49.6.0
configure:14168: $? = 1
Package 'libswscale' requires 'libavutil = 49.15.0' but version of libavutil is 49.6.0
configure:14196: result: no

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu ffmpeg Edit question
Assignee:
No assignee Edit question
Solved by:
August Black
Solved:
Last query:
Last reply:
Revision history for this message
August Black (august-alien) said :
#1

this can also be seen by simply doing:

pkg-config --exists --print-errors libswscale
Package 'libswscale' requires 'libavutil = 49.15.0' but version of libavutil is 49.6.0

Revision history for this message
llogan (loul) said :
#2

What version of Ubuntu are you using? Lucid has libavutil 49.15.0. If you're using < Lucid you can try FFmpeg SVN as shown here:

HOWTO: Install and use the latest FFmpeg and x264
http://ubuntuforums.org/showthread.php?t=786095

Revision history for this message
August Black (august-alien) said :
#3

I am using Lucid. It all worked fine using aptitude until an automatic update changed the ffmpeg stuff.

I am not sure, but I think this is a bug in the packaging.

I'd rather not have to build ffmpeg myself.

Am I missing something?

 sudo aptitude show libavutil-dev

Package: libavutil-dev
State: installed
Automatically installed: no
Version: 4:0.5.1-1ubuntu1
Priority: optional
Section: libdevel
Maintainer: Ubuntu Core Developers <email address hidden>
Uncompressed Size: 266k
Depends: libavutil49 (>= 4:0.5.1-1ubuntu1) | libavutil-extra-49 (>= 4:0.5.1), libavutil49 (<= 4:0.5.1-99) | libavutil-extra-49 (<= 4:0.5.1-99)
Description: development files for libavutil
 This is the common utility library from the ffmpeg project. It is required by all other ffmpeg libraries.

 This package contains the header files and static libraries needed to compile applications or shared objects that use libavutil.
Homepage: http://ffmpeg.org/

Revision history for this message
August Black (august-alien) said :
#4

Any help here?

I am using lucid and have tried to remove and reinstall libavutil, libswscale, etc.

Lucid does not seem to have libavutil 49.15.0.
If it does, the version is set wrong I believe.

pkg-config --exists --print-errors libswscale
Package 'libswscale' requires 'libavutil = 49.15.0' but version of libavutil is 49.6.0

pkg-config --modversion libavutil
49.6.0

Revision history for this message
August Black (august-alien) said :
#5

I should mention I am also on 64 bit ubuntu lucid

Revision history for this message
August Black (august-alien) said :
#6

funny, I just checked on a remote machine running karmic i386 and get:

pkg-config --modversion libavutil
49.15.0

Revision history for this message
August Black (august-alien) said :
#7

I found the problem. I had installed Cinelerra-cv from source. It includes an old version of ffmpeg, but installs it under /usr/local/lib as libavcodec-cinelerra.so etc. Unfortunately, it also installed headers and pkg-config files in /usr/local/include and /usr/local/lib/pkgconfig/

It took me a while to find this and figure it out. After deleting the pkg-config files in /usr/local/lib/pkgconfig all is well again.

sorry for the noise. Thanks for your attention.