Help wanted with raylib zig binding

game dev is a hobby of mine which is do in free time. I discovered that raylib has bindings for zig and there is a repo on the github.
the repo ; https://github.com/Not-Nik/raylib-zig
I followed the instructions on repo which is to run:
zig fetch --save git+https://github.com/Not-Nik/raylib-zig#devel
but running this command I get the error:

    .name = .raylib_zig,

I tried searching the web but got nothing.
I urge the community to please help me.

my zig version: 0.13.0
my os: Fedora Linux 41 (Workstation Edition) x86_64

1 Like

Hey, welcome to Ziggit!

As the readme states, the bindings are for Zig 0.14.0. There has been a breaking change in how dependency names are handled from 0.13.0 to 0.14.0.
I would recommend upgrading your Zig version. You can use a version manager like zvm to make this easier.

2 Likes

Thanks for the reply.
I would appreciate brief guidance if you please.

As I said it’s easiest if you use zvm.
To do that you first have to remove your current zig installation (type zig if you’re not sure where it is) and then run the zvm installer as described in the readme.
Then you can run zvm i 0.14.1 or zvm i --zls 0.14.1 if you want a lsp and you should be good to go.
I would install 0.14.1 instead of 0.14.0 since it is the latest tagged release and introduced no breaking changes.

1 Like

Thanks for the help.

1 Like

Thanks for the help. It worked.

You can use the check mark to select an answer as the solution to your problem.