Quantcast
Channel: ANDOL » opencv linux
Viewing all articles
Browse latest Browse all 22

Fixing ‘[libavutil/libavutil.so.51] Error 1′ in ffmpeg make for openCV 2.3.1 install

$
0
0

Screenshot-cw418@hud-desktop: ~-Documents-OpenCV-2.3.1-build-1

This post describes an error and its solution in ffmpeg make for openCV install. It is based on Osman’s comprehensive troubleshooting of openCV 2.3.1 installing and configuring, but adds an additional error – ‘[libavutil/libavutil.so.51] Error 1‘ and the solution.

This error happens when running ‘make’ command after the ffmpeg configuration. It is a fatal error which directly stops the make process and fails the ffmpeg install.

why ‘[libavutil/libavutil.so.51] Error 1′ happens

Osman’s configurations for ffmpeg install are like this:

./configure –enable-gpl –enable-libfaac –enable-libmp3lame –enable-libopencore-amrnb –enable-libopencore-amrwb –enable-libtheora –enable-libvorbis –enable-libx264 –enable-libxvid –enable-nonfree –enable-postproc –enable-version3 –enable-x11grab

This was used in my first ffmpeg install, and was added with another line as:

–enable-shared –enable-pic #sorry forgot which prior error this line addressed

But the result turned out this error – [libavutil/libavutil.so.51] Error 1

The solution

It was suggested over the internet that this problem was caused by the lack of ‘libvpx’ – this was essential to be used with ‘–enable-shared’.

So, clean the previous make using ‘make clean’ or ‘make distclean’, then re-configure the install as:

./configure –enable-shared –enable-libvpx –enable-pic –enable-gpl –enable-libfaac –enable-libmp3lame –enable-libopencore-amrnb –enable-libopencore-amrwb –enable-libtheora –enable-libvorbis –enable-libx264 –enable-libxvid –enable-nonfree –enable-postproc –enable-version3 –enable-x11grab

Then ‘make’ – bingo~ errors gone!


Viewing all articles
Browse latest Browse all 22

Latest Images

Trending Articles



Latest Images