Configure: error: libavcodec 55 and later versions are not

I get this error when I am. / configure vlc-2.0.8

configure: error: libavcodec versions 55 and later are not supported yet

I already downloaded gits for ffmpeg, lame-3.98.4, x264, yasm-1.2.0 and successfully installed them. When I looked for this error, I found out the following links:

https://patches.videolan.org/patch/1141/

http://www.mail-archive.com/ vlc-commits@videolan.org /msg16415.html

these links include the patch and suggest that this patch should be replaced or added (I don't know) to the configure.ac file that exists inside my vlc-2.0.8 folder.

Since the links do not contain step-by-step instructions to understand which commands to use and how to add a patch file, I would thank if you would guide me through this.

Greetings

+4
source share
2 answers

What I did was add the following patch to the configure.ac file:

AC_ARG_ENABLE(avcodec, [ --enable-avcodec libavcodec codec (default enabled)]) AS_IF([test "${enable_avcodec}" != "no"], [ - PKG_CHECK_MODULES(AVCODEC,[libavcodec >= 54.25.0 libavutil >= 51.22.0], [ - AS_IF([test "${enable_sout}" != "no"], [ - PKG_CHECK_EXISTS([libavcodec < 55],, [ - AC_MSG_ERROR([libavcodec version 55 requires --disable-sout.]) - ]) - ]) + PKG_CHECK_MODULES(AVCODEC,[libavcodec >= 53.34.0 libavutil >= 51.22.0], [ PKG_CHECK_EXISTS([libavcodec < 56],, [ AC_MSG_ERROR([libavcodec versions 56 and later are not supported yet.]) ]) 

Next i ran

 # autoconf 

now at startup no error is requested to support new versions of libavcodec :)

+4
source

Compatibility issue with this version of VLC (2.0.8) and the ffmpeg development version on which it depends.

From: https://trac.macports.org/ticket/40025 :

It will "just work" when the VLC is upgraded to 2.1, which will happen long before ffmpeg becomes 2.0

Without a manual fix (as you did), you may have to wait for v2.1 for a clean fix.

0
source

Source: https://habr.com/ru/post/1500029/


All Articles