fairyglade / ly

display manager with console UI
Do What The F*ck You Want To Public License
5.33k stars 306 forks source link

Error in build.zig while trying to build from source #609

Closed lukeflo closed 4 months ago

lukeflo commented 4 months ago

I'm running Void Linux and want to install Ly as systemd free login manager for usage with runit.

Just cloned the repo and tried to build the binary, but get the following error after running zig build:

$ zig build
/home/<user>/Documents/packages/ly/build.zig:5:21: error: root struct of file 'std' has no member named 'Build'
pub fn build(b: *std.Build) void {
                 ~~~^~~~~~
referenced by:
    runBuild: /usr/lib/zig/build_runner.zig:231:45
    usage__anon_5110: /usr/lib/zig/build_runner.zig:242:13
    remaining reference traces hidden; use '-freference-trace' to see all reference traces

Any idea what could cause this? I have absolutely no experience wit zig.

AnErrupTion commented 4 months ago

@lukeflo The version of Zig in the Void Linux repositories is way too old (0.10.1 vs 0.12.0), so you'll have to download Zig manually (https://ziglang.org/download, scroll down until you see 0.12.0) and compile Ly using that.

lukeflo commented 4 months ago

Oh, you're correct. Didn't see that Void only has 0.10. Will try it with the up to date Zig version today evening and report.

lukeflo commented 4 months ago

Ok, that did the trick and installation with installrunit went well. Unfortunately, ly is still not running. But thats another issue and I will try to solve it myself first...