Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It is zig 0.14.0-dev.2456+a68119f8f compatible? #169

Closed
Tidy-Coder opened this issue Dec 20, 2024 · 5 comments
Closed

It is zig 0.14.0-dev.2456+a68119f8f compatible? #169

Tidy-Coder opened this issue Dec 20, 2024 · 5 comments

Comments

@Tidy-Coder
Copy link

Tidy-Coder commented Dec 20, 2024

Hello. When I compile the example code with raylib-ontop, the following error is produced on my terminal:
raylib-ontop └─ run raylib-ontop └─ zig build-exe raylib-ontop Debug native 2 errors src/Backend.zig:128:30: error: no field named 'Struct' in union 'builtin.Type' inline for (@typeInfo(I).Struct.decls) |decl| { ^~~~~~ /home/tidycoder/programs/zig/zig/lib/std/builtin.zig:557:18: note: union declared here pub const Type = union(enum) { ^~~~~ src/Font.zig:134:37: error: no field named 'Struct' in union 'builtin.Type' inline for (@typeInfo(TTFBytes).Struct.decls) |decl| { ^~~~~~ /home/tidycoder/programs/zig/zig/lib/std/builtin.zig:557:18: note: union declared here pub const Type = union(enum) { ^~~~~ referenced by: init: src/dvui.zig:2655:64 main: examples/raylib-ontop.zig:34:35 4 reference(s) hidden; use '-freference-trace=6' to see all references
I don't know if this compilation error result from my zig version, for information, I use linux.

@Tidy-Coder Tidy-Coder changed the title It is 0.14.0-dev.2456+a68119f8f compatible? It is zig 0.14.0-dev.2456+a68119f8f compatible? Dec 20, 2024
@david-vanderson
Copy link
Owner

david-vanderson commented Dec 20, 2024

Sorry - dvui tracks the latest stable zig which is 0.13. Once 0.14 is released (I think it will be early in 2025) we will update - #119 is where that is being tracked.

If 0.14 is taking too long then we'll figure something else out.

Does that work for you?

@Tidy-Coder
Copy link
Author

I have the following error when I execute the zig build -fsys=sdl2 sdl-standalone command:
sdl-standalone └─ run sdl-standalone └─ zig build-exe sdl-standalone Debug native 1 errors src/backends/sdl_backend.zig:21:47: error: no field named 'Enum' in union 'builtin.Type' cursor_backing: [@typeInfo(dvui.enums.Cursor).Enum.fields.len]?*c.SDL_Cursor = [_]?*c.SDL_Cursor{null} ** @typeInfo(dvui.enums.Cursor).Enum.fields.len, ^~~~ /home/tidycoder/programs/zig/zig/lib/std/builtin.zig:557:18: note: union declared here pub const Type = union(enum) { ^~~~~

@david-vanderson
Copy link
Owner

That sounds like the same 0.14 problem - can you confirm you are trying with zig 0.13?

@Tidy-Coder
Copy link
Author

Tidy-Coder commented Dec 21, 2024

Ah, sorry, now it work with zig 0.13 perfectly. thanks for this repo, the community is very reactive, and the goals are goods: Creating the perfect gui framework for making games and apps for the robustness and optimal programming language: zig. Not just for a specific domain, games and apps! I very love this phrase and the repository.

@david-vanderson
Copy link
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants