allyourcodebase / allyourcodebase/ffmpeg

Zig 0.16-dev error on build after pc reset

Ouverte
#32 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
C
Étoiles
321
Forks
56
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.