CapSoftware / scap

High-performance, cross-platform screen capture library in Rust.
https://crates.io/crates/scap
Other
231 stars 44 forks source link

LLVM version mismatch between 17.0.6 and 18.1 (libspa-sys) #117

Open arjOman opened 2 months ago

arjOman commented 2 months ago

Upon cargo run, I had llvm-libs 18.1 installed.

Unable to find libclang: "the `libclang` shared library at /usr/lib/libclang.so.17.0.6 could not be opened: libLLVM-17.so: cannot open shared object file: No such file or directory"

So I uninstalled llvm-libs 18.1 and installed 17.0.6. But now it asks for llvm 17.

rustc: error while loading shared libraries: libLLVM.so.18.1: cannot open shared object file: No such file or directory
error: could not compile `libspa-sys` (lib)

OS: Arch Linux 6.10.6-arch1-1

There is a dependency mismatch somewhere, but couldn't figure out where. Appreciate any help.

MAlba124 commented 2 months ago

Could you share some code that reproduces this issue?