satoren / luaOpenCV

OpenCV wrapper for Lua
45 stars 16 forks source link

how to run generate_bindings.py? #4

Open KellyGodLv opened 7 years ago

KellyGodLv commented 7 years ago

HI!Can you tell me which clang and python versions are needed to run generate_bindings.py.? when i was run it ,something went wrong. my python and clang version:python2.7-x86 clang 3.8 x86

Traceback (most recent call last): File "generate_bindings.py", line 707, in index = Index.create() File "C:\Python27\lib\site-packages\clang\cindex.py", line 2427, in create return Index(conf.lib.clang_createIndex(excludeDecls, 0)) File "C:\Python27\lib\site-packages\clang\cindex.py", line 141, in get value = self.wrapped(instance) File "C:\Python27\lib\site-packages\clang\cindex.py", line 3840, in lib register_functions(lib, not Config.compatibility_check) File "C:\Python27\lib\site-packages\clang\cindex.py", line 3787, in register_functions map(register, functionList) File "C:\Python27\lib\site-packages\clang\cindex.py", line 3785, in register return register_function(lib, item, ignore_errors) File "C:\Python27\lib\site-packages\clang\cindex.py", line 3766, in register_function raise LibclangError(msg) clang.cindex.LibclangError: function 'clang_CompileCommand_getFilename' not found. Please ensure that your python bindings are compatible with your libclang.so version.