Cannot use system SDL3
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 52/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- zig
- Domain
- desktop
Research direction
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.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- Zig
- Stars
- 1.5k
- Forks
- 40
- Avg merge
- 7h 10m
- Merged PRs (30d)
- 98
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from fizzyedit/fizzy
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 12/100
Maintainers usually reply within 1 day
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 12/100
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 10/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
penso/herdr-gpui#399 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
feature
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
slopus/happy-desktop#45 ·
Maintainers usually reply within 8 days