Edit: It turns out that capy-template was just a name and had no relevance. It seems that Capy build is behind Zig build so there are a number of build errors. I will raise another post to try and sort those out.
Hi. New to Zig. Got a fair way before having to ask for help with a few plain code modules and linking to my C library. Now I need to test GUI. Followed the instructions in Capy for an existing project and all fine except I don’t know where to add the capy-template as addExecutable seems to only take one argument now.
This is what the Capy doc suggests.
const exe = b.addExecutable(“capy-template”, " src/main.zig");
Error says expected one arg got two.
I then tried.
const exe = b.addExecutable(.{
.name = “trunk”,
// In this case the main source file is merely a path, however, in more
// complicated build scripts, this could be a generated file.
.root_source_file = .{ .path = “src/main.zig” },
.target = target,
.optimize = optimize,
.template = “capy-template”,
});
Error says no field template in Build.ExecutableOptions.
Some help appreciated, thank you, Bob