Re:Will Hare replace C? Or Rust? Or Zig? Or anything else?
by scoutt on Tuesday May 03, 2022 @11:19AM
(#31249388)
Really? It seems more complicated than that.........
https://github.com/zmwangx/rust-ffmpeg/wiki/Notes-on-buildin...
And "Install FFmpeg (complete with headers) through any means, e.g. downloading a pre-built "full_build-shared".
Come on...
Re:Will Hare replace C? Or Rust? Or Zig? Or anything else?
by Cyph0n on Tuesday May 03, 2022 @11:28AM
(#31249496)
Ah, should have been more explicit: you also need a working C compiler (+ make, pkg-config, etc.) and the libav development headers.
As for libav itself, if prebuilt libraries are not present, the build script will fetch the source and build it as a static lib.
And thanks to the build script maintained by the crate (library) owner, this process should work exactly the same across major OSes and architectures transparently.
Edit: Here is the relevant part of the build script that actually configures and builds libav based on Cargo feature flags and configured rustc OS + arch: https://github.com/zmwangx/rust-ffmpeg-sys/blob/499fca3630fb...