eminfedar / vaktisalah-gtk-rs

Rust & GTK4 version of Vakt-i Salah (Prayer Times) Application
MIT License
21 stars 1 forks source link

Dependices #6

Closed halak0013 closed 2 months ago

halak0013 commented 3 months ago

Es Selamun Aleykum I want to add tray icon option. But when i try to build it give dependency errors Can you add for development dependency for Pardus/Debian

eminfedar commented 3 months ago

What library you want to use? Tray Icon support is removed in GTK4, only exists in GTK3, so it is not compatible with GTK4.

halak0013 commented 3 months ago

Without adding a tray icon, it gave dependency errors in compilation. For example It was giving alsa errors I installed libasound2-dev

Details

The following warnings were emitted during compilation: warning: glib-sys@0.19.0: error: failed to run custom build command for `glib-sys v0.19.0` Caused by: process didn't exit successfully: `/home/user/projelerimiz2/yazilim/rust/vaktisalah-gtk-rs/target/debug/build/glib-sys-32faaa5f1fbcc2b8/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= pkg-config exited with status code 1 > PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config --libs --cflags glib-2.0 glib-2.0 >= 2.77 The system library `glib-2.0` required by crate `glib-sys` was not found. The file `glib-2.0.pc` needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory. The PKG_CONFIG_PATH environment variable is not set. HINT: if you have installed the library, try setting PKG_CONFIG_PATH to the directory containing `glib-2.0.pc`. warning: build failed, waiting for other jobs to finish... The following warnings were emitted during compilation: warning: gobject-sys@0.19.0: error: failed to run custom build command for `gobject-sys v0.19.0` Caused by: process didn't exit successfully: `/home/user/projelerimiz2/yazilim/rust/vaktisalah-gtk-rs/target/debug/build/gobject-sys-d5191142713939c5/build-script-build` (exit status: 1) --- stdout cargo:rerun-if-env-changed=GOBJECT_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= pkg-config exited with status code 1 > PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config --libs --cflags gobject-2.0 gobject-2.0 >= 2.77 The system library `gobject-2.0` required by crate `gobject-sys` was not found. The file `gobject-2.0.pc` needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory. The PKG_CONFIG_PATH environment variable is not set. HINT: if you have installed the library, try setting PKG_CONFIG_PATH to the directory containing `gobject-2.0.pc`.

I want to try this https://github.com/olback/tray-item-rs

eminfedar commented 3 months ago

Oh I see, I updated the GTK4 platform to the Gnome 46 platform. You can build in flatpak with org.gnome.Sdk/46.

Pardus 23(Debian 12) is in Gnome 43 with its native libraries. So it won't build. But it will build if you build it with flatpak.

Here is the flatpak repository to build with flatpak in your local pc:

https://github.com/flathub/io.github.eminfedar.vaktisalah-gtk-rs

eminfedar commented 2 months ago

Tray icon added in v2.3.0