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

Error parsing translation unit #203

Open
dtroitskiy opened this issue Nov 14, 2015 · 1 comment
Open

Error parsing translation unit #203

dtroitskiy opened this issue Nov 14, 2015 · 1 comment

Comments

@dtroitskiy
Copy link

Hello devs!

I'm trying to run genbindings.py, but unfortunately I'm seeing the error, mentioned in the subject.
I'm on Ubuntu 14.04, I followed the instructions and set everything up, I have all python stuff and I have Android NDK r9b, so theoretically it should work, but nope.

Full stack trace is this:

Traceback (most recent call last):
File "/home/stranger/Library/cocos2d-x-3.3/tools/bindings-generator/generator.py", line 1418, in
main()
File "/home/stranger/Library/cocos2d-x-3.3/tools/bindings-generator/generator.py", line 1414, in main
generator.generate_code()
File "/home/stranger/Library/cocos2d-x-3.3/tools/bindings-generator/generator.py", line 1087, in generate_code
self._parse_headers()
File "/home/stranger/Library/cocos2d-x-3.3/tools/bindings-generator/generator.py", line 1114, in _parse_headers
tu = self.index.parse(header, self.clang_args)
File "/home/stranger/Library/cocos2d-x-3.3/tools/bindings-generator/clang/cindex.py", line 2113, in parse
self)
File "/home/stranger/Library/cocos2d-x-3.3/tools/bindings-generator/clang/cindex.py", line 2225, in from_source
raise TranslationUnitLoadError("Error parsing translation unit.")

TranslationUnitLoadError: Error parsing translation unit.

Generating lua bindings fails.

Please tell me, maybe I forgot to do something or I can somehow get more detailed info about this error?

@smshuja
Copy link

smshuja commented Jan 26, 2016

I am getting this error while generating javascript bindings.

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