Cannot use system SDL3
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 52/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- zig
- 领域
- desktop
调研方向
Start by inspecting the build script’s SDL3 system-library setup and the dvui SDL3 backend header cited in the error, zig-pkg/dvui-0.5.0-dev-AQFJmWiB-gCtzdvo-D5qGOj-k7nNvIsFEq-nYctwzDvZ/src/backends/sdl3-c.h. Compare the include paths used by zig build -fsys=sdl3 with pkg-config --cflags sdl3; done when the system-SDL3 build succeeds.
由索引模型根据 Issue 内容生成。
描述
It seems there's something wrong in build script with dvui setup? I cannot build with zig build -fsys=sdl3 which results in the following error.
$ zig build -fsys=sdl3
install
└─ install fizzy
└─ compile exe fizzy Debug native
└─ translate-c 2 errors
error: translation failure
/home/user/src/forks/fizzy/zig-pkg/dvui-0.5.0-dev-AQFJmWiB-gCtzdvo-D5qGOj-k7nNvIsFEq-nYctwzDvZ/src/backends/sdl3-c.h:29:10: error: 'SDL3/SDL.h' not found
#include "SDL3/SDL.h"
^
error: 2 compilation errors
failed command: /home/user/.cache/zig/p/N-V-__8AAFFSVRWqblwBIcA-Yqv-u7sbjsJoww8K0mWaHbmJ/zig translate-c -lc --cache-dir .zig-cache --global-cache-dir /home/user/.cache/zig /home/user/src/forks/fizzy/zig-pkg/dvui-0.5.0-dev-AQFJmWiB-gCtzdvo-D5qGOj-k7nNvIsFEq-nYctwzDvZ/src/backends/sdl3-c.h --listen=-
Build Summary: 40/44 steps succeeded (1 failed)
install transitive failure
└─ install fizzy transitive failure
└─ compile exe fizzy Debug native transitive failure
└─ translate-c 2 errors
error: the following build command failed with exit code 1:
.zig-cache/o/c999a1278854fd01c9f220be48da3318/build /home/user/.cache/zig/p/N-V-__8AAFFSVRWqblwBIcA-Yqv-u7sbjsJoww8K0mWaHbmJ/zig /home/user/.cache/zig/p/N-V-__8AAFFSVRWqblwBIcA-Yqv-u7sbjsJoww8K0mWaHbmJ/lib /home/user/src/forks/fizzy .zig-cache /home/user/.cache/zig --seed 0xa8690fa7 -Zc9264a5342a8ad69 -fsys=sdl3
fizzy
Pkg config shows sdl3 headers correctly.
$ pkg-config --cflags sdl3
-I/nix/store/snvmigqwhchfaj33vx7wq7qi9rvmvps4-sdl3-3.4.10-dev/include
- 主要语言
- Zig
- 星标
- 1.5k
- 派生
- 40
- 平均合并
- 7 小时 16 分钟
- 30 天内合并 PR
- 762
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
fizzyedit/fizzy 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 35/100
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 42/100
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 25/100
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 49/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 58/100
维护者通常 1 天内回复
相似的 Issue
-
🎉 Add PandaPal未关闭
难度 1/5 1 小时以内 新手友好度 62/100
jaywcjlove/awesome-mac#4192 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 65/100
HMCL-dev/HMCL#7175 · 1 个 reaction ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100