Talk:Win32Compile

From VideoLAN Wiki
Revision as of 08:28, 1 October 2015 by Homob (talk | contribs)
Jump to navigation Jump to search

Nice how to :) I'm not sure that we really need two different howto for compiling VLC for win32 though. Trax's cygwin compile howto on http://developers.videolan.org/vlc/ already covers lots of stuff. So you might want to merge both (ask trax fist, you can find him on #videolan on Freenode) -- Dionoea 15:13, 24 June 2006 (CEST)

The binary contribs that exist on the page as of now are out of date. Asking around, updated packages can be found at http://people.videolan.org/~jb/Contribs/ . Updated binary Qt libraries can be had at http://download.videolan.org/pub/testing/contrib/qt4-4.4.1-win32-bin.tar.bz2 tar -C / -jxvf /path/to/contribs.tar.bz2 && tar -C /usr/win32 --strip 1 /path/to/qt-bin.tar.bz2 Keithel 23:18, 7 October 2008 (CEST)

From comments from j-b, it's best to use the 20080811 contribs at the moment, as the ffmpeg build is bad in it. To get beyond the qjpeg linkage problem, after configure has been run, hack the vlc-config script to add it to the qt4 libs section. Then there will be a failure in the gnutls plugin linking, -- gpg-error lib missing. Keithel 19:19, 8 October 2008 (CEST)

Final fixes to make cross-compile all working using 0811 contribs + qt4-4.4.1 package: Apply contribs as in my above comments. Modify Makefile.am in root, changing ACLOCAL_AMFLAGS to -I m4 -I /usr/win32/share/aclocal . run the bootstrap - ./bootstrap. Then pass --with-libgcrypt-prefix=$CONTRIBS to configure in addition to params supplied in this article. Once configure is done, modify vlc-config , search for qt4 section and -lQtCore. Put -lqjpeg after it. Now run 'make' and everything should build properly. Keithel 01:43, 9 October 2008 (CEST)

Using that instruction on Ubuntu 14.04 LTS had an errors like this one:

CCLD     libdxva2_plugin.la
CC       codec/libx265_plugin_la-x265.lo
CCLD     libx265_plugin.la
/home/homob/vlc/vlc-2.2.0/contrib/x86_64-w64-mingw32/lib/libx265.a(param.cpp.obj): In function `x265::parseCpuName(char const*, bool&)':
/home/jb/vlc-2.2/contrib/mingw-64/x265/source/common/param.cpp:775: undefined reference to `strtok_r'
/home/homob/vlc/vlc-2.2.0/contrib/x86_64-w64-mingw32/lib/libx265.a(param.cpp.obj): In function `x265::parseLambdaFile(x265_param*)':
/home/jb/vlc-2.2/contrib/mingw-64/x265/source/common/param.cpp:1332: undefined reference to `strtok_r'
collect2: error: ld returned 1 exit status
make[4]: *** [libx265_plugin.la] Error 1

If I disable x265 error appers in another library. How to fix it? homob, 1 October 2015 (CEST)