gstreamer-full-1.0 static build, Linker: unresolved external symbol error on Windows
Describe your issue
I am attempting the gstreamer-full-1.0 static build on Windows 11 using MSVC 2022; however, there are unresolved external symbol errors near the end.
Observed Behavior
The build steps I am using are below:
meson setup --prefix <my-install-prefix> --default-library=static -Dauto_features=disabled -Dgst-full-libraries=app,video -Dgst-full-plugins=coreelements;udp;rtp;playback;videoconvertscale;app -Dbase=enabled -Dgood=enabled -Dbad=enabled --buildtype=release <my-build-directory>
ninja -C <my-build-directory> install
This is what I observe near the end:
[1585/1614] Generating subprojects/gst-plugins-bad/gst-libs/gst/transcoder/transcoder-enumtypes.h with a custom command (wrapped by meson because command contains newlines, to capture output)
[1586/1614] Linking target gstreamer-full-1.0.dll
FAILED: gstreamer-full-1.0.dll
"link" /MACHINE:x64 /OUT:gstreamer-full-1.0.dll gstreamer-full-1.0.dll.p/meson-generated_.._gstinitstaticplugins.c.obj "/nologo" "/release" "/nologo" "/OPT:REF" "/DLL" "/IMPLIB:gstreamer-full-1.0.lib" "/WHOLEARCHIVE:subprojects\gstreamer\gst\libgstreamer-1.0.a" "/WHOLEARCHIVE:subprojects\glib-2.74.1\glib\libglib-2.0.a" "/WHOLEARCHIVE:subprojects\glib-2.74.1\gobject\libgobject-2.0.a" "subprojects\gstreamer\plugins\elements\libgstcoreelements.a" "subprojects\gstreamer\gst\libgstreamer-1.0.a" "subprojects\glib-2.74.1\gobject\libgobject-2.0.a" "subprojects\libffi\src\libffi.a" "subprojects\glib-2.74.1\glib\libglib-2.0.a" "subprojects\pcre2-10.40\libpcre2-8.a" "subprojects\proxy-libintl\libintl.a" "subprojects\glib-2.74.1\glib\libcharset\libcharset.a" "subprojects\glib-2.74.1\glib\gnulib\libgnulib.a" "subprojects\glib-2.74.1\gmodule\libgmodule-2.0.a" "subprojects\gstreamer\gst\printf\libgstprintf.a" "subprojects\gstreamer\libs\gst\base\libgstbase-1.0.a" "ws2_32.lib" "ws2_32.lib" "winmm.lib" "kernel32.lib" "user32.lib" "gdi32.lib" "winspool.lib" "shell32.lib" "ole32.lib" "oleaut32.lib" "uuid.lib" "comdlg32.lib" "advapi32.lib"
meson-generated_.._gstinitstaticplugins.c.obj : error LNK2019: unresolved external symbol gst_plugin_udp_register referenced in function gst_init_static_plugins
meson-generated_.._gstinitstaticplugins.c.obj : error LNK2019: unresolved external symbol gst_plugin_rtp_register referenced in function gst_init_static_plugins
meson-generated_.._gstinitstaticplugins.c.obj : error LNK2019: unresolved external symbol gst_plugin_playback_register referenced in function gst_init_static_plugins
meson-generated_.._gstinitstaticplugins.c.obj : error LNK2019: unresolved external symbol gst_plugin_videoconvertscale_register referenced in function gst_init_static_plugins
meson-generated_.._gstinitstaticplugins.c.obj : error LNK2019: unresolved external symbol gst_plugin_app_register referenced in function gst_init_static_plugins
gstreamer-full-1.0.dll : fatal error LNK1120: 5 unresolved externals
Setup
- Operating System: Windows 11
- Device: Desktop Computer
- GStreamer Version: 1.22.5
Any help would be much appreciated!