nik012003 / ripdrag

Drag and Drop utilty written in Rust and GTK4
GNU General Public License v3.0
496 stars 17 forks source link

Missing dependency: libgtk4-dev (package 'gtk4') for build gtk4-sys #4

Closed cmdrtictak closed 1 year ago

cmdrtictak commented 1 year ago

--- stdout cargo:rerun-if-env-changed=GTK4_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="pkg-config" "--libs" "--cflags" "gtk4" "gtk4 >= 4.0.0" did not exit successfully: exit status: 1 error: could not find system library 'gtk4' required by the 'gtk4-sys' crate

--- stderr Package gtk4 was not found in the pkg-config search path. Perhaps you should add the directory containing gtk4.pc' to the PKG_CONFIG_PATH environment variable No package 'gtk4' found Package gtk4 was not found in the pkg-config search path. Perhaps you should add the directory containinggtk4.pc' to the PKG_CONFIG_PATH environment variable No package 'gtk4' found

nik012003 commented 1 year ago

Hi, please follow the gtk4-rs guide for compiling https://gtk-rs.org/gtk4-rs/stable/latest/book/installation_linux.html If it still doesn't work, could you please give me the output of cat /etc/os-release ?

Automated build are in the TODO list btw, so in the near feature some of those deps will be useless for users.

cmdrtictak commented 1 year ago

The Guide https://gtk-rs.org/gtk4-rs/stable/latest/book/installation_linux.html, namely installing libgtk4-dev via apt resolved the issue.