I am trying to autogenerate the cpp files for the lua bindings. I followed the Readme.md from bindings-generator but there is an issue. This is what happens
’
… Generating bindings for target spidermonkey
… … Processing section cocos2d-x
====
Errors in parsing headers:
- severity = Warning,
location = <SourceLocation file ‘/home/nta/dev/android-ndk-r9/toolchains/llvm-3.3/prebuilt/linux-x86/lib/clang/3.3/include/float.h’, line 86, column 9>,
details = “‘FLT_DIG’ macro redefined”> - severity = Warning,
location = <SourceLocation file ‘/home/nta/dev/android-ndk-r9/toolchains/llvm-3.3/prebuilt/linux-x86/lib/clang/3.3/include/float.h’, line 87, column 9>,
details = “‘DBL_DIG’ macro redefined”> - severity = Warning,
location = <SourceLocation file ‘/home/nta/dev/android-ndk-r9/toolchains/llvm-3.3/prebuilt/linux-x86/lib/clang/3.3/include/float.h’, line 106, column 9>,
details = “‘FLT_MAX’ macro redefined”> - severity = Warning,
location = <SourceLocation file ‘/home/nta/dev/android-ndk-r9/toolchains/llvm-3.3/prebuilt/linux-x86/lib/clang/3.3/include/float.h’, line 107, column 9>,
details = “‘DBL_MAX’ macro redefined”> - severity = Warning,
location = <SourceLocation file ‘/home/nta/dev/android-ndk-r9/toolchains/llvm-3.3/prebuilt/linux-x86/lib/clang/3.3/include/float.h’, line 114, column 9>,
details = “‘FLT_MIN’ macro redefined”> - severity = Warning,
location = <SourceLocation file ‘/home/nta/dev/android-ndk-r9/toolchains/llvm-3.3/prebuilt/linux-x86/lib/clang/3.3/include/float.h’, line 115, column 9>,
details = “‘DBL_MIN’ macro redefined”>
====
Unknown cursor kind
`
I am using clang 3.3. Also have installed all the dependencies
- python2.7
- py-yaml
- cheetah (for target language templates)
- libclang, from clang 3.3
Anyone has an idea?