3.8.0编译js引擎源码报错,求帮助

在gitee上面下载的:cocos-engine-3.8.0,遇到编译源码报错的问题

  • Creator 版本: 3.8.0
  • nodejs版本:(v16和v18)都试过

报错信息如下,请问下有遇到相同问题的朋友吗?
It’s 2023/8/23 19:56:56, we’re still doing the hack for spine-core.d.ts
[19:56:56] ‘build-declarations’ errored after 13 s
[19:56:56] Error: ENOENT: no such file or directory, copyfile ‘D:\proj\X\client\engine\cocos-engine-3.8.0\native\external\emscripten\external-wasm.d.ts’ -> ‘D:\proj\X\client\engine\cocos-engine-3.8.0\bin.declarations__before_bundle\native\external\emscripten\external-wasm.d.ts’
npm ERR! code 1
npm ERR! path D:\proj\X\client\engine\cocos-engine-3.8.0
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c gulp build-debug-infos && npm run build-declaration && npm run bundle-adapter && npm run fetch-ral && npm run install:typedoc-plugin && npm run install:native-pack-tool

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Local\npm-cache_logs\2023-08-23T11_56_36_944Z-debug-0.log

https://github.com/cocos/cocos-engine-external/
到这里下载后,解压到native目录,重新npm install && gulp build。

1赞

m没用啊哥们

已经拷进来了,还是这个错= =

是因为下的版本问题吗,我下载的3.8.0-18

我用的是3.8.0,要去下载external


复制到这里目录。

可以了~ 谢谢,老哥有没有编译过native c++,发现引擎的bug只在安卓出现,想log看一下

有编译过。安卓的什么问题?