Static GStreamer build fails to link rust plugins
When compiling the static version of GStreamer (with meson), the link stage of the rust plugins fail with: LINK : fatal error LNK1181: cannot open input file 'gobject-2.0.lib'
Setup
- Windows 11
- MSVC 2022
- gst-plugins-rs Version: 0.12.2
- GStreamer Version: 1.24.0.1
Steps to reproduce the bug
- Currently copied from a batch script.
meson subprojects update --reset
meson setup --wipe --buildtype=release --prefix %INSTALL_DIR%^
-Dstrip=false^
--default-library=static^
-Dgst-full-target-type=static_library^
--wrap-mode=forcefallback^
-Dgst-full-libraries=*^
-Dauto_features=disabled^
-Dbase=enabled^
-Dgood=enabled^
-Dbad=enabled^
-Dtools=enabled^
-Dtests=disabled^
-Dlibnice=enabled^
-Dlibav=disabled^
-Drtsp_server=disabled^
-Dglib:tests=false^
-Dcustom_subprojects=json-glib^
-Djson-glib:default_library=static^
-Djson-glib:tests=false^
-Dpcre2:test=false^
-Dges=disabled^
-Ddevtools=disabled^
-Dpython=disabled^
-Dgstreamer:registry=false^
-Dgst-plugins-base:playback=enabled^
-Dgst-plugins-base:encoding=enabled^
-Dgst-plugins-base:subparse=enabled^
-Dgst-plugins-base:compositor=enabled^
-Dgst-plugins-base:videotestsrc=enabled^
-Dgst-plugins-base:videorate=enabled^
-Dgst-plugins-base:videoconvertscale=enabled^
-Dgst-plugins-base:app=enabled^
-Dgst-plugins-base:typefind=enabled^
-Dgst-plugins-base:examples=disabled^
-Dgst-plugins-base:tests=disabled^
-Dgst-plugins-good:qt6=enabled^
-Dgst-plugins-good:soup=enabled^
-Dgst-plugins-good:rtp=enabled^
-Dgst-plugins-good:isomp4=enabled^
-Dgst-plugins-good:examples=disabled^
-Dgst-plugins-good:tests=disabled^
-Dgst-plugins-bad:autoconvert=enabled^
-Dgst-plugins-bad:d3d11=enabled^
-Dgst-plugins-bad:qt6d3d11=enabled^
-Dgst-plugins-bad:d3dvideosink=disabled^
-Dgst-plugins-bad:nvcodec=disabled^
-Dgst-plugins-bad:webrtc=enabled^
-Dgst-plugins-bad:videoparsers=enabled^
-Dgst-plugins-bad:examples=disabled^
-Dgst-plugins-bad:tests=disabled^
-Drs=enabled^
-Dgst-plugins-rs:webrtc=enabled^
-Dgst-plugins-rs:webrtchttp=enabled^
-Dgst-plugins-rs:rtp=enabled^
-Dgst-plugins-rs:file=enabled^
--vsenv^
%BUILD_DIR%
meson compile -C %BUILD_DIR%
meson install -C %BUILD_DIR%
Solutions you have tried
I attempted to replace ext_static = 'lib'
in meson.build
with ext_static = 'a'
. However, this did not help
Edited by Cole R