sbwtw / pidgin-wechat

pidgin plugin for web wechat protocol
Do What The F*ck You Want To Public License
135 stars 14 forks source link

5-11最新代码编译不通过 #4

Closed moboard closed 7 years ago

moboard commented 7 years ago

arch系统,在编译的时候出现如下信息后停止编译:

Compiling purple-sys v0.0.4
error: failed to run custom build command for `purple-sys v0.0.4`
process didn't exit successfully: `/home/ivan/tmp/pidgin-wechat/target/release/build/purple-sys-a13e419dc2c076f8/build-script-build` (exit code: 101)
--- stdout
cargo:rustc-link-search=native=/usr/lib
cargo:rustc-link-lib=purple
cargo:rustc-link-lib=glib-2.0
test = "/usr/include/libpurple/purple.h"
found = "/usr/include/libpurple/purple.h"
Adding include dir: /usr/include/libpurple
Adding include dir: /usr/include/glib-2.0
Adding include dir: /usr/lib/glib-2.0/include

--- stderr
thread 'main' panicked at 'Unable to find libclang: "couldn\'t find any of \'libclang.so\', set the LIBCLANG_PATH environment variable to a path where one of these files can be found"', src/libcore/result.rs:868
note: Run with `RUST_BACKTRACE=1` for a backtrace.

求解

sbwtw commented 7 years ago

看来是缺少依赖,我没在干净环境下测试过依赖,这个应该是要装 clang 这个包。 如果安装之后还缺少其它依赖,请及时通知我:)

moboard commented 7 years ago

谢谢,安装clang之后,三秒就编译成功了。