-
Creator 版本: 3.8.4
-
目标平台: windows
-
重现方式:使用python命令进行自动绑定
-
首个报错: <SourceLocation file ‘F:\cocosEditors\Creator\3.8.4\resources\resources\3d\engine\native\tools\bindings-generator/…\…\cocos\myjsb\windows\WindowsApi.h’, line 4, column 10>,
details = “‘AclAPI.h’ file not found”> -
编辑器操作系统: windows
由于项目中有一些功能需要用到winAPI,自己编写了C++的功能,要绑定到TS。在运行绑定脚本的时候提示找不到windows Api。环境变量没有问题,甚至我在python脚本中设置了运行时环境变量,把库目录添加进去,还是找不到。
python 绑定脚本:
设置运行时环境变量是在154行:
os.putenv(‘PATH’, r’%s;%s\libclang;%s\tools\win32;s;' (path_env, cxx_generator_root, cxx_generator_root, r’C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0’))
绑定配置ini:
c++头:
cpp文件:
有没有大神知道这个问题该怎么解决,还是说调用api只能手动绑定?或者是有别的解决方案?









