godot-zig / godot-zig-examples

Examples for godot-zig
MIT License
11 stars 1 forks source link

Examples fail to build #3

Open viktor-ferenczi opened 2 months ago

viktor-ferenczi commented 2 months ago

Godot 4.3 Zig 0.13.0

C:\Dev\Godot\godot-zig-examples>zig build bind
C:\Dev\Godot\godot-zig-examples\build.zig:10:33: error: no field named 'path' in union 'Build.LazyPath'
        .root_source_file = .{ .path = "src/Entry.zig" },
                                ^~~~
C:\zig\lib\std\Build.zig:2171:22: note: union declared here
pub const LazyPath = union(enum) {
                     ^~~~~
referenced by:
    runBuild__anon_8952: C:\zig\lib\std\Build.zig:2117:37
    main: C:\zig\lib\compiler\build_runner.zig:301:29
    remaining reference traces hidden; use '-freference-trace' to see all reference traces
SlashScreen commented 1 week ago

I got this too.

elvisxzhou commented 1 week ago

sorry, I'll look into this later

but .root_source_file = b.path("src/Entry.zig") will do the work

On Fri, Oct 18, 2024 at 6:49 PM Slashscreen @.***> wrote:

I got this too.

— Reply to this email directly, view it on GitHub https://github.com/godot-zig/godot-zig-examples/issues/3#issuecomment-2422181592, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAWGUB3VKJZLCXA5AZA3JTZ4DRTVAVCNFSM6AAAAABMVOG3VGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRSGE4DCNJZGI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Best Regards Elvis

SlashScreen commented 1 week ago

I eventually figured that out. However, ExampleNode class can't be found.

elvisxzhou commented 1 week ago

Fixed, sorry for inconvenience by the dumb issue

On Sat, Oct 19, 2024 at 3:44 AM Slashscreen @.***> wrote:

I eventually figured that out. However, ExampleNode class can't be found.

— Reply to this email directly, view it on GitHub https://github.com/godot-zig/godot-zig-examples/issues/3#issuecomment-2423126220, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAWGUBXQSVQEPPPXTOBPFLZ4FQITAVCNFSM6AAAAABMVOG3VGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRTGEZDMMRSGA . You are receiving this because you commented.Message ID: @.***>

-- Best Regards Elvis