capy-ui / zig-template

Simple template for creating a Capy app in Zig
The Unlicense
26 stars 11 forks source link

zig build not wroking on window #12

Closed dhrubrawat66 closed 3 months ago

dhrubrawat66 commented 3 months ago
  1. zig version -> 0.12.0-dev.2063+804cee3b9
  2. when i run the zig build run, It throws following errors
  3. Screenshot 2024-07-20 170959

what to do?

fable00 commented 3 months ago
  1. zig version -> 0.12.0-dev.2063+804cee3b9
  2. when i run the zig build run, It throws following errors

Screenshot 2024-07-20 170959

what to do?

I solved it by updating the version of zig to 0.13.0-dev.351+64ef45eb0, then changing in (i think the numbers can change) '.cache/zig/p/1220bc2612b57b0cfaaecbcac38e3144e5a9362ff668d71eb8334e895047bdbb7148/build.zig' and in .cache/zig/p/1220c94dbcdf5a799ce2b1571978ff3c97bab1341fe329084fcc3c06e5d6375469b9/build.zig all the lines with .root_source_file = .path = "some stuff" to .root_source_file = .{ .src_path = .{.owner = b, .sub_path = "the stuff was here"} }. Then installed gtk4 with "sudo apt install libgtk-4-dev", and all worked fine.