Error when trying to install tplay even with paru and cargo
Describe the bug I cannot install tplay using paru or cargo on Cachy OS (Arch Linux)
thread 'main' panicked at /home/tavi/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ff>
Unable to generate bindings: ClangDiagnostic("fatal error: '/usr/include/libavcodec/avfft.h'>
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to compile `tplay v0.6.3`, intermediate artifacts can be found at `/tmp/cargo-in>
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET>
To Reproduce Steps to reproduce the behavior:
- paru -S tplay-git (even tried cargo install tplay)
- install dependencies shown here
- When all dependency errors are resolved, run again
Expected behavior tplay and it dependencies are built and tplay is installed
Desktop (please complete the following information):
- OS: Cachy OS (Arch Linux)
-
yt-dlp --version: 2025.10.14 -
mpv --version: 0.40.0-dirty -
rustc --version: 1.90.0 -
pkg-config --modversion opencv4: 4.12.0 -
ffmpeg -version: n8.0
any idea why?
Unfortunately I'm not sure, it looks like avcodec is missing which might mean that some of the dependencies (to install before cargo) might not have installed correctly?
Unfortunately I'm not sure, it looks like avcodec is missing which might mean that some of the dependencies (to install before cargo) might not have installed correctly?
I literally tried reinstalling FFmpeg, doesn't work, it just avfft.h is missing in include directory, tried removing the include files, rebuilding everything, it does not want to add the file! Idk what to do, I guess I will probably use an alternative or any way to fix all of this?
Just found this package and had it successfully built and run on Arch after copying some code from libopenshot.
I had the issue with avfft.h being missing too, this is verifiable with pacman -F and is available only in ffmpeg4.4 now but not in ffmpeg (2:8.0.1-1):
$ pacman -F avfft.h
extra/ffmpeg4.4 4.4.6-3 [installed]
usr/include/ffmpeg4.4/libavcodec/avfft.h
[Only output]
Here's the gist and patch I used. I'm unsure if using ffmpeg4.4 is ideal. https://gist.github.com/qarls/b903a8e613bb5e761cc8b4e4970ebf44