rust-bindgen报错 ‘Unable to find libclang的解决办法
Windows下面可能会遇到这个问题的解决方案:
1)把LLVM安装到没有空格的路径。
https://github.com/PLC-lang/llvm-package-windows/releases/tag/v14.0.6
2)LIBCLANG_PATH的值不要加双引号。
thread 'main' panicked at '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: [])"'
posted @ 2025-02-07 13:04 zyp_java_net 阅读(53) 评论(0) 推荐(0) 编辑