rust release build failed
OS: Ubuntu 20.04
git clone --branch 1.18.4 --depth 1 https://gitlab.freedesktop.org/gstreamer/gst-build.git
meson --buildtype=release -Drs=enabled build
ninja -C build
will fail. Debug works fine and compile.
ninja: Entering directory `build' [0/2] Generating gst-plugins-rs with a custom command Finished release [optimized + debuginfo] target(s) in 1.49s Compiling num-rational v0.4.0 Compiling transpose v0.2.1 Compiling primal-check v0.3.1 Compiling chrono v0.4.19 Compiling gstreamer-sys v0.17.0 (https://gitlab.freedesktop.org/gstreamer/gstreamer-rs#6c3cc3c4) The following warnings were emitted during compilation:
warning:
"pkg-config" "--libs" "--cflags" "gstreamer-1.0" "gstreamer-1.0 >= 1.18"
did not exit successfully: exit code: 1error: failed to run custom build command for
gstreamer-sys v0.17.0 (https://gitlab.freedesktop.org/gstreamer/gstreamer-rs#6c3cc3c4)
Caused by: process didn't exit successfully:
/home/wk/gst-build/build/subprojects/gst-plugins-rs/target/release/build/gstreamer-sys-e0248413a2c61d62/build-script-build
(exit code: 1) --- stdout cargo:rerun-if-env-changed=GSTREAMER_1.0_NO_PKG_CONFIG cargo:rerun-if-env-changed=PKG_CONFIG cargo:rerun-if-env-changed=GSTREAMER_1.0_STATIC cargo:rerun-if-env-changed=GSTREAMER_1.0_DYNAMIC cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu 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-unknown-linux-gnu cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu 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-unknown-linux-gnu cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR cargo:warning="pkg-config" "--libs" "--cflags" "gstreamer-1.0" "gstreamer-1.0 >= 1.18"
did not exit successfully: exit code: 1 --- stderr Requested 'gstreamer-1.0 >= 1.18' but version of GStreamer is 1.16.2warning: build failed, waiting for other jobs to finish... Error: CliError { error: Some(build failed), exit_code: 101 }