MSVC linker errors when compiling shared gst-plugins-base
GStreamer 1.16.0
I am trying to compile shared gst-plugins-base with MSVC, and I am getting the following linking errors:
FAILED: gst-libs/gst/tag/gsttag-1.0-0.dll
link @gst-libs/gst/tag/gsttag-1.0-0.dll.rsp
Creating library gst-libs\\gst\\tag\\gsttag-1.0.lib and object gst-libs\\gst\\tag\\gsttag-1.0.exp
gstreamer-1.0.lib(gstplugin.c.obj) : error LNK2019: unresolved external symbol g_module_supported referenced in function _priv_gst_plugin_load_file_for_registry
gstreamer-1.0.lib(gstplugin.c.obj) : error LNK2019: unresolved external symbol g_module_open referenced in function _priv_gst_plugin_load_file_for_registry
gstreamer-1.0.lib(gstplugin.c.obj) : error LNK2019: unresolved external symbol g_module_close referenced in function _priv_gst_plugin_load_file_for_registry
gstreamer-1.0.lib(gstplugin.c.obj) : error LNK2019: unresolved external symbol g_module_make_resident referenced in function gst_plugin_register_func
gstreamer-1.0.lib(gstplugin.c.obj) : error LNK2019: unresolved external symbol g_module_error referenced in function _priv_gst_plugin_load_file_for_registry
gstreamer-1.0.lib(gstplugin.c.obj) : error LNK2019: unresolved external symbol g_module_symbol referenced in function _priv_gst_plugin_load_file_for_registry
gstreamer-1.0.lib(gstpoll.c.obj) : error LNK2019: unresolved external symbol __imp_WSASetLastError referenced in function gst_poll_wait
gstreamer-1.0.lib(gstpoll.c.obj) : error LNK2019: unresolved external symbol __imp_WSAGetLastError referenced in function gst_poll_collect_winsock_events
gstreamer-1.0.lib(gstpoll.c.obj) : error LNK2019: unresolved external symbol __imp_WSACreateEvent referenced in function gst_poll_add_fd
gstreamer-1.0.lib(gstpoll.c.obj) : error LNK2019: unresolved external symbol __imp_WSAEnumNetworkEvents referenced in function gst_poll_collect_winsock_events
gstreamer-1.0.lib(gstpoll.c.obj) : error LNK2019: unresolved external symbol __imp_WSAEventSelect referenced in function gst_poll_free
gstreamer-1.0.lib(gstpoll.c.obj) : error LNK2019: unresolved external symbol __imp_WSAWaitForMultipleEvents referenced in function gst_poll_wait
gst-libs/gst/tag/gsttag-1.0-0.dll : fatal error LNK1120: 12 unresolved externals
[63/342] Compiling C object gst/audioresample/d66e76d@@gstaudioresample@sha/gstaudioresample.c.obj.
ninja: build stopped: subcommand failed.
build command line:
set "VSCMD_START_DIR=%CD%" && call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC/Auxiliary/Build/vcvarsall.bat" amd64 && meson "C:\Users\SSE4\.conan\data\gst-plugins-base\1.16.0\bincrafters\testing\build\aa38a286ffa06096a5605cdad1622abf04c29797\source_subfolder" "C:\Users\SSE4\.conan\data\gst-plugins-base\1.16.0\bincrafters\testing\build\aa38a286ffa06096a5605cdad1622abf04c29797\build_subfolder" --backend=ninja -Dprefix="C:\Users\SSE4\.conan\data\gst-plugins-base\1.16.0\bincrafters\testing\package\aa38a286ffa06096a5605cdad1622abf04c29797" -Dlibdir="lib" -Dbindir="bin" -Dsbindir="bin" -Dlibexecdir="bin" -Dincludedir="include" -Dcpp_std="none" -Ddefault_library="shared" -Dc_args="-MD -DGST_STATIC_COMPILATION" -Dcpp_args="-MD -DGST_STATIC_COMPILATION" -Dtools="disabled" -Dexamples="disabled" -Dbenchmarks="disabled" -Dtests="disabled" --buildtype=release