【creator 2.0.5】 定制C++引擎失败

环境:
creator:2.0.5
cocos2d-x-lite:v2.0-release分支
python:2.7.15 32bit
ndk:r16b 32bit

按顺序执行
npm install
npm install -g gulp
gulp init

到gulp init时报错,重复执行gulp init时,WindowsError处的错误路径都不同

C:\Users\admin\Desktop\cocos2d-x-lite>gulp init
[10:25:08] Using gulpfile ~\Desktop\cocos2d-x-lite\gulpfile.js
[10:25:08] Starting 'init'...
=======================================================
==> Prepare to download external libraries!
==> version file doesn't exist
Traceback (most recent call last):
  File "download-deps.py", line 340, in <module>
    main()
  File "download-deps.py", line 335, in main
    installer.run(workpath, external_path, opts.remove_downloaded, opts.force_up
date, opts.download_only)
  File "download-deps.py", line 268, in run
    shutil.rmtree(self._extracted_folder_name)
  File "D:\python\lib\shutil.py", line 261, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "D:\python\lib\shutil.py", line 261, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "D:\python\lib\shutil.py", line 261, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "D:\python\lib\shutil.py", line 261, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "D:\python\lib\shutil.py", line 270, in rmtree
    onerror(os.rmdir, path, sys.exc_info())
  File "D:\python\lib\shutil.py", line 268, in rmtree
    os.rmdir(path)
WindowsError: [Error 145] : u'C:\\Users\\admin\\Desktop\\cocos2d-x-lite\\cocos2d
-x-lite-external-next-10\\sources\\google-breakpad\\src\\client'
[10:25:09] 'init' errored after 585 ms
[10:25:09] Error: Command failed: python download-deps.py --remove-download no
    at checkExecSyncError (child_process.js:601:13)
    at execSync (child_process.js:641:13)
    at execSync (C:\Users\admin\Desktop\cocos2d-x-lite\gulpfile.js:57:5)
    at Gulp.<anonymous> (C:\Users\admin\Desktop\cocos2d-x-lite\gulpfile.js:134:5
)
    at module.exports (C:\Users\admin\Desktop\cocos2d-x-lite\node_modules\orches
trator\lib\runTask.js:34:7)
    at Gulp.Orchestrator._runTask (C:\Users\admin\Desktop\cocos2d-x-lite\node_mo
dules\orchestrator\index.js:273:3)
    at Gulp.Orchestrator._runStep (C:\Users\admin\Desktop\cocos2d-x-lite\node_mo
dules\orchestrator\index.js:214:10)
    at Gulp.Orchestrator.start (C:\Users\admin\Desktop\cocos2d-x-lite\node_modul
es\orchestrator\index.js:134:8)
    at C:\Users\admin\AppData\Roaming\npm\node_modules\gulp\node_modules\gulp-cl
i\lib\versioned\^3.7.0\index.js:72:20
    at _combinedTickCallback (internal/process/next_tick.js:131:7)

求指导~

cocos2d-x-lite 按照readme的步骤操作,不要使用 gulp init

1、切分支至v2.0-release
2、python download-deps.py
3、报错
ps:建议更新一下引擎定制工作流程这篇文档

C:\Users\admin\Desktop\cocos2d-x-lite>python download-deps.py
=======================================================
==> Prepare to download external libraries!
==> version file doesn't exist
==> Extracting files, please wait ...
==> Extraction done!
==> Cleaning cocos2d-x/external folder ...
Traceback (most recent call last):
  File "download-deps.py", line 340, in <module>
    main()
  File "download-deps.py", line 335, in main
    installer.run(workpath, external_path, opts.remove_downloaded, opts.force_up
date, opts.download_only)
  File "download-deps.py", line 278, in run
    self.clean_external_folder(folder_for_extracting)
  File "download-deps.py", line 260, in clean_external_folder
    delete_folder_except(external_folder, ['config.json'])
  File "download-deps.py", line 66, in delete_folder_except
    shutil.rmtree(full_path)
  File "D:\python\lib\shutil.py", line 261, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "D:\python\lib\shutil.py", line 270, in rmtree
    onerror(os.rmdir, path, sys.exc_info())
  File "D:\python\lib\shutil.py", line 268, in rmtree
    os.rmdir(path)
WindowsError: [Error 145] : 'C:\\Users\\admin\\Desktop\\cocos2d-x-lite\\external
\\sources\\Box2D'

看下external目录里面有什么内容

错误

WindowsError: [Error 145] : u'C:\\Users\\admin\\Desktop\\cocos2d-x-lite\\cocos2d
-x-lite-external-next-10\\android\\arm64-v8a\\include'

external目录:

external下报错路径:

cocos2d-x-lite-external-next-10目录:

报错路径截图:

这是什么目录?大概是没有按照readme步骤操作?重新下载一份,重新操作一遍吧

用 2.0.5 的 tag,或者从 creator 源码目录拷贝出来一份,定制

2.0-release 是匹配 2.0.x 最新的

按照cocos2d-x-lite目录下的README.md文件,操作


执行这一步时会生成

cocos2d-x-lite-external-next-10

并且报错

通过此方式切换tag后

执行README.md中python download-deps.py,仍会有上述错误

还原external目录,删除非版本控制的文件,然后重新再下载,那个报错应该是目录操作失败了

操作步骤如下:
1.git clone https://github.com/cocos-creator/cocos2d-x-lite.git
2.切换tag到2.0.5

3.python download-deps.py
4.报错

WindowsError: [Error 145] : u'C:\\Users\\admin\\Desktop\\cocos2d-x-lite\\cocos2d
-x-lite-external-new-renderer-3\\android\\arm64-v8a\\include\\spidermonkey'

就是这几步操作啊,没有修改过external啊,大佬,你本地是这几步操作么,可以通过么

不清楚你目录什么情况。

不是一样的么?

include下面的呢?按理这算是成功了的。你看看根目录是不是有new-renderer-3.zip这个文件,如果include出问题了,手动解压覆盖就好了。

如果我用的是1.10.3的creator 需要修改cocos2d-x的源码 也是按照readme操作吗?