Audacity 2.2.0 cannot load ffmpeg libs [SOLVED]

Hi all,

I compiled Audacity on my Linux Mint Debian Edition 2, it runs but it cannot load the ffmpeg libraries:

10:51:36: Audacity 2.2.0
10:51:39: Trying to load FFmpeg libraries...
10:51:39: mLibAVFormatPath ('/usr/lib/x86_64-linux-gnu/libavformat.so.56') is not empty. Loading from it.
10:51:39: Checking for monolithic avformat from '/usr/lib/x86_64-linux-gnu/libavformat.so.56'.
10:51:39: avformat not monolithic
10:51:39: Loading avutil from '/usr/lib/x86_64-linux-gnu/libavutil.so.54.20.100'.
10:51:39: Loading avcodec from '/usr/lib/x86_64-linux-gnu/libavcodec.so.56.26.100'.
10:51:39: Loading avformat from '/usr/lib/x86_64-linux-gnu/libavformat.so.56'.
10:51:39: Actual avutil path /usr/lib/x86_64-linux-gnu/libavutil.so.54.20.100
10:51:39: Actual avcodec path /usr/lib/x86_64-linux-gnu/libavcodec.so.56.26.100
10:51:39: Actual avformat path /usr/lib/x86_64-linux-gnu/libavformat.so.56.25.101
10:51:39: Importing symbols...
10:51:39: All symbols loaded successfully. Initializing the library.
10:51:39: Retrieving FFmpeg library version numbers:
10:51:39:    AVCodec version 0x381a64 - 56.26.100 (built against 0x373466 - 55.52.102)
10:51:39:    AVFormat version 0x381965 - 56.25.101 (built against 0x372164 - 55.33.100)
10:51:39:    AVUtil version 0x361464 - 54.20.100 (built against 0x344264 - 52.66.100)
10:51:39: Error: AVCodec version mismatch = 1
10:51:39: Error: AVFormat version mismatch = 1
10:51:39: Error: AVUtil version mismatch = 2
10:51:39: Error: Version mismatch. FFmpeg libraries are unusable.
10:51:39: Trying to load FFmpeg libraries from system paths. File name is 'libavformat.so.55'.
10:51:39: Checking for monolithic avformat from 'libavformat.so.55'.
10:51:39: Error: libavformat.so.55: cannot open shared object file: No such file or directory
10:51:39: Loading avutil from ''.
10:51:39: Error: .so: cannot open shared object file: No such file or directory
10:51:39: Loading avcodec from ''.
10:51:39: Error: .so: cannot open shared object file: No such file or directory
10:51:39: Loading avformat from 'libavformat.so.55'.
10:51:39: Error: libavformat.so.55: cannot open shared object file: No such file or directory
10:51:39: Error: Failed to load FFmpeg libraries.
10:51:39: Error: Failed to find compatible FFmpeg libraries.

Does anyone have an idea why this may be? Any hints?

Thanks
Chris

Try disabling dynamic loading. To do that, add the following option to your ./configure command:

--disable-dynamic-loading

Hint: to perform a “clean” rebuild, clean the previous build with:

make distclean

Thanks Steve for your hint but it doesn’t work, same errors.

You may still be compiling against the local headers.

Try:

--with-ffmpeg="system" --disable-dynamic-loading

Before running “make”, check the output from ./configure to ensure that configure found the necessary headers for FFmpeg (you need to have the FFmpeg development headers installed).

It works, thanks for your help! :slight_smile: