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

clang.cindex.LibclangError: libclang.so #4

Closed
robertjwright opened this issue Mar 24, 2017 · 3 comments
Closed

clang.cindex.LibclangError: libclang.so #4

robertjwright opened this issue Mar 24, 2017 · 3 comments
Labels
Milestone

Comments

@robertjwright
Copy link

I get the following error after installing llvm, clang, libclang-dev via package manager and installing the python bindings from the link in the readme (tar file, then python setup.py install):

clang.cindex.LibclangError: libclang.so: cannot open shared object file: No such file or directory. To provide a path to libclang use Config.set_library_path() or Config.set_library_file().

Which distro did you use?
Which packages did you install?
How did you install the python bindings?

@elliotchance
Copy link
Owner

So... here comes the embarrassing part. I don't actually know what I did to set it up correctly, at least I couldn't replicate my steps for the travis build (mac => linux).

However, not all is lost. I am almost finished working on a refactor that removes the need for any binary bindings or python libraries. It uses the natural clang output from the command line to build the AST. This should make it a lot less brittle (clang AST API is not stable and has changed many times) and not require any libraries in the middle.

Stay tuned, I will post a PR for those changes shortly. I won't close this issue until that PR has been merged in 😄

@elliotchance
Copy link
Owner

Hi @robertjwright, please try again with v0.2.1. You should be able to run the same commands as travis now: https://github.com/elliotchance/c2go/blob/master/.travis.yml#L13

@elliotchance
Copy link
Owner

I am closing this since c2go no longer relies on python clang libraries.

@elliotchance elliotchance added this to the v0.2.x milestone Apr 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants