<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt;"><div>Hey folks, I've been trying to build Gstreamer with rust support and I'm running into the following error:<br></div><div><br></div><div>The following warnings were emitted during compilation (output of 'ninja -C builddir'): <br></div><div><br></div><div>warning: `"pkg-config" "--libs" "--cflags" "pangocairo" "pangocairo >= 1.40"` did not exit successfully: exit status: 1<br></div><div><br></div><div>error: failed to run custom build command for `pangocairo-sys v0.16.2 (<a target="_blank" href="https://github.com/gtk-rs/gtk-rs-core?branch=0.16#3ea71513">https://github.com/gtk-rs/gtk-rs-core?branch=0.16#3ea71513</a>)`<br></div><div><br></div><div>Caused by:<br></div><div> process didn't exit successfully: `/home/rodsantos/workspace/gstreamer/builddir/subprojects/gst-plugins-rs/target/debug/build/pangocairo-sys-801a6f62ab38100e/build-script-build` (exit status: 1)<br></div><div> --- stdout<br></div><div> cargo:rerun-if-env-changed=PANGOCAIRO_NO_PKG_CONFIG<br></div><div> cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-unknown-linux-gnu<br></div><div> cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_unknown_linux_gnu<br></div><div> cargo:rerun-if-env-changed=HOST_PKG_CONFIG<br></div><div> cargo:rerun-if-env-changed=PKG_CONFIG<br></div><div> cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu<br></div><div> cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu<br></div><div> cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH<br></div><div> cargo:rerun-if-env-changed=PKG_CONFIG_PATH<br></div><div> cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu<br></div><div> cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu<br></div><div> cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR<br></div><div> cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR<br></div><div> cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu<br></div><div> cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu<br></div><div> cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR<br></div><div> cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR<br></div><div> cargo:warning=`"pkg-config" "--libs" "--cflags" "pangocairo" "pangocairo >= 1.40"` did not exit successfully: exit status: 1<br></div><div> error: could not find system library 'pangocairo' required by the 'pangocairo-sys' crate<br></div><div><br></div><div> --- stderr<br></div><div> Empty package name in Requires or Conflicts in file '/home/rodsantos/workspace/gstreamer/builddir/meson-uninstalled/pangoft2-uninstalled.pc'<br></div><div><br></div><div>warning: build failed, waiting for other jobs to finish...<br></div><div>Error: CliError { error: Some(1 job failed), exit_code: 101<br></div><div><br></div><div><br></div><div>However, if running 'pkg-config --libs --cflags pangocairo "pangocairo >= 1.40"' on the shell I get the following output:<br></div><div>-pthread -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/harfbuzz -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -lpangocairo-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lharfbuzz -lcairo<br></div><div><br></div><div>Also, running 'cat builddir/meson-logs/meson-log.txt | grep pangocairo' I get:<br></div><div>Run-time dependency pangocairo found: YES 1.50.6 <br></div><div>Dependency pangocairo found: YES 1.50.6 (cached)<br></div><div>Dependency pangocairo found: YES 1.50.6 (cached)<br></div><div>Dependency pangocairo found: YES 1.50.6 (cached)<br></div><div>gobject-2.0,gstreamer-1.0,glib-2.0,gstreamer-base-1.0,pango,gmodule-2.0,pangocairo<br></div><div>Dependency pangocairo found: YES 1.50.6 (cached)<br></div><div>pangocairo,gmodule-2.0,pango,cairo-gobject,gstreamer-1.0,glib-2.0,gstreamer-base-1.0,gobject-2.0,gstreamer-video-1.0<br></div><div><br></div><div>My understanding is the missing dep is installed but for some reason the build fails. Am I wrong or missing something? I'm trying to build Gstreamer main (commit 'd8bdd9429bb7c3c1be4d90aaafbe5ad3753324e5').<br></div><div><br></div><div>FWIW I'm running Ubuntu 22.04.1 LTS over WSL2. </div><div><br></div><div class="zmail_signature_below"><div id="" data-zbluepencil-ignore="true" data-sigid="8819909000000014001"><div>Rodrigo Santos<br></div></div></div><div><br></div></div><br></body></html>