allyourcodebase / allyourcodebase/ffmpeg

Zig 0.16-dev error on build after pc reset

Aperta
#32 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
C
Stelle
321
Fork
56
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.