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

libclang shared library is not loaded on this thread #24

Open
jimpo opened this issue Nov 26, 2022 · 1 comment
Open

libclang shared library is not loaded on this thread #24

jimpo opened this issue Nov 26, 2022 · 1 comment

Comments

@jimpo
Copy link

jimpo commented Nov 26, 2022

I get the following build error in my project using this library:

error: failed to run custom build command for `rs_ws281x v0.4.4`                                                                                                                                                   
                                                                                                                                                                                                                   
Caused by:                                                                                                                                                                                                         
  process didn't exit successfully: `/home/jimpo/Code/git.buildroot.net/buildroot/output/build/ledbetter-1.0/target/release/build/rs_ws281x-dd55b51c0f12ed77/build-script-build` (exit status: 101)                
  --- stdout                                                                                                                                                                                                         ...                                                                                                                                                                            
                                                                                                                                                                                                                   
  --- stderr                                                                                                                                                                                                         thread 'main' panicked at 'a `libclang` shared library is not loaded on this thread', /home/jimpo/Code/git.buildroot.net/buildroot/output/host/share/cargo/registry/src/github.com-1ecc6299db9ec823/clang-sys-1.4
.0/src/lib.rs:1731:1

I believe the issue is that the runtime default feature of bindgen is disabled in the Cargo.toml. Either the runtime or static feature should be enabled.

@JMurph2015
Copy link
Collaborator

Everything (well except the example, oops) builds fine for me on 0.4.4. However, I have done some housecleaning, and now things definitely build for me on Ubuntu/Debian.

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