jsb绑定,安装cheetah报错,怎么解决

  • Creator 版本:2.07

  • 目标平台:

  • 详细报错信息,包含调用堆栈:

  • 重现方式:

  • 之前哪个版本是正常的 :

  • 手机型号 :

  • 手机浏览器 :

  • 编辑器操作系统 :

  • 编辑器之前是否有其它报错 :

  • 出现概率:

  • 额外线索:

PS C:\Python27\Lib\site-packages\Cheetah-2.4.4> python setup.py install
running install
running bdist_egg
running egg_info
writing requirements to Cheetah.egg-info\requires.txt
writing Cheetah.egg-info\PKG-INFO
writing top-level names to Cheetah.egg-info\top_level.txt
writing dependency_links to Cheetah.egg-info\dependency_links.txt
writing entry points to Cheetah.egg-info\entry_points.txt
reading manifest file ‘Cheetah.egg-info\SOURCES.txt’
reading manifest template ‘MANIFEST.in’
warning: no files found matching ‘examples’
warning: no files found matching ‘docs’
warning: no files found matching ‘bin’
warning: no files found matching ‘’ under directory ‘docs’
warning: no files found matching '
’ under directory ‘examples’
warning: no previously-included files matching ‘.pyc’ found under directory ‘cheetah’
warning: no previously-included files matching '
~’ found under directory ‘cheetah’
warning: no previously-included files matching ‘.aux’ found under directory ‘cheetah’
warning: no previously-included files matching '
~’ found under directory ‘docs’
warning: no previously-included files matching ‘.aux’ found under directory ‘docs’
writing manifest file ‘Cheetah.egg-info\SOURCES.txt’
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
running build_ext
building ‘Cheetah._namemapper’ extension
One or more C extensions failed to build.
Details: Microsoft Visual C++ 9.0 is required. Get it from http://aka.ms/vcpython27
Retrying without C extensions enabled.
running install
running bdist_egg
running egg_info
writing requirements to Cheetah.egg-info\requires.txt
writing Cheetah.egg-info\PKG-INFO
writing top-level names to Cheetah.egg-info\top_level.txt
writing dependency_links to Cheetah.egg-info\dependency_links.txt
writing entry points to Cheetah.egg-info\entry_points.txt
reading manifest file ‘Cheetah.egg-info\SOURCES.txt’
reading manifest template ‘MANIFEST.in’
warning: no files found matching ‘examples’
warning: no files found matching ‘docs’
warning: no files found matching ‘bin’
warning: no files found matching '
’ under directory ‘docs’
warning: no files found matching ‘’ under directory ‘examples’
warning: no previously-included files matching '
.pyc’ found under directory ‘cheetah’
warning: no previously-included files matching ‘~’ found under directory ‘cheetah’
warning: no previously-included files matching '
.aux’ found under directory ‘cheetah’
warning: no previously-included files matching ‘~’ found under directory ‘docs’
warning: no previously-included files matching '
.aux’ found under directory ‘docs’
writing manifest file ‘Cheetah.egg-info\SOURCES.txt’
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
creating build\bdist.win-amd64\egg
creating build\bdist.win-amd64\egg\Cheetah
copying build\lib\Cheetah\CacheRegion.py -> build\bdist.win-amd64\egg\Cheetah
copying build\lib\Cheetah\CacheStore.py -> build\bdist.win-amd64\egg\Cheetah
copying build\lib\Cheetah\CheetahWrapper.py -> build\bdist.win-amd64\egg\Cheetah
copying build\lib\Cheetah\Compiler.py -> build\bdist.win-amd64\egg\Cheetah
copying build\lib\Cheetah\convertTmplPathToModuleName.py -> build\bdist.win-amd64\egg\Cheetah
copying build\lib\Cheetah\DirectiveAnalyzer.py -> build\bdist.win-amd64\egg\Cheetah
copying build\lib\Cheetah\Django.py -> build\bdist.win-amd64\egg\Cheetah
copying build\lib\Cheetah\DummyTransaction.py -> build\bdist.win-amd64\egg\Cheetah
copying build\lib\Cheetah\ErrorCatchers.py -> build\bdist.win-amd64\egg\Cheetah
copying build\lib\Cheetah\FileUtils.py -> build\bdist.win-amd64\egg\Cheetah
copying build\lib\Cheetah\Filters.py -> build\bdist.win-amd64\egg\Cheetah
copying build\lib\Cheetah\ImportHooks.py -> build\bdist.win-amd64\egg\Cheetah
copying build\lib\Cheetah\ImportManager.py -> build\bdist.win-amd64\egg\Cheetah
creating build\bdist.win-amd64\egg\Cheetah\Macros
copying build\lib\Cheetah\Macros\I18n.py -> build\bdist.win-amd64\egg\Cheetah\Macros
copying build\lib\Cheetah\Macros_init_.py -> build\bdist.win-amd64\egg\Cheetah\Macros
copying build\lib\Cheetah\NameMapper.py -> build\bdist.win-amd64\egg\Cheetah
copying build\lib\Cheetah\Parser.py -> build\bdist.win-amd64\egg\Cheetah
copying build\lib\Cheetah\Servlet.py -> build\bdist.win-amd64\egg\Cheetah
copying build\lib\Cheetah\SettingsManager.py -> build\bdist.win-amd64\egg\Cheetah
copying build\lib\Cheetah\SourceReader.py -> build\bdist.win-amd64\egg\Cheetah
copying build\lib\Cheetah\Template.py -> build\bdist.win-amd64\egg\Cheetah
copying build\lib\Cheetah\TemplateCmdLineIface.py -> build\bdist.win-amd64\egg\Cheetah
creating build\bdist.win-amd64\egg\Cheetah\Templates
copying build\lib\Cheetah\Templates\SkeletonPage.py -> build\bdist.win-amd64\egg\Cheetah\Templates
copying build\lib\Cheetah\Templates_SkeletonPage.py -> build\bdist.win-amd64\egg\Cheetah\Templates
copying build\lib\Cheetah\Templates_init_.py -> build\bdist.win-amd64\egg\Cheetah\Templates
creating build\bdist.win-amd64\egg\Cheetah\Tests
copying build\lib\Cheetah\Tests\Analyzer.py -> build\bdist.win-amd64\egg\Cheetah\Tests
copying build\lib\Cheetah\Tests\CheetahWrapper.py -> build\bdist.win-amd64\egg\Cheetah\Tests
copying build\lib\Cheetah\Tests\Cheps.py -> build\bdist.win-amd64\egg\Cheetah\Tests
copying build\lib\Cheetah\Tests\Filters.py -> build\bdist.win-amd64\egg\Cheetah\Tests
copying build\lib\Cheetah\Tests\Misc.py -> build\bdist.win-amd64\egg\Cheetah\Tests
copying build\lib\Cheetah\Tests\NameMapper.py -> build\bdist.win-amd64\egg\Cheetah\Tests
copying build\lib\Cheetah\Tests\Parser.py -> build\bdist.win-amd64\egg\Cheetah\Tests
copying build\lib\Cheetah\Tests\Performance.py -> build\bdist.win-amd64\egg\Cheetah\Tests
copying build\lib\Cheetah\Tests\Regressions.py -> build\bdist.win-amd64\egg\Cheetah\Tests
copying build\lib\Cheetah\Tests\SyntaxAndOutput.py -> build\bdist.win-amd64\egg\Cheetah\Tests
copying build\lib\Cheetah\Tests\Template.py -> build\bdist.win-amd64\egg\Cheetah\Tests
copying build\lib\Cheetah\Tests\Test.py -> build\bdist.win-amd64\egg\Cheetah\Tests
copying build\lib\Cheetah\Tests\Unicode.py -> build\bdist.win-amd64\egg\Cheetah\Tests
copying build\lib\Cheetah\Tests\xmlrunner.py -> build\bdist.win-amd64\egg\Cheetah\Tests
copying build\lib\Cheetah\Tests_init_.py -> build\bdist.win-amd64\egg\Cheetah\Tests
creating build\bdist.win-amd64\egg\Cheetah\Tools
copying build\lib\Cheetah\Tools\CGITemplate.py -> build\bdist.win-amd64\egg\Cheetah\Tools
copying build\lib\Cheetah\Tools\MondoReport.py -> build\bdist.win-amd64\egg\Cheetah\Tools
copying build\lib\Cheetah\Tools\RecursiveNull.py -> build\bdist.win-amd64\egg\Cheetah\Tools
copying build\lib\Cheetah\Tools\SiteHierarchy.py -> build\bdist.win-amd64\egg\Cheetah\Tools
copying build\lib\Cheetah\Tools_init_.py -> build\bdist.win-amd64\egg\Cheetah\Tools
copying build\lib\Cheetah\Unspecified.py -> build\bdist.win-amd64\egg\Cheetah
creating build\bdist.win-amd64\egg\Cheetah\Utils
copying build\lib\Cheetah\Utils\htmlDecode.py -> build\bdist.win-amd64\egg\Cheetah\Utils
copying build\lib\Cheetah\Utils\htmlEncode.py -> build\bdist.win-amd64\egg\Cheetah\Utils
copying build\lib\Cheetah\Utils\Indenter.py -> build\bdist.win-amd64\egg\Cheetah\Utils
copying build\lib\Cheetah\Utils\Misc.py -> build\bdist.win-amd64\egg\Cheetah\Utils
copying build\lib\Cheetah\Utils\statprof.py -> build\bdist.win-amd64\egg\Cheetah\Utils
copying build\lib\Cheetah\Utils\WebInputMixin.py -> build\bdist.win-amd64\egg\Cheetah\Utils
copying build\lib\Cheetah\Utils_init_.py -> build\bdist.win-amd64\egg\Cheetah\Utils
copying build\lib\Cheetah\Version.py -> build\bdist.win-amd64\egg\Cheetah
copying build\lib\Cheetah_init_.py -> build\bdist.win-amd64\egg\Cheetah
byte-compiling build\bdist.win-amd64\egg\Cheetah\CacheRegion.py to CacheRegion.pyc
byte-compiling build\bdist.win-amd64\egg\Cheetah\CacheStore.py to CacheStore.pyc
byte-compiling build\bdist.win-amd64\egg\Cheetah\CheetahWrapper.py to CheetahWrapper.pyc
byte-compiling build\bdist.win-amd64\egg\Cheetah\Compiler.py to Compiler.pyc
byte-compiling build\bdist.win-amd64\egg\Cheetah\convertTmplPathToModuleName.py to convertTmplPathToModuleName.pyc
byte-compiling build\bdist.win-amd64\egg\Cheetah\DirectiveAnalyzer.py to DirectiveAnalyzer.pyc
byte-compiling build\bdist.win-amd64\egg\Cheetah\Django.py to Django.pyc
byte-compiling build\bdist.win-amd64\egg\Cheetah\DummyTransaction.py to DummyTransaction.pyc
byte-compiling build\bdist.win-amd64\egg\Cheetah\ErrorCatchers.py to ErrorCatchers.pyc
byte-compiling build\bdist.win-amd64\egg\Cheetah\FileUtils.py to FileUtils.pyc
byte-compiling build\bdist.win-amd64\egg\Cheetah\Filters.py to Filters.pyc
byte-compiling build\bdist.win-amd64\egg\Cheetah\ImportHooks.py to ImportHooks.pyc
byte-compiling build\bdist.win-amd64\egg\Cheetah\ImportManager.py to ImportManager.pyc
byte-compiling build\bdist.win-amd64\egg\Cheetah\Macros\I18n.py to I18n.pyc
byte-compiling build\bdist.win-amd64\egg\Cheetah\Macros_init_.py to init.pyc
byte-compiling build\bdist.win-amd64\egg\Cheetah\NameMapper.py to NameMapper.pyc
byte-compiling build\bdist.win-amd64\egg\Cheetah\Parser.py to Parser.pyc
byte-compiling build\bdist.win-amd64\egg\Cheetah\Servlet.py to Servlet.pyc
byte-compiling build\bdist.win-amd64\egg\Cheetah\SettingsManager.py to SettingsManager.pyc
byte-compiling build\bdist.win-amd64\egg\Cheetah\SourceReader.py to SourceReader.pyc
byte-compiling build\bdist.win-amd64\egg\Cheetah\Template.py to Template.pyc
byte-compiling build\bdist.win-amd64\egg\Cheetah\TemplateCmdLineIface.py to TemplateCmdLineIface.pyc
byte-compiling build\bdist.win-amd64\egg\Cheetah\Templates\SkeletonPage.py to SkeletonPage.pyc
byte-compiling build\bdist.win-amd64\egg\Cheetah\Templates_SkeletonPage.py to SkeletonPage.pyc
byte-compiling build\bdist.win-amd64\egg\Cheetah\Templates_init
.py to init.pyc
byte-compiling build\bdist.win-amd64\egg\Cheetah\Tests\Analyzer.py to Analyzer.pyc
byte-compiling build\bdist.win-amd64\egg\Cheetah\Tests\CheetahWrapper.py to CheetahWrapper.pyc
byte-compiling build\bdist.win-amd64\egg\Cheetah\Tests\Cheps.py to Cheps.pyc
byte-compiling build\bdist.win-amd64\egg\Cheetah\Tests\Filters.py to Filters.pyc
byte-compiling build\bdist.win-amd64\egg\Cheetah\Tests\Misc.py to Misc.pyc
byte-compiling build\bdist.win-amd64\egg\Cheetah\Tests\NameMapper.py to NameMapper.pyc
byte-compiling build\bdist.win-amd64\egg\Cheetah\Tests\Parser.py to Parser.pyc
byte-compiling build\bdist.win-amd64\egg\Cheetah\Tests\Performance.py to Performance.pyc
byte-compiling build\bdist.win-amd64\egg\Cheetah\Tests\Regressions.py to Regressions.pyc
byte-compiling build\bdist.win-amd64\egg\Cheetah\Tests\SyntaxAndOutput.py to SyntaxAndOutput.pyc
byte-compiling build\bdist.win-amd64\egg\Cheetah\Tests\Template.py to Template.pyc
byte-compiling build\bdist.win-amd64\egg\Cheetah\Tests\Test.py to Test.pyc
byte-compiling build\bdist.win-amd64\egg\Cheetah\Tests\Unicode.py to Unicode.pyc
byte-compiling build\bdist.win-amd64\egg\Cheetah\Tests\xmlrunner.py to xmlrunner.pyc
byte-compiling build\bdist.win-amd64\egg\Cheetah\Tests_init_.py to init.pyc
byte-compiling build\bdist.win-amd64\egg\Cheetah\Tools\CGITemplate.py to CGITemplate.pyc
byte-compiling build\bdist.win-amd64\egg\Cheetah\Tools\MondoReport.py to MondoReport.pyc
byte-compiling build\bdist.win-amd64\egg\Cheetah\Tools\RecursiveNull.py to RecursiveNull.pyc
byte-compiling build\bdist.win-amd64\egg\Cheetah\Tools\SiteHierarchy.py to SiteHierarchy.pyc
byte-compiling build\bdist.win-amd64\egg\Cheetah\Tools_init_.py to init.pyc
byte-compiling build\bdist.win-amd64\egg\Cheetah\Unspecified.py to Unspecified.pyc
byte-compiling build\bdist.win-amd64\egg\Cheetah\Utils\htmlDecode.py to htmlDecode.pyc
byte-compiling build\bdist.win-amd64\egg\Cheetah\Utils\htmlEncode.py to htmlEncode.pyc
byte-compiling build\bdist.win-amd64\egg\Cheetah\Utils\Indenter.py to Indenter.pyc
byte-compiling build\bdist.win-amd64\egg\Cheetah\Utils\Misc.py to Misc.pyc
byte-compiling build\bdist.win-amd64\egg\Cheetah\Utils\statprof.py to statprof.pyc
byte-compiling build\bdist.win-amd64\egg\Cheetah\Utils\WebInputMixin.py to WebInputMixin.pyc
byte-compiling build\bdist.win-amd64\egg\Cheetah\Utils_init_.py to init.pyc
byte-compiling build\bdist.win-amd64\egg\Cheetah\Version.py to Version.pyc
byte-compiling build\bdist.win-amd64\egg\Cheetah_init_.py to init.pyc
installing package data to build\bdist.win-amd64\egg
running install_data
copying cheetah\Tools\MondoReportDoc.txt -> build\bdist.win-amd64\egg\Cheetah\Tools
copying cheetah\Templates\SkeletonPage.tmpl -> build\bdist.win-amd64\egg\Cheetah\Templates
creating build\bdist.win-amd64\egg\EGG-INFO
copying Cheetah.egg-info\PKG-INFO -> build\bdist.win-amd64\egg\EGG-INFO
copying Cheetah.egg-info\SOURCES.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying Cheetah.egg-info\dependency_links.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying Cheetah.egg-info\entry_points.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying Cheetah.egg-info\requires.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying Cheetah.egg-info\top_level.txt -> build\bdist.win-amd64\egg\EGG-INFO
zip_safe flag not set; analyzing archive contents…
Cheetah.ImportHooks: module references file
Cheetah.ImportManager: module references file
Cheetah.ImportManager: module references path
Cheetah.NameMapper: module MAY be using inspect.stack
Cheetah.Template: module references file
C:\Python27\lib\site-packages\setuptools\command\bdist_egg.py:395: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
symbols = dict.fromkeys(iter_symbols(code))
Cheetah.Tests.Template: module references file
creating ‘dist\Cheetah-2.4.4-py2.7.egg’ and adding ‘build\bdist.win-amd64\egg’ to it
removing ‘build\bdist.win-amd64\egg’ (and everything under it)
Processing Cheetah-2.4.4-py2.7.egg
removing ‘c:\python27\lib\site-packages\Cheetah-2.4.4-py2.7.egg’ (and everything under it)
creating c:\python27\lib\site-packages\Cheetah-2.4.4-py2.7.egg
Extracting Cheetah-2.4.4-py2.7.egg to c:\python27\lib\site-packages
Cheetah 2.4.4 is already the active version in easy-install.pth
Installing cheetah-script.py script to C:\Python27\Scripts
Installing cheetah.exe script to C:\Python27\Scripts
Installing cheetah-compile-script.py script to C:\Python27\Scripts
Installing cheetah-compile.exe script to C:\Python27\Scripts

Installed c:\python27\lib\site-packages\cheetah-2.4.4-py2.7.egg
Processing dependencies for Cheetah==2.4.4
Searching for setuptools>=36
Reading https://pypi.python.org/simple/setuptools/
Downloading https://files.pythonhosted.org/packages/1d/64/a18a487b4391a05b9c7f938b94a16d80305bf0369c6b0b9509e86165e1d3/setuptools-41.0.1.zip#sha256=a222d126f5471598053c9a77f4b5d4f26eaa1f150ad6e01dcf1a42e185d05613
Best match: setuptools 41.0.1
Processing setuptools-41.0.1.zip
Writing c:\users\admini~1\appdata\local\temp\easy_install-zgayoj\setuptools-41.0.1\setup.cfg
Running setuptools-41.0.1\setup.py -q bdist_egg --dist-dir c:\users\admini~1\appdata\local\temp\easy_install-zgayoj\setuptools-41.0.1\egg-dist-tmp-8pnhdp
C:\Python27\lib\distutils\dist.py:267: UserWarning: Unknown distribution option: ‘long_description_content_type’
warnings.warn(msg)
C:\Python27\lib\distutils\dist.py:267: UserWarning: Unknown distribution option: ‘project_urls’
warnings.warn(msg)
warning: no previously-included files found matching ‘pyproject.toml’
Removing c:\python27\lib\site-packages\setuptools-0.0.0-py2.7.egg
Moving setuptools-0.0.0-py2.7.egg to c:\python27\lib\site-packages
setuptools 0.0.0 is already the active version in easy-install.pth
Installing easy_install-script.py script to C:\Python27\Scripts
Installing easy_install.exe script to C:\Python27\Scripts
Installing easy_install-2.7-script.py script to C:\Python27\Scripts
Installing easy_install-2.7.exe script to C:\Python27\Scripts

Installed c:\python27\lib\site-packages\setuptools-0.0.0-py2.7.egg
error: The ‘setuptools>=36’ distribution was not found and is required by Markdown
PS C:\Python27\Lib\site-packages\Cheetah-2.4.4>

PS D:\CocosCreator\resources\cocos2d-x\tools\tojs> python .\genbindings.py
PYTHON_BIN not defined, use current python.
generating userconf.ini…
Generating bindings for gfx…
C:\Python27\python.exe D:\CocosCreator\resources\cocos2d-x\tools\bindings-generator/generator.py D:\CocosCreator\resources\cocos2d-x/tools/tojs/gfx.ini -s gfx -t spidermonkey -o D:\CocosCreator\resources\cocos2d-x/cocos/scripting/js-bindings/auto -n jsb_gfx_auto
Using userconfig
[(‘androidndkdir’, ‘E:\android\android-ndk-r18b’), (‘clangllvmdir’, ‘E:\android\android-ndk-r18b\toolchains\llvm\prebuilt\windows-x86_64’), (‘gcc_toolchain_dir’, ‘E:\android\android-ndk-r18b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64’), (‘cocosdir’, ‘D:\CocosCreator\resources\cocos2d-x’), (‘cxxgeneratordir’, ‘D:\CocosCreator\resources\cocos2d-x\tools\bindings-generator’), (‘extra_flags’, ‘’)]

… Generating bindings for target spidermonkey

… … Processing section gfx

Traceback (most recent call last):
File “D:\CocosCreator\resources\cocos2d-x\tools\bindings-generator/generator.py”, line 1884, in
main()
File “D:\CocosCreator\resources\cocos2d-x\tools\bindings-generator/generator.py”, line 1879, in main
generator = Generator(gen_opts)
File “D:\CocosCreator\resources\cocos2d-x\tools\bindings-generator/generator.py”, line 1293, in init
self.index = cindex.Index.create()
File “D:\CocosCreator\resources\cocos2d-x\tools\bindings-generator\clang\cindex.py”, line 2579, in create
return Index(conf.lib.clang_createIndex(excludeDecls, 0))
File “D:\CocosCreator\resources\cocos2d-x\tools\bindings-generator\clang\cindex.py”, line 195, in get
value = self.wrapped(instance)
File “D:\CocosCreator\resources\cocos2d-x\tools\bindings-generator\clang\cindex.py”, line 4007, in lib
lib = self.get_cindex_library()
File “D:\CocosCreator\resources\cocos2d-x\tools\bindings-generator\clang\cindex.py”, line 4038, in get_cindex_library
raise LibclangError(msg)
LibclangError: [Error 126] . To provide a path to libclang use Config.set_library_path() or Config.set_library_file().

Generating javascript bindings fails.

PS D:\CocosCreator\resources\cocos2d-x\tools\tojs>

这个报错是什么原因:sweat:

jsb对ndk版本要求严格,r18b太高了,genbindings.py有段注释

#Android ndk version must be ndk-r9b.

谢谢,我去试试:neutral_face: