Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with libclang.dll on Windows 11 #169

Open
mcprotector opened this issue Dec 22, 2023 · 5 comments
Open

Problem with libclang.dll on Windows 11 #169

mcprotector opened this issue Dec 22, 2023 · 5 comments

Comments

@mcprotector
Copy link

Windows 11
Rust for Visual Studio

That message in build info:
Unable to find libclang: "couldn't find any valid shared libraries matching: ['clang.dll', 'libclang.dll'], set the LIBCLANG_PATH environment variable to a path where one of these files can be found (invalid: [])

A lot of versions for clang downloaded, LIBCLANG_PATH set, but don't work.

@EpicCodeWizard
Copy link

Hi there, I faced the same issue and did the following steps to fix it (not sure if this will work for you).

  1. Download a prebuilt version of clang.dll and libclang.dll: https://ziglang.org/deps/llvm+clang+lld-10.0.0-x86_64-windows-msvc-release-mt.tar.xz
  2. Extract to a folder, then set the environment variable LIBCLANG_PATH to path\llvm+clang+lld-10.0.0-x86_64-windows-msvc-release-mt\bin
  3. The bin folder contains the required libraries and executables

After that, compiling and running my project worked out well. Please let me know if you run into any issues.

@EpicCodeWizard
Copy link

@mcprotector

@mcprotector
Copy link
Author

Yes, I managed to solve this problem. It turned out that we needed to enter the path directly into the System.

Now I have another problem. Immediately after ffmpeg is initiated, system messages cannot be displayed on the console screen. And I basically don’t see what’s going on inside there.

@EpicCodeWizard
Copy link

Not sure what you mean, can you provide some error logs?

@mcprotector
Copy link
Author

Not sure what you mean, can you provide some error logs?

There is no errors.
Simply ffmpeg::init().unwrap(); block println output.
Without I can echo messages to console. When ffmpeg is inited console have no messages.

println!("Hello World!");
output "Hello World!"

ffmpeg::init().unwrap();
println!("Hello World!");

empty output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants