After installing the dependencies with sudo zypper in zig{,-libs} SDL2{,-devel,_ttf-devel,_image-devel} libSDL2_gfx-{1_0-0,devel}
and setting my path with export PATH="$PATH:$(realpath $(pwd))/scripts"
, running zig build run
resulted in the following error:
/home/thalia/.local/src/mepo/build.zig:16:34: error: expected struct or union; found '[]const u8'
.source_dir = .{ .path = "scripts" },
^~~~~~~~~
referenced by:
runBuild: /usr/lib/zig/build_runner.zig:232:22
usage__anon_5090: /usr/lib/zig/build_runner.zig:242:13
remaining reference traces hidden; use '-freference-trace' to see all reference traces
This was the case with both the 1.2.0 tarball and a clone of the master branch.
Hey there - the latest 1.2.0 release and master as well is pinned against zig
0.11.x
and unfortunately won't build with zig0.10.1
. You should upgrade your zig install locally to0.11.x
and try rebuilding.