【求助】关于引擎定制的几个问题，卡好几天了

lucama
Tue, 06 Feb 2018 06:58:24 +0000

我也遇到这个问题

D:\GameSolution\CocosCreator\resources\cocos2d-x\tools\tojs>genbindings.py
PYTHON_BIN not defined, use current python.
generating userconf.ini…
Generating bindings for box2d…
Using userconfig
[(‘androidndkdir’, ‘D:\Android\android-ndk-r10e’), (‘clangllvmdir’, ‘D:\Android\android-ndk-r10e\toolchains\llvm-3.6\prebuilt\windows-x86_64’), (‘creatordir’, ‘D:\GameSolution\CocosCreator\resources\cocos2d-x\cocos\editor-support\creator’), (‘cocosdir’, ‘D:\GameSolution\CocosCreator\resources\cocos2d-x’), (‘anysdk_common_dir’, ‘D:\GameSolution\CocosCreator\resources\cocos2d-x\external\ios\include\anysdk\common’), (‘anysdk_appstore_dir’, ‘D:\GameSolution\CocosCreator\resources\cocos2d-x\external\ios\include\anysdk\appstore’), (‘jsbdir’, ‘D:\GameSolution\CocosCreator\resources\cocos2d-x\cocos\scripting\js-bindings’), (‘cxxgeneratordir’, ‘D:\GameSolution\CocosCreator\resources\cocos2d-x\tools\bindings-generator’), (‘extra_flags’, ‘-D__WCHAR_MAX__=0x7fffffff -U__MINGW32__’), (‘clang_include’, ‘lib/clang/3.6/include’)]

… Generating bindings for target spidermonkey

… … Processing section box2d

Traceback (most recent call last):
File “D:\GameSolution\CocosCreator\resources\cocos2d-x\tools\bindings-generator/generator.py”, line 1631, in
main()
File “D:\GameSolution\CocosCreator\resources\cocos2d-x\tools\bindings-generator/generator.py”, line 1626, in main
generator = Generator(gen_opts)
File “D:\GameSolution\CocosCreator\resources\cocos2d-x\tools\bindings-generator/generator.py”, line 1052, in init
self.index = cindex.Index.create()
File “D:\GameSolution\CocosCreator\resources\cocos2d-x\tools\bindings-generator\clang\cindex.py”, line 2090, in create
return Index(conf.lib.clang_createIndex(excludeDecls, 0))
File “D:\GameSolution\CocosCreator\resources\cocos2d-x\tools\bindings-generator\clang\cindex.py”, line 141, in get
value = self.wrapped(instance)
File “D:\GameSolution\CocosCreator\resources\cocos2d-x\tools\bindings-generator\clang\cindex.py”, line 3369, in lib
lib = self.get_cindex_library()
File “D:\GameSolution\CocosCreator\resources\cocos2d-x\tools\bindings-generator\clang\cindex.py”, line 3400, in get_cindex_library
raise LibclangError(msg)
LibclangError: [Error 193] %1 不是有效的 Win32. To provide a path to libclang use Config.set_library_path() or Config.set_library_file().

Generating javascript bindings fails.

阅读整个主题