Page 1 of 1

How to update libavcodec

Posted: 18 Oct 2016 19:21
by sysadmin999
I've been able to compile VLC 100% from start to finish, but only by passing the --disable-avcodec option in the configure. The reason why is I get this error

configure: error: Requested 'libavcodec >= 57.37.100' but version of libavcodec is 56.56.101. Pass --disable-avcodec to ignore this error.


I have two questions
1. Why would this package not be included when I
$ ../bootstrap --host=x86_64-w64-mingw32
$ make prebuilt

2. How can I manually update this lib?
I have tried these things:
a) sudo apt-get install libavcodec-dev
b) sudo apt-get install ffmpeg
c) getting the ffmpeg source and extracting the files to everywhere I can find libavcodec
d) 100 other things

I cannot figure out what to do, and this is my only issue

Thank you.

Re: How to update libavcodec

Posted: 19 Oct 2016 11:03
by Rémi Denis-Courmont
1. libavcodec is definitely included in all prebuilt contribs.
2. None of the above. That would work for native builds only. You need to build it from contrib, or build it in similar fashion than contrib does.

Re: How to update libavcodec

Posted: 19 Oct 2016 15:48
by sysadmin999
I followed the wiki guide https://wiki.videolan.org/Win32Compile/ to a tee, from a new Ubuntu 16.04 installation with nothing on it. It definitely comes with 56.56.101. I can see this in my contrib/lib folder. So I'm not sure what to do

Re: How to update libavcodec

Posted: 19 Oct 2016 15:54
by Rémi Denis-Courmont
And you are building what? prebuilt should work for the current official releases (VLC 2.2.x).

Re: How to update libavcodec

Posted: 19 Oct 2016 23:10
by sysadmin999
I am building for Windows 64 bit standalone installer with NSIS.

I followed this guide start to finish https://wiki.videolan.org/Win32Compile/

I made no changes other than appropriately changing the host triplet. I can get through it all the way to an installer, but only if I pass --disable-avcodec, as my version is 56.56.101. It says right in the configure, as a comment, that we need >= 57.xx.xx

Re: How to update libavcodec

Posted: 20 Oct 2016 19:34
by sysadmin999
I finally understand.. I was checking out the HEAD revision of VLC. To get to 2.2... I did this

sudo git clone http://git.videolan.org/git/vlc.git vlc && cd vlc && git checkout ddba52206f69bb123bea8ed4d4ada07b3cb1223c

However this means that the HEAD revision has an out of date prebuilt, right?

Re: How to update libavcodec

Posted: 30 Nov 2016 16:31
by VLAN-Lover
THAT HELPS!! Thank you, sysadmin999

I burnt hours reading useless pages like this or this and always end with the same
configure: error: Requested 'libavcodec >= 57.37.100' but version of libavcodec is 56.56.101. Pass --disable-avcodec to ignore this error.
Thanks to your feedback and your line:

Code: Select all

sudo git clone http://git.videolan.org/git/vlc.git vlc && cd vlc && git checkout ddba52206f69bb123bea8ed4d4ada07b3cb1223c
the compilation runs a little bit further, but ends with an error at:
../../extras/package/win32/../../../modules/access/dshow/dshow.cpp:1729:52: error: ‘MEDIASUBTYPE_I420’ was not declared in this scope
mtr.subtype = MEDIASUBTYPE_I420;
^~~~~~~~~~~~~~~~~
What do I have to do additionally to cross-compile the official, unchanged VLC 2.2.4 in Ubuntu for Windows 32bit?
(There are no more hints at https://wiki.videolan.org/Win32Compile/)

Re: How to update libavcodec

Posted: 30 Nov 2016 16:58
by VLAN-Lover
If I try it with

Code: Select all

sudo git clone git://git.videolan.org/vlc/vlc-2.2.git vlc
the compilation runs much longer, but also never finish because of this error:
../../../config.h:800:0: warning: ignoring #pragma STDC FP_CONTRACT [-Wunknown-pragmas]
# pragma STDC FP_CONTRACT ON

In file included from ../../../../extras/package/win32/../../../modules/gui/qt4/dialogs/open.hpp:35:0,
from ../../../../extras/package/win32/../../../modules/gui/qt4/dialogs_provider.hpp:36,
from ../../../../extras/package/win32/../../../modules/gui/qt4/qt4.cpp:36:
./ui/open.h:14:29: fatal error: QtWidgets/QAction: No such file or directory
#include <QtWidgets/QAction>
^
compilation terminated.
I give up.

Can please someone tell me what I have to do to cross-compile the official, unchanged VLC 2.2.4 in Ubuntu for Windows 32bit?

Re: How to update libavcodec

Posted: 23 Feb 2017 17:54
by ryantheseer