vlc-3.0.11_Build_log-no-GUI gcc-9.3.1 MSYS-1.0

--------------------------------------------------------------------------------------------
mkdir win32 && cd win32
Tips: This win32 directory can not have any files

../configure --prefix=/opt/vlc \
--host=i686-w64-mingw32 \
--disable-lua \
--disable-pulse \
--disable-qt \
--disable-decklink \
--disable-vcd \
--disable-nls
--------------------------------------------------------------------------------------------
checking for c11-gcc... no
checking for c11... no
checking for c99-gcc... no
checking for c99... no
configure: error: Cannot find native C99 compiler: please define BUILDCC.

https://mailman.videolan.org/pipermail/vlc-devel/2015-October/104470.html

export ARCHFLAGS=${ARCHFLAGS-"-march=i686"}
export CFLAGS="${CFLAGS} ${ARCHFLAGS} -std=c99"
export CXXFLAGS="${CXXFLAGS} ${ARCHFLAGS} -std=c++11"
export BUILDCC="gcc "
--------------------------------------------------------------------------------------------
checking for a52_free in -la52... no
configure: error: Could not find liba52 on your system: you may get it from http://liba52.sf.net/. Alternatively you can use --disable-a52 to disable the a52 plugin.

export LDFLAGS="${LDFLAGS} -Wl,--allow-multiple-definition"

cannot find -lssp
configure configure.ac
LDFLAGS="${LDFLAGS} -lssp" delete -lssp
--------------------------------------------------------------------------------------------
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating modules/Makefile
config.status: creating m4/Makefile
config.status: creating po/Makefile.in
config.status: creating share/Makefile
config.status: creating compat/Makefile
config.status: creating src/Makefile
config.status: creating lib/Makefile
config.status: creating bin/Makefile
config.status: creating test/Makefile
config.status: creating modules/hw/mmal/Makefile
config.status: creating share/vlc.appdata.xml.in
config.status: creating extras/package/win32/NSIS/spad.nsi
config.status: creating extras/package/win32/NSIS/vlc.win32.nsi
config.status: creating extras/package/win32/msi/config.wxi
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile

libvlc configuration
--------------------
version               : 3.0.11
system                : mingw32
architecture          : i686 mmx sse sse2
optimizations         : yes
vlc aliases           : cvlc rvlc

To build vlc and its plugins, type `make', or `./compile' if you like nice colors.
--------------------------------------------------------------------------------------------
$ make
CDPATH="${ZSH_VERSION+.}:" && cd .. && /bin/sh /build/libs/vlc-3.0.11/autotools/missing aclocal-1.16 -I m4
/build/libs/vlc-3.0.11/autotools/missing: line 81: aclocal-1.16: command not found
WARNING: 'aclocal-1.16' is missing on your system.
         You should only need it if you modified 'acinclude.m4' or
         'configure.ac' or m4 files included by 'configure.ac'.
         The 'aclocal' program is part of the GNU Automake package:
         <https://www.gnu.org/software/automake>
         It also requires GNU Autoconf, GNU m4 and Perl in order to run:
         <https://www.gnu.org/software/autoconf>
         <https://www.gnu.org/software/m4/>
         <https://www.perl.org/>
make: *** [../aclocal.m4] Error 127

$ autoreconf -f -i
or install automake-1.16.tar.gz
--------------------------------------------------------------------------------------------
Automake 1.6 fails to build
  GEN      doc/automake-1.16.1
help2man: can't get `--help' info from automake-1.16
Try `--no-discard-stderr' if option outputs to stderr
make: *** [doc/automake-1.16.1] Error 2

Abandon the old version 1.16
install automake-1.16.2.tar.gz
--------------------------------------------------------------------------------------------
make

config.status: creating src/libvlc_win32_rc.rc
windres --include-dir ../../share --include-dir ../../extras/package/win32 -i libvlc_win32_rc.rc -o libvlc_win32_rc.o
  CCLD     libvlccore.la
.libs/libvlc.o:libvlc.c:(.text+0x85): undefined reference to `__stack_chk_guard'
.libs/libvlc.o:libvlc.c:(.text+0x16b): undefined reference to `__stack_chk_guard'
.libs/libvlc.o:libvlc.c:(.text+0x18a): undefined reference to `__stack_chk_fail'
.libs/libvlc.o:libvlc.c:(.text+0x198): undefined reference to `__stack_chk_guard'

all Makefile
-fstack-protector-strong <--- Replece to -fno-stack-protector
--------------------------------------------------------------------------------------------
../../modules/access/dvdnav.c:900:9: note: in expansion of macro 'msleep'
  900 |         msleep( 40000 );
      |         ^~~~~~
  CCLD     libdvdnav_plugin.la
D:/MSYS/local/lib/libdvdread.a(dvd_input.o):dvd_input.c:(.text+0x430): undefined reference to `dlopen'

vlc-3.0.11/win32/modules/Makefile
LIBS = -ldl <--- add -ldl

  CCLD     libavio_plugin.la
libtool: warning: library 'd:/msys/mingw/lib/libatomic.la' was moved.
libtool: warning: library 'd:/msys/mingw/lib/libsupc++.la' was moved.

*** Warning: Linking the shared library libavio_plugin.la against the
*** static library /usr/local/lib/libiconv.a is not portable!
libtool: warning: library 'd:/msys/mingw/lib/libstdc++.la' was moved.
d:/msys/mingw/bin/../lib/gcc/i686-w64-mingw32/9.3.1/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lavformat
d:/msys/mingw/bin/../lib/gcc/i686-w64-mingw32/9.3.1/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lavcodec
d:/msys/mingw/bin/../lib/gcc/i686-w64-mingw32/9.3.1/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lswresample
d:/msys/mingw/bin/../lib/gcc/i686-w64-mingw32/9.3.1/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lavutil

LDFLAGS = -L/usr/local/lib -LD:/MSYS/opt/ffmpeg/lib -Wl,--allow-multiple-definition -Wl,--nxcompat -Wl,--no-seh -Wl,--dynamicbase  -ladvapi32

libavcodec.dll.a copy to libavcodec.a ...
--------------------------------------------------------------------------------------------
In file included from ../../modules/access/srt.c:38:
D:/MSYS/local/include/srt/srt.h:724:41: note: declared here
  724 | SRT_ATR_DEPRECATED_PX SRT_API SRTSOCKET srt_socket(int, int, int) SRT_ATR_DEPRECATED;
      |                                         ^~~~~~~~~~
../../modules/access/srt.c:168:37: error: 'SRTO_TSBPDDELAY' undeclared (first use in this function); did you mean 'SRTO_TSBPDMODE'?
  168 |     srt_setsockopt( p_sys->sock, 0, SRTO_TSBPDDELAY,
      |                                     ^~~~~~~~~~~~~~~
      |                                     SRTO_TSBPDMODE
../../modules/access/srt.c:168:37: note: each undeclared identifier is reported only once for each function it appears in
make[4]: *** [access/libaccess_srt_plugin_la-srt.lo] Error 1

   SRTO_TSBPDMODE = 22,      // Enable/Disable TsbPd. Enable -> Tx set origin timestamp, Rx deliver packet at origin time + delay
   SRTO_LATENCY = 23,        // NOT RECOMMENDED. SET: to both SRTO_RCVLATENCY and SRTO_PEERLATENCY. GET: same as SRTO_RCVLATENCY.
   
   SRTO_LATENCY = 23,    // ALIAS: SRTO_TSBPDDELAY
   
   SRTO_TSBPDDELAY <--- Replece to SRTO_LATENCY

In file included from ../../modules/access_output/srt.c:37:
D:/MSYS/local/include/srt/srt.h:724:41: note: declared here
  724 | SRT_ATR_DEPRECATED_PX SRT_API SRTSOCKET srt_socket(int, int, int) SRT_ATR_DEPRECATED;
      |                                         ^~~~~~~~~~
../../modules/access_output/srt.c:165:37: error: 'SRTO_TSBPDDELAY' undeclared (first use in this function); did you mean 'SRTO_TSBPDMODE'?
  165 |     srt_setsockopt( p_sys->sock, 0, SRTO_TSBPDDELAY,
      |                                     ^~~~~~~~~~~~~~~
      |                                     SRTO_TSBPDMODE
../../modules/access_output/srt.c:165:37: note: each undeclared identifier is reported only once for each function it appears in
make[4]: *** [access_output/libaccess_output_srt_plugin_la-srt.lo] Error 1

    SRTO_TSBPDDELAY <--- Replece to SRTO_LATENCY
--------------------------------------------------------------------------------------------
D:/MSYS/opt/ffmpeg/include/libavcodec/avcodec.h:2751:6: note: declared here
 2751 | void avcodec_register_all(void);
      |      ^~~~~~~~~~~~~~~~~~~~
  CCLD     libswscale_plugin.la
libtool: warning: library 'd:/msys/mingw/lib/libstdc++.la' was moved.
d:/msys/mingw/bin/../lib/gcc/i686-w64-mingw32/9.3.1/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lswscale
collect2.exe: error: ld returned 1 exit status

libswscale.dll.a copy to libswscale.a
--------------------------------------------------------------------------------------------
../../modules/codec/a52.c: In function 'Open':
../../modules/codec/a52.c:305:23: error: too many arguments to function 'a52_init'
  305 |     p_sys->p_liba52 = a52_init( 0 );
      |                       ^~~~~~~~
In file included from ../../modules/codec/a52.c:48:
D:/MSYS/local/include/a52dec/a52.h:71:15: note: declared here
   71 | a52_state_t * a52_init (void);
   
   a52_init( 0 ); <--- Replece to a52_init();
--------------------------------------------------------------------------------------------
d:\msys\mingw\i686-w64-mingw32\include\stdlib.h:689:39: note: expected 'char *' but argument is of type 'uint8_t *' {aka 'unsigned char *'}
  689 |   void __cdecl swab(char *_Buf1,char *_Buf2,int _SizeInBytes) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
      |                                 ~~~~~~^~~~~
  CCLD     liblpcm_plugin.la
  CC       codec/libmpg123_plugin_la-mpg123.lo
  CCLD     libmpg123_plugin.la
D:/MSYS/local/lib/libmpg123.a(compat.o):compat.c:(.text+0xdf): undefined reference to `_imp__PathIsRelativeW@4'
D:/MSYS/local/lib/libmpg123.a(compat.o):compat.c:(.text+0x1fe): undefined reference to `_imp__PathIsUNCW@4'
D:/MSYS/local/lib/libmpg123.a(compat.o):compat.c:(.text+0x4b3): undefined reference to `_imp__PathIsRelativeW@4'
D:/MSYS/local/lib/libmpg123.a(compat.o):compat.c:(.text+0x610): undefined reference to `_imp__PathIsUNCW@4'
D:/MSYS/local/lib/libmpg123.a(compat.o):compat.c:(.text+0xcc5): undefined reference to `_imp__PathCombineW@12'
D:/MSYS/local/lib/libmpg123.a(compat.o):compat.c:(.text+0xe9e): undefined reference to `_imp__PathIsRelativeW@4'
D:/MSYS/local/lib/libmpg123.a(compat.o):compat.c:(.text+0xff6): undefined reference to `_imp__PathIsUNCW@4'
collect2.exe: error: ld returned 1 exit status
make[4]: *** [libmpg123_plugin.la] Error 1

vlc-3.0.11/win32/modules/Makefile
LIBS = -ldl -lpsapi -lws2_32 -lmswsock -lshlwapi <--- add -lpsapi -lws2_32 -lmswsock -lshlwapi
--------------------------------------------------------------------------------------------
  CC       codec/jpeg.lo
../../modules/codec/jpeg.c: In function 'DecodeBlock':
../../modules/codec/jpeg.c:521:5: error: implicit declaration of function 'jpeg_mem_src'; did you mean 'jpeg_stdio_src'? [-Werror=implicit-function-declaration]
  521 |     jpeg_mem_src(&p_sys->p_jpeg, p_block->p_buffer, p_block->i_buffer);
      |     ^~~~~~~~~~~~
      |     jpeg_stdio_src
../../modules/codec/jpeg.c: In function 'EncodeBlock':
../../modules/codec/jpeg.c:667:5: error: implicit declaration of function 'jpeg_mem_dest'; did you mean 'jpeg_stdio_dest'? [-Werror=implicit-function-declaration]
  667 |     jpeg_mem_dest(&p_sys->p_jpeg, &p_block->p_buffer, &size);
      |     ^~~~~~~~~~~~~
      |     jpeg_stdio_dest
../../modules/codec/jpeg.c: In function 'DecodeBlock':
../../modules/codec/jpeg.c:503:16: warning: variable 'p_row_pointers' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
  503 |     JSAMPARRAY p_row_pointers = NULL;
      |                ^~~~~~~~~~~~~~
cc1.exe: some warnings being treated as errors
make[4]: *** [codec/jpeg.lo] Error 1
make[4]: Leaving directory `/build/libs/vlc-3.0.11/win32/modules'

jpeg_stdio_dest(&p_sys->p_jpeg, &p_block->p_buffer);
jpeg_stdio_src(&p_sys->p_jpeg, p_block->p_buffer);
--------------------------------------------------------------------------------------------
../../modules/codec/jpeg.c:503:16: warning: variable 'p_row_pointers' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
  503 |     JSAMPARRAY p_row_pointers = NULL;
      |                ^~~~~~~~~~~~~~
  CCLD     libjpeg_plugin.la
  CC       codec/liblibass_plugin_la-libass.lo
  CCLD     liblibass_plugin.la
D:/MSYS/local/lib/libfontconfig.a(fcxml.o):fcxml.c:(.text+0x600): undefined reference to `XML_GetCurrentLineNumber'
D:/MSYS/local/lib/libfontconfig.a(fcxml.o):fcxml.c:(.text+0x645): undefined reference to `XML_GetCurrentLineNumber'
D:/MSYS/local/lib/libfontconfig.a(fcxml.o):fcxml.c:(.text+0x5431): undefined reference to `XML_ParserCreate'
D:/MSYS/local/lib/libfontconfig.a(fcxml.o):fcxml.c:(.text+0x5485): undefined reference to `XML_SetUserData'
D:/MSYS/local/lib/libfontconfig.a(fcxml.o):fcxml.c:(.text+0x54a0): undefined reference to `XML_SetDoctypeDeclHandler'
D:/MSYS/local/lib/libfontconfig.a(fcxml.o):fcxml.c:(.text+0x54bb): undefined reference to `XML_SetElementHandler'
D:/MSYS/local/lib/libfontconfig.a(fcxml.o):fcxml.c:(.text+0x54ce): undefined reference to `XML_SetCharacterDataHandler'
D:/MSYS/local/lib/libfontconfig.a(fcxml.o):fcxml.c:(.text+0x54e7): undefined reference to `XML_GetBuffer'
D:/MSYS/local/lib/libfontconfig.a(fcxml.o):fcxml.c:(.text+0x5578): undefined reference to `XML_ParseBuffer'
D:/MSYS/local/lib/libfontconfig.a(fcxml.o):fcxml.c:(.text+0x5587): undefined reference to `XML_GetErrorCode'
D:/MSYS/local/lib/libfontconfig.a(fcxml.o):fcxml.c:(.text+0x558f): undefined reference to `XML_ErrorString'
D:/MSYS/local/lib/libfontconfig.a(fcxml.o):fcxml.c:(.text+0x56fb): undefined reference to `XML_ParserFree'
collect2.exe: error: ld returned 1 exit status
make[4]: *** [liblibass_plugin.la] Error 1
make[4]: Leaving directory `/build/libs/vlc-3.0.11/win32/modules'

vlc-3.0.11/win32/modules/Makefile
LIBS = -ldl -lxml2 -lz -llzma -liconv -lpsapi -lws2_32 -lmswsock -lshlwapi

make[4]: Entering directory `/build/libs/vlc-3.0.11/win32/modules'
  CCLD     liblibass_plugin.la
D:/MSYS/local/lib/libfontconfig.a(fcxml.o):fcxml.c:(.text+0x600): undefined reference to `XML_GetCurrentLineNumber'
D:/MSYS/local/lib/libfontconfig.a(fcxml.o):fcxml.c:(.text+0x645): undefined reference to `XML_GetCurrentLineNumber'
D:/MSYS/local/lib/libfontconfig.a(fcxml.o):fcxml.c:(.text+0x5431): undefined reference to `XML_ParserCreate'
D:/MSYS/local/lib/libfontconfig.a(fcxml.o):fcxml.c:(.text+0x5485): undefined reference to `XML_SetUserData'
D:/MSYS/local/lib/libfontconfig.a(fcxml.o):fcxml.c:(.text+0x54a0): undefined reference to `XML_SetDoctypeDeclHandler'
D:/MSYS/local/lib/libfontconfig.a(fcxml.o):fcxml.c:(.text+0x54bb): undefined reference to `XML_SetElementHandler'
D:/MSYS/local/lib/libfontconfig.a(fcxml.o):fcxml.c:(.text+0x54ce): undefined reference to `XML_SetCharacterDataHandler'
D:/MSYS/local/lib/libfontconfig.a(fcxml.o):fcxml.c:(.text+0x54e7): undefined reference to `XML_GetBuffer'
D:/MSYS/local/lib/libfontconfig.a(fcxml.o):fcxml.c:(.text+0x5578): undefined reference to `XML_ParseBuffer'
D:/MSYS/local/lib/libfontconfig.a(fcxml.o):fcxml.c:(.text+0x5587): undefined reference to `XML_GetErrorCode'
D:/MSYS/local/lib/libfontconfig.a(fcxml.o):fcxml.c:(.text+0x558f): undefined reference to `XML_ErrorString'
D:/MSYS/local/lib/libfontconfig.a(fcxml.o):fcxml.c:(.text+0x56fb): undefined reference to `XML_ParserFree'
collect2.exe: error: ld returned 1 exit status
make[4]: *** [liblibass_plugin.la] Error 1
make[4]: Leaving directory `/build/libs/vlc-3.0.11/win32/modules'

vlc-3.0.11/win32/modules/Makefile modify to
LIBS = -ldl -lfontconfig -lexpat -lfreetype -lharfbuzz -lfreetype -lbz2 -lpng16 -lz -lpsapi -lws2_32 -lmswsock -lshlwapi -lz -lharfbuzz -lm -lbrotlidec -lbrotlicommon -lxml2 -lz -llzma -liconv -lpsapi -lws2_32 -lmswsock -lshlwapi 
--------------------------------------------------------------------------------------------
../../modules/codec/zvbi.c:673:19: warning: this statement may fall through [-Wimplicit-fallthrough=]
  673 |                 if( b_opaque )
      |                   ^
../../modules/codec/zvbi.c:676:13: note: here
  676 |             case VBI_TRANSPARENT_FULL:
      |             ^~~~
  CCLD     libzvbi_plugin.la

*** Warning: Linking the shared library libzvbi_plugin.la against the
*** static library /usr/local/lib/libiconv.a is not portable!
d:/msys/mingw/bin/../lib/gcc/i686-w64-mingw32/9.3.1/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lpthreadGC2
collect2.exe: error: ld returned 1 exit status
make[4]: *** [libzvbi_plugin.la] Error 1

vlc-3.0.11/win32/modules/Makefile modify to
am__append_78 = -lpthreadGC2  <--- am__append_78 = -lpthread
--------------------------------------------------------------------------------------------
../../modules/hw/d3d11/d3d11_filters.c: In function 'D3D11OpenAdjust':
../../modules/hw/d3d11/d3d11_filters.c:426:20: error: 'D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT_INPUT' undeclared (first use in this function); did you mean 'D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS'?
  426 |     if ( !(flags & D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT_INPUT) ||
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                    D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS
../../modules/hw/d3d11/d3d11_filters.c:426:20: note: each undeclared identifier is reported only once for each function it appears in
../../modules/hw/d3d11/d3d11_filters.c:427:20: error: 'D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT_OUTPUT' undeclared (first use in this function); did you mean 'D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS'?
  427 |          !(flags & D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT_OUTPUT) )
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                    D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS
make[4]: *** [hw/d3d11/d3d11_filters.lo] Error 1
make[4]: Leaving directory `/build/libs/vlc-3.0.11/win32/modules'

https://abi-laboratory.pro/compatibility/Windows_7.0_to_Windows_8.1/x86_64/headers_diff/d3d11.dll/diff.html

add macro
#define D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT_INPUT   0x1
#define D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT_OUTPUT  0x2
--------------------------------------------------------------------------------------------
  CC       hw/d3d11/d3d11_deinterlace.lo
../../modules/hw/d3d11/d3d11_deinterlace.c:43:14: error: redefinition of typedef 'D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS' with different type
   43 | typedef UINT D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS;
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../../modules/hw/d3d11/d3d11_deinterlace.c:36:
d:\msys\mingw\i686-w64-mingw32\include\d3d11.h:866:3: note: previous declaration of 'D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS' was here
  866 | } D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS;
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[4]: *** [hw/d3d11/d3d11_deinterlace.lo] Error 1
make[4]: Leaving directory `/build/libs/vlc-3.0.11/win32/modules'


#ifdef __MINGW32__
typedef UINT D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS;  <--- delete
#define D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_BLEND               0x1
#define D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_BOB                 0x2
#define D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_ADAPTIVE            0x4
#define D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_MOTION_COMPENSATION 0x8
#define D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_INVERSE_TELECINE               0x10
#define D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_FRAME_RATE_CONVERSION          0x20
#endif
--------------------------------------------------------------------------------------------
  CC       misc/libfingerprinter_plugin_la-fingerprinter.lo
../../modules/misc/fingerprinter.c: In function 'Run':
cc1.exe: warning: call to 'harmful_delay.constprop' declared with attribute warning: use proper event handling instead of short delay [-Wattribute-warning]
  CCLD     libfingerprinter_plugin.la
  CC       misc/libgnutls_plugin_la-gnutls.lo
../../modules/misc/gnutls.c: In function 'gnutls_ClientHandshake':
../../modules/misc/gnutls.c:445:9: error: implicit declaration of function 'gnutls_free'; did you mean 'gnutls_prf'? [-Werror=implicit-function-declaration]
  445 |         gnutls_free (desc.data);
      |         ^~~~~~~~~~~
      |         gnutls_prf
../../modules/misc/gnutls.c: In function 'gnutls_ServerSessionOpen':
../../modules/misc/gnutls.c:626:71: warning: unused parameter 'hostname' [-Wunused-parameter]
  626 |                                            vlc_tls_t *sk, const char *hostname,
      |                                                           ~~~~~~~~~~~~^~~~~~~~
cc1.exe: some warnings being treated as errors
make[4]: *** [misc/libgnutls_plugin_la-gnutls.lo] Error 1
make[4]: Leaving directory `/build/libs/vlc-3.0.11/win32/modules'

gnutls_free <--- free

if(desc.data) {free (desc.data); desc.data=NULL;}
--------------------------------------------------------------------------------------------
stream_out/chromecast/cast_channel.pb.cc:1421:11: warning: 'void* memset(void*, int, size_t)' offset [21, 28] from the object at 'castchannel::_DeviceAuthMessage_default_instance_' is out of the bounds of referenced subobject 'castchannel::DeviceAuthMessage::challenge_' with type 'castchannel::AuthChallenge*' at offset 16 [-Warray-bounds]
 1421 |   ::memset(&challenge_, 0, static_cast<size_t>(
      |   ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1422 |       reinterpret_cast<char*>(&error_) -
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1423 |       reinterpret_cast<char*>(&challenge_)) + sizeof(error_));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  CXXLD    libstream_out_chromecast_plugin.la
/bin/grep: /mingw32/lib/../lib/libstdc++.la: No such file or directory
/bin/sed: can't read /mingw32/lib/../lib/libstdc++.la: No such file or directory
libtool:   error: '/mingw32/lib/../lib/libstdc++.la' is not a valid libtool archive
make[4]: *** [libstream_out_chromecast_plugin.la] Error 1

vlc-3.0.11/win32/ *.la *.lai
/mingw32 <--- Replece to /mingw
 
or /mingw/*.* copy to /mingw32/*.*
--------------------------------------------------------------------------------------------
../../modules/text_renderer/freetype/fonts/dwrite.cpp:371:90: warning: cast between incompatible function types from 'FARPROC' {aka 'int (__attribute__((stdcall)) *)()'} to 'GetSystemDefaultLocaleName' {aka 'int (__attribute__((stdcall)) *)(wchar_t*, int)'} [-Wcast-function-type]
  371 |         (GetSystemDefaultLocaleName) GetProcAddress( h_dll, "GetSystemDefaultLocaleName" );
      |                                                                                          ^
  CC       text_renderer/freetype/fonts/libfreetype_plugin_la-win32.lo
  GEN      libfreetype_plugin.la
D:/MSYS/local/lib/libharfbuzz.a(libharfbuzz_la-hb-ft.o):hb-ft.cc:(.text+0xfa6): undefined reference to `FT_Get_MM_Var'
D:/MSYS/local/lib/libharfbuzz.a(libharfbuzz_la-hb-ft.o):hb-ft.cc:(.text+0x1012): undefined reference to `FT_Get_Var_Blend_Coordinates'
D:/MSYS/local/lib/libharfbuzz.a(libharfbuzz_la-hb-ft.o):hb-ft.cc:(.text+0x1107): undefined reference to `FT_Done_MM_Var'
D:/MSYS/local/lib/libharfbuzz.a(libharfbuzz_la-hb-ft.o):hb-ft.cc:(.text+0x13f0): undefined reference to `FT_Set_Var_Blend_Coordinates'
collect2.exe: error: ld returned 1 exit status
make[4]: *** [libfreetype_plugin.la] Error 1
make[4]: Leaving directory `/build/libs/vlc-3.0.11/win32/modules'

vlc-3.0.11/win32/modules/Makefile 
LIBS = -ldl -lharfbuzz -lm -lfontconfig -lexpat -lfreetype -lharfbuzz -lfreetype -lbz2 -lpng16 -lz -lpsapi -lws2_32 -lmswsock -lshlwapi -lz -lharfbuzz -lm -lbrotlidec -lbrotlicommon -lxml2 -lz -llzma -liconv -lpsapi -lws2_32 -lmswsock -lshlwapi

modify to
LIBS = -ldl -lm -lfontconfig -lexpat -lfreetype -lharfbuzz -lfreetype -lbz2 -lpng16 -lz -lpsapi -lws2_32 -lmswsock -lshlwapi -lz -lm -lbrotlidec -lbrotlicommon -lxml2 -lz -llzma -liconv -lpsapi -lws2_32 -lmswsock -lshlwapi -lpthread
--------------------------------------------------------------------------------------------
In file included from D:/MSYS/opt/opencv-3.1.0/include/opencv2/core/core_c.h:48,
                 from ../../modules/video_filter/opencv_wrapper.c:42:
D:/MSYS/opt/opencv-3.1.0/include/opencv2/core/types_c.h: In function 'cvPointFrom32f':
D:/MSYS/opt/opencv-3.1.0/include/opencv2/core/types_c.h:929:13: error: implicit declaration of function 'cvRound' [-Werror=implicit-function-declaration]
  929 |     ipt.x = cvRound(point.x);
cc1.exe: some warnings being treated as errors
make[4]: *** [video_filter/libopencv_wrapper_plugin_la-opencv_wrapper.lo] Error 1
make[4]: Leaving directory `/build/libs/vlc-3.0.11/win32/modules'

Abandon the new version opencv-3.1.0
use opencv-2413
--------------------------------------------------------------------------------------------
make[4]: Entering directory `/build/libs/vlc-3.0.11/win32/modules'
  CCLD     libopencv_wrapper_plugin.la
  CC       video_filter/libpostproc_plugin_la-postproc.lo
  CCLD     libpostproc_plugin.la
d:/msys/mingw/bin/../lib/gcc/i686-w64-mingw32/9.3.1/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lpostproc
collect2.exe: error: ld returned 1 exit status
make[4]: *** [libpostproc_plugin.la] Error 1

libpostproc.dll.a copy to libpostproc.a
--------------------------------------------------------------------------------------------
windres --include-dir ../../share/icons --include-dir ../../extras/package/win32 -i vlc_win32_rc.rc -o vlc_win32_rc.o
  CCLD     vlc.exe
D:\zDown\temp\SysTmp\cc267jI6.o:lt-vlc.c:(.text+0x106): undefined reference to `__stack_chk_guard'
D:\zDown\temp\SysTmp\cc267jI6.o:lt-vlc.c:(.text+0x152): undefined reference to `__stack_chk_guard'
D:\zDown\temp\SysTmp\cc267jI6.o:lt-vlc.c:(.text+0x1b4): undefined reference to `__stack_chk_fail'
D:\zDown\temp\SysTmp\cc267jI6.o:lt-vlc.c:(.text+0x1c5): undefined reference to `__stack_chk_guard'
D:\zDown\temp\SysTmp\cc267jI6.o:lt-vlc.c:(.text+0x211): undefined reference to `__stack_chk_guard'
D:\zDown\temp\SysTmp\cc267jI6.o:lt-vlc.c:(.text+0x27a): undefined reference to `__stack_chk_fail'
D:\zDown\temp\SysTmp\cc267jI6.o:lt-vlc.c:(.text+0x5fb): undefined reference to `__stack_chk_guard'
D:\zDown\temp\SysTmp\cc267jI6.o:lt-vlc.c:(.text+0xa92): undefined reference to `__stack_chk_guard'
D:\zDown\temp\SysTmp\cc267jI6.o:lt-vlc.c:(.text+0xfbc): undefined reference to `__stack_chk_fail'
collect2.exe: error: ld returned 1 exit status

gcc -ladvapi32 -o vlc.exe vlc-winvlc.o ../lib/.libs/libvlc.dll.a   vlc_win32_rc.o
gcc  -ladvapi32 -o vlc-cache-gen.exe cachegen.o  ../compat/.libs/libcompat.a ../lib/.libs/libvlc.dll.a vlc_win32_rc.o 
--------------------------------------------------------------------------------------------
make install
Done.

 

posted @ 2020-09-04 22:39  1CM  阅读(444)  评论(0编辑  收藏  举报