allyourcodebase / allyourcodebase/ffmpeg

Zig 0.16-dev error on build after pc reset

Offen
#32 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
C
Sterne
321
Forks
56
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Hi, I am currently trying to implement screencasting on Wayland for Awebo https://codeberg.org/awebo-chat/awebo
(I also plan to switch the audio backend from PulseAudio to PipeWire after I finished my goal).

I have this weird behaviour, I don't know exactly why it happens:

When I clone this package and try to build it, everything works fine. But after restarting my pc, I can't build this package, because some dependencies do not comply with the latest 0.16 build.zig changes. I can fix that by deleting zig-pkg, .zig-cache and the entire zig cache in /home/user/.cache/zig

I get the following errors (I cut it, it is obv that it fails to parse the build.zig of some dpeendencies):

```
/home/user/.local/bin/zig-awebo/zig build gui
zig-pkg/libressl-4.0.0--kqV4OjTAADhw9rD-tZaxFy2KPrSU4Bt9FOi9UZe-Zjl/build.zig:62:30: error: no field or member function named 'addCSourceFiles' in 'Build.Step.Compile'
libressl_common.libcrypto.addCSourceFiles(.{
~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
/home/user/.local/bin/zig-awebo/lib/std/Build/Step/Compile.zig:1:1: note: struct declared here
const Compile = @This();
^~~~~
```

I am using:
```
/home/user/.local/bin/zig-awebo/zig version
0.16.0-dev.3061+9b1eaad13
```

This happens only with this package (and when I compile Awebo, because it depends on this package).
I will try to update some of the dependencies and report back if it fixes the issue.
Note: New to Zig, heavily clueless, could very likely be my mistake

EDIT: Updated the dependencies that had issues, now everything works fine, even after restarting my pc.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.