rust-bindgen报错 ‘Unable to find libclang的解决办法

Windows下面可能会遇到这个问题的解决方案

1)把LLVM安装到没有空格的路径。

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 on 2023-07-11 22:11  zhsmtp  阅读(442)  评论(0编辑  收藏  举报