windows环境 做jsb绑定,用引擎中的例子和自己写的都提示 raise Exception("Section not found in config file") ,这个怎么解决!

D:\CocosCreator\resources\cocos2d-x\tools\bindings-generator\test>test.bat
PYTHON_ROOT is defined.
NDK_ROOT is defined.
ECHO 处于关闭状态。
generating userconf.ini…


“Generating bindings for simpletest with Android headers…”
Using userconfig
[(‘androidndkdir’, ‘K:\cocoscreator\android-ndk-r13’), (‘clangllvmdir’, ‘"K:\cocoscreator\android-ndk-r13/toolchains/llvm-3.4/prebuilt/"windows’), (‘cxxgeneratordir’, ‘D:/CocosCreator/resources/
cocos2d-x/tools/bindings-generator/test/…’), (‘extra_flags’, ‘-D__WCHAR_MAX__=0x7fffffff’)]
Traceback (most recent call last):
File “D:/CocosCreator/resources/cocos2d-x/tools/bindings-generator/test/…/generator.py”, line 1550, in
main()
File “D:/CocosCreator/resources/cocos2d-x/tools/bindings-generator/test/…/generator.py”, line 1483, in main
raise Exception(“Section not found in config file”)
Exception: Section not found in config file

Generating bindings fails.

是哪个 section,麻烦发 ini 配置文件出来看看

test.rar (4.9 KB)

谢谢,就是引擎目录下的resources\cocos2d-x\tools\bindings-generator\test

jbsTest.rar (1.3 KB)

这个是一个简单的,也报上面的错误。pandas大大麻烦帮忙看看. 项目组在准备creator环境上用sqllite,在jsb绑定上卡中了。

我暂时没有 windows 环境,可能 test 是有些问题,你可以试试 tools/tojs/genbindings.py

这个可以用,sqlite绑定成功了,但是在模拟器中不能用,需要重新编译引擎和模拟器吗? 谢谢。

是,需要重新编译引擎,重新生成模拟器