Not-Nik / raylib-zig

Manually tweaked, auto-generated raylib bindings for zig. https://github.com/raysan5/raylib
MIT License
623 stars 115 forks source link

Getting an error when following readme instruction #66

Closed eastwood closed 8 months ago

eastwood commented 8 months ago

As a beginner, I'm unable to get zig working following README:

  1. brew install zig
  2. git clone https://github.com/Not-Nik/raylib-zig
  3. cd raylib-zig && ./project-setup test && cd test
  4. zig build run

/build.zig:14:35: error: root struct of file 'raylib-zig.build' has no member named 'getArtifact' const raylib_artifact = rl.getArtifact(b, target, optimize); ^~~~~~ referenced by: runBuild__anon_6732: /opt/homebrew/Cellar/zig/0.11.0/lib/zig/std/Build.zig:1639:37 remaining reference traces hidden; use '-freference-trace' to see all reference traces

Still working on the fix, but I'm unfamiliar with Zig so raising this in case others have solved or run into this as well.

Running on Mac M1.