I want to install VLC on my Ubuntu 12.04 machine. At the beginning I received this error when running ./configure:
I solved it simply by editting the configure.ac file as follow:configure: error: libavcodec versions 55 and later are not supported yet.
Now, the second error pops up:Code:diff --git a/configure.ac b/configure.ac index d4e1e89..a5d2e1c 100644 --- a/configure.ac +++ b/configure.ac @@ -2219,12 +2219,7 @@ dnl 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.]) ])
The portion of scripts in configure.ac related to libpostproc is this:configure: error: Package 'libpostproc' requires 'libavutil = 51.22.1' but version of libavutil is 52.38.100. Pass --disable-postproc to ignore this error.
I tried to editCode:AC_ARG_ENABLE(postproc, [ --enable-postproc libpostproc image post-processing (default enabled)]) if test "${enable_postproc}" != "no" then PKG_CHECK_MODULES(POSTPROC,[libpostproc libavutil], [ VLC_SAVE_FLAGS CPPFLAGS="${CPPFLAGS} ${POSTPROC_CFLAGS}" CFLAGS="${CFLAGS} ${POSTPROC_CFLAGS}" AC_CHECK_HEADERS(postproc/postprocess.h) VLC_ADD_PLUGIN([postproc]) VLC_ADD_LIBS([postproc],[$POSTPROC_LIBS $AVUTIL_LIBS]) VLC_ADD_CFLAGS([postproc],[$POSTPROC_CFLAGS $AVUTIL_CFLAGS]) VLC_RESTORE_FLAGS ],[ AC_MSG_ERROR([${POSTPROC_PKG_ERRORS}. Pass --disable-postproc to ignore this error.]) ]) fi
toPKG_CHECK_MODULES(POSTPROC,[libpostproc libavutil],
but, no effects.PKG_CHECK_MODULES(POSTPROC,[libpostproc libavutil <= 52.38.100],
pkg-config may not be read and instead it is reading /usr/lib, I do not understand. However, I executed the following and got a result, should you need it to guess where the problem comes from:
Code:root@saman-PC:/home/saman/packages/vlc-2.0.8# pkg-config --modversion libpostproc 52.0.0 root@saman-PC:/home/saman/packages/vlc-2.0.8# pkg-config --modversion libavutil 52.38.100




Reply With Quote
