avstack / gst-meet

Connect GStreamer pipelines to Jitsi Meet conferences
Apache License 2.0
70 stars 25 forks source link

Can't compile it by the default #24

Closed zsinba closed 2 years ago

zsinba commented 2 years ago

image 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.14.0

Caused by: process didn't exit successfully: /tmp/cargo-installMo7oKX/release/build/glib-sys-e57953bf9817ffc6/build-script-build (exit status: 1) --- stdout cargo:rerun-if-env-changed=GLIB_2.0_NO_PKG_CONFIG cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-unknown-linux-gnu cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_unknown_linux_gnu 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-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=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. Try apt install pkg-config, or yum install pkg-config, or pkg install pkg-config depending on your distribution.

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... error: failed to compile gst-meet v0.2.2, intermediate artifacts can be found at /tmp/cargo-installMo7oKX

Caused by: build failed root@iZuf66dviv45b84sw7ur9xZ:~/gst-meet#

Ubuntu 20.04 default machine

jbg commented 2 years ago

Please read the output that you pasted, as it not only tells you the problem, but also tells you how to solve it.

The pkg-config command could not be found.

Most likely, you need to install a pkg-config package for your OS.
Try apt install pkg-config, or yum install pkg-config,
or pkg install pkg-config depending on your distribution.