elkowar / eww

ElKowars wacky widgets

Home Page:https://elkowar.github.io/eww

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compilation errors

one2onepiece opened this issue · comments

Description of the bug

eww doesn't compile.
The build fails on dbusmenu-glib v0.1.0.
Previous releases compiled fine with the same system setup.
I tried to fix it myself, but without success (for my taste this library is a little ugly).

Reproducing the issue

git clone https://github.com/elkowar/eww.git
cd eww
cargo update
cargo build --release --no-default-features --features=wayland

Expected behaviour

Compiled executable.

Did you do a cargo update ? dbusmenu-glib have an issue which make it not compile with newer version of the glib.
Also, please post the error message to help debugging.
PS: it's an ugly lib because it's fully auto-generated by gir, which means that the lib itself isn't meant to be modified, fixes should be done in gir.

You caught me, sir. cargo update was like a reflex, you do it automatically. Now everything is in order, I checked the much-needed tray, it works. Thanks!

rm -rf ~/.cargo/registry/*
git clone https://github.com/elkowar/eww.git
cd eww
### do-not-do-that --> cargo update
cargo build --release --no-default-features --features=wayland

I also checked that it compiles with the latest stable rust version (currently 1.77.1, just mv rust-toolchain.toml ~rust-toolchain.toml if you want to try).
PS. Everything becomes more like spaghetti... Sometimes it's better not to pull on one of them. We continue to hold on.