[GH-ISSUE #12] Support zig 0.15.0 when it is released #4

Closed
opened 2026-03-02 23:43:47 +03:00 by kerem · 4 comments
Owner

Originally created by @TheUncharted on GitHub (Aug 14, 2025).
Original GitHub issue: https://github.com/anomalyco/opentui/issues/12

Hello

I get this error when building the project
I use the latest version of zig : 0.15.0

bun run build                                                                                                                                                                           ✔  10129  10:58:29 
$ bun run build:native && bun run build:lib
$ node scripts/build.mjs --native
Building native prod binaries...
build.zig:62:28: error: no field or member function named 'addSharedLibrary' in 'Build'
    const target_output = b.addSharedLibrary(.{
                          ~^~~~~~~~~~~~~~~~~
/opt/zig/lib/std/Build.zig:1:1: note: struct declared here
const std = @import("std.zig");
^~~~~
build.zig:62:28: note: method invocation only supports up to one level of implicit pointer dereferencing
build.zig:62:28: note: use '.*' to dereference pointer
referenced by:
    buildSingleTarget: build.zig:51:29
    build: build.zig:25:26
    7 reference(s) hidden; use '-freference-trace=9' to see all references
Error: Zig build failed
Originally created by @TheUncharted on GitHub (Aug 14, 2025). Original GitHub issue: https://github.com/anomalyco/opentui/issues/12 Hello I get this error when building the project I use the latest version of zig : 0.15.0 ```bash bun run build  ✔  10129  10:58:29 $ bun run build:native && bun run build:lib $ node scripts/build.mjs --native Building native prod binaries... build.zig:62:28: error: no field or member function named 'addSharedLibrary' in 'Build' const target_output = b.addSharedLibrary(.{ ~^~~~~~~~~~~~~~~~~ /opt/zig/lib/std/Build.zig:1:1: note: struct declared here const std = @import("std.zig"); ^~~~~ build.zig:62:28: note: method invocation only supports up to one level of implicit pointer dereferencing build.zig:62:28: note: use '.*' to dereference pointer referenced by: buildSingleTarget: build.zig:51:29 build: build.zig:25:26 7 reference(s) hidden; use '-freference-trace=9' to see all references Error: Zig build failed ```
kerem 2026-03-02 23:43:47 +03:00
Author
Owner

@kommander commented on GitHub (Aug 14, 2025):

Thanks for the report! It's currently only supported for 0.14.1, I need to lock in the version. 0.15.0 update coming.

If you just want to try the examples, try running bun i in the repo, which should download the prebuild binary, provided there is a prebuild lib for your platform.

<!-- gh-comment-id:3187659032 --> @kommander commented on GitHub (Aug 14, 2025): Thanks for the report! It's currently only supported for 0.14.1, I need to lock in the version. 0.15.0 update coming. If you just want to try the examples, try running `bun i` in the repo, which should download the prebuild binary, provided there is a prebuild lib for your platform.
Author
Owner

@kommander commented on GitHub (Aug 14, 2025):

I am checking the zig version now before the build. There are some more changes that need fixing for 0.15.0, which I will do as soon as it is officially released.

<!-- gh-comment-id:3188304272 --> @kommander commented on GitHub (Aug 14, 2025): I am checking the zig version now before the build. There are some more changes that need fixing for 0.15.0, which I will do as soon as it is officially released.
Author
Owner

@asafyish commented on GitHub (Aug 23, 2025):

released.
https://ziglang.org/download/0.15.1/release-notes.html

<!-- gh-comment-id:3217253371 --> @asafyish commented on GitHub (Aug 23, 2025): released. https://ziglang.org/download/0.15.1/release-notes.html
Author
Owner

@msmps commented on GitHub (Jan 7, 2026):

resolved in #439

<!-- gh-comment-id:3718036123 --> @msmps commented on GitHub (Jan 7, 2026): resolved in #439
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/opentui#4
No description provided.