Unable to build under gstreamer mono repo on Windows
fwiw, pkg-config.exe
doesn't exist anywhere in PATH
env
ninja -C build
ninja: Entering directory `build'
[0/2] Generating subprojects/gst-plugins-rs/gst-plugins-rs with a custom command (wrapped by meson to set PATH)
Compiling glib-sys v0.16.0 (https://github.com/gtk-rs/gtk-rs-core#166f0055)
Compiling gobject-sys v0.16.0 (https://github.com/gtk-rs/gtk-rs-core#166f0055)
Compiling gstreamer-sys v0.19.0 (https://gitlab.freedesktop.org/gstreamer/gstreamer-rs#5e2249d3)
Compiling gstreamer-base-sys v0.19.0 (https://gitlab.freedesktop.org/gstreamer/gstreamer-rs#5e2249d3)
Compiling gstreamer-video-sys v0.19.0 (https://gitlab.freedesktop.org/gstreamer/gstreamer-rs#5e2249d3)
Compiling gstreamer-audio-sys v0.19.0 (https://gitlab.freedesktop.org/gstreamer/gstreamer-rs#5e2249d3)
Compiling gio-sys v0.16.0 (https://github.com/gtk-rs/gtk-rs-core#166f0055)
Compiling cairo-sys-rs v0.16.0 (https://github.com/gtk-rs/gtk-rs-core#166f0055)
Compiling pango-sys v0.16.0 (https://github.com/gtk-rs/gtk-rs-core#166f0055)
Compiling pangocairo-sys v0.16.0 (https://github.com/gtk-rs/gtk-rs-core#166f0055)
Compiling gstreamer-rtp-sys v0.19.0 (https://gitlab.freedesktop.org/gstreamer/gstreamer-rs#5e2249d3)
Compiling gstreamer-net-sys v0.19.0 (https://gitlab.freedesktop.org/gstreamer/gstreamer-rs#5e2249d3)
Compiling gst-plugin-rspng v0.9.0 (C:\Work\gstreamer\subprojects\gst-plugins-rs\video\rspng)
Compiling gst-plugin-threadshare v0.9.0 (C:\Work\gstreamer\subprojects\gst-plugins-rs\generic\threadshare)
Compiling gst-plugin-textwrap v0.9.0 (C:\Work\gstreamer\subprojects\gst-plugins-rs\text\wrap)
Compiling gst-plugin-videofx v0.9.0 (C:\Work\gstreamer\subprojects\gst-plugins-rs\video\videofx)
The following warnings were emitted during compilation:
warning: Could not run `"pkg-config" "--libs" "--cflags" "glib-2.0" "glib-2.0 >= 2.48"`
error: failed to run custom build command for `glib-sys v0.16.0 (https://github.com/gtk-rs/gtk-rs-core#166f0055)`
Caused by:
process didn't exit successfully: `C:/Work/gstreamer/build/subprojects/gst-plugins-rs\target\debug\build\glib-sys-b1bda61ae7aed416\build-script-build` (exit code: 1)
--- stdout
cargo:rerun-if-env-changed=GLIB_2.0_NO_PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-pc-windows-msvc
cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_pc_windows_msvc
cargo:rerun-if-env-changed=HOST_PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-pc-windows-msvc
cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_pc_windows_msvc
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
cargo:rerun-if-env-changed=PKG_CONFIG_PATH
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-pc-windows-msvc
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_pc_windows_msvc
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-pc-windows-msvc
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_pc_windows_msvc
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
cargo:warning=Could not run `"pkg-config" "--libs" "--cflags" "glib-2.0" "glib-2.0 >= 2.48"`
The pkg-config command could not be found.
Most likely, you need to install a pkg-config package for your OS.
If you've already installed it, ensure the pkg-config command is one of the
directories in the PATH environment variable.
If you did not expect this build to link to a pre-installed system library,
then check documentation of the glib-sys crate for an option to
build the library from source, or disable features or dependencies
that require pkg-config.
warning: build failed, waiting for other jobs to finish...
The following warnings were emitted during compilation:
warning: Could not run `"pkg-config" "--libs" "--cflags" "gobject-2.0" "gobject-2.0 >= 2.48"`
The following warnings were emitted during compilation:
warning: Could not run `"pkg-config" "--libs" "--cflags" "gstreamer-1.0" "gstreamer-1.0 >= 1.18"`
The following warnings were emitted during compilation:
warning: Could not run `"pkg-config" "--libs" "--cflags" "gstreamer-base-1.0" "gstreamer-base-1.0 >= 1.18"`
The following warnings were emitted during compilation:
warning: Could not run `"pkg-config" "--libs" "--cflags" "gstreamer-video-1.0" "gstreamer-video-1.0 >= 1.18"`
The following warnings were emitted during compilation:
warning: Could not run `"pkg-config" "--libs" "--cflags" "gstreamer-audio-1.0" "gstreamer-audio-1.0 >= 1.16"`
The following warnings were emitted during compilation:
warning: Could not run `"pkg-config" "--libs" "--cflags" "gio-2.0" "gio-2.0 >= 2.48"`
The following warnings were emitted during compilation:
warning: Could not run `"pkg-config" "--libs" "--cflags" "cairo" "cairo >= 1.14"`
The following warnings were emitted during compilation:
warning: Could not run `"pkg-config" "--libs" "--cflags" "pango" "pango >= 1.38"`
The following warnings were emitted during compilation:
warning: Could not run `"pkg-config" "--libs" "--cflags" "pangocairo" "pangocairo >= 1.38"`
The following warnings were emitted during compilation:
warning: Could not run `"pkg-config" "--libs" "--cflags" "gstreamer-rtp-1.0" "gstreamer-rtp-1.0 >= 1.8"`
The following warnings were emitted during compilation:
warning: Could not run `"pkg-config" "--libs" "--cflags" "gstreamer-net-1.0" "gstreamer-net-1.0 >= 1.8"`
Error: CliError { error: Some(build failed), exit_code: 101 }
while executing ['C:\\Program Files\\Python310\\python.exe', 'C:/Work/gstreamer/subprojects/gst-plugins-rs/cargo_wrapper.py', 'build', 'C:/Work/gstreamer/build/subprojects/gst-plugins-rs', 'C:/Work/gstreamer/subprojects/gst-plugins-rs', 'C:/Work/gstreamer/build', 'debug', 'gst-plugin-audiofx,gst-plugin-cdg,gst-plugin-claxon,gst-plugin-closedcaption,gst-plugin-fallbackswitch,gst-plugin-ffv1,gst-plugin-file,gst-plugin-flavors,gst-plugin-fmp4,gst-plugin-gif,gst-plugin-hlssink3,gst-plugin-hsv,gst-plugin-json,gst-plugin-lewton,gst-plugin-rav1e,gst-plugin-regex,gst-plugin-reqwest,gst-plugin-rspng,gst-plugin-rusoto,gst-plugin-sodium,gst-plugin-spotify,gst-plugin-textahead,gst-plugin-textwrap,gst-plugin-threadshare,gst-plugin-togglerecord,gst-plugin-uriplaylistbin,gst-plugin-videofx,gst-plugin-webp', '', 'c:/', 'lib', 'dll']
FAILED: subprojects/gst-plugins-rs/libgstrsaudiofx.dll subprojects/gst-plugins-rs/libgstcdg.dll subprojects/gst-plugins-rs/libgstclaxon.dll subprojects/gst-plugins-rs/libgstfallbackswitch.dll subprojects/gst-plugins-rs/libgstffv1.dll subprojects/gst-plugins-rs/libgstrsfile.dll subprojects/gst-plugins-rs/libgstrsflv.dll subprojects/gst-plugins-rs/libgstgif.dll subprojects/gst-plugins-rs/libgstlewton.dll subprojects/gst-plugins-rs/libgstrav1e.dll subprojects/gst-plugins-rs/libgstreqwest.dll subprojects/gst-plugins-rs/libgsthlssink3.dll subprojects/gst-plugins-rs/libgstrspng.dll subprojects/gst-plugins-rs/libgstrusoto.dll subprojects/gst-plugins-rs/libgstrstextwrap.dll subprojects/gst-plugins-rs/libgstfmp4.dll subprojects/gst-plugins-rs/libgstthreadshare.dll subprojects/gst-plugins-rs/libgsttogglerecord.dll subprojects/gst-plugins-rs/libgsthsv.dll subprojects/gst-plugins-rs/libgstrsjson.dll subprojects/gst-plugins-rs/libgstrsregex.dll subprojects/gst-plugins-rs/libgstrswebp.dll subprojects/gst-plugins-rs/libgstvideofx.dll subprojects/gst-plugins-rs/libgsturiplaylistbin.dll subprojects/gst-plugins-rs/libgstspotify.dll subprojects/gst-plugins-rs/libgsttextahead.dll subprojects/gst-plugins-rs/libgstrsclosedcaption.dll subprojects/gst-plugins-rs/libgstsodium.dll
"C:\Program Files\Python310\Scripts\meson" "--internal" "exe" "--unpickle" "C:\Work\gstreamer\build\meson-private\meson_exe_python.exe_fb7073d1c047cca6d779c7b772c198f4ae24e03f.dat"
ninja: build stopped: subcommand failed.