Creator 版本:3.7(3.6)其他没试,估计一样
-
目标平台: windows
-
重现方式:打包windows
-
首个报错:
-
编辑器操作系统:win10
-
重现概率: 100%
----------------------------------------------------------------------------------分界线
[Assets] [cmake-err] CMake Error at CMakeLists.txt:4 (project):
Running
‘nmake’ ‘-?’
failed with:
绯荤粺鎵句笉鍒版寚瀹氱殑鏂囦欢銆�
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
[Assets] [cmake-err] CMake Error at CMakeLists.txt:4 (project):
Running
‘nmake’ ‘-?’
failed with:
绯荤粺鎵句笉鍒版寚瀹氱殑鏂囦欢銆�
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
failed with:
绯荤粺鎵句笉鍒版寚瀹氱殑鏂囦欢銆�
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
at Object.encode (E:\cocos\Creator\3.7.0\resources\app.asar\node_modules@base\electron-worker\node_modules\v-stacks\index.js17)
at Logger._logHandler (E:\cocos\Creator\3.7.0\resources\app.asar\node_modules@base\electron-worker\static\script.ccc:1:531)
at Logger.record (E:\cocos\Creator\3.7.0\resources\app.asar\node_modules@base\electron-logger\lib\renderer.ccc:1:458)
at Object.error (E:\cocos\Creator\3.7.0\resources\app.asar\node_modules@base\electron-logger\lib\renderer.ccc:1:1414)
at Object.error (E:\cocos\Creator\3.7.0\resources\app.asar\builtin\asset-db\dist\worker\console.ccc:1:1311)
at NewConsole.error (E:\cocos\Creator\3.7.0\resources\app.asar\builtin\builder\dist\worker\console.ccc:1:1527)
at Socket. (E:\cocos\Creator\3.7.0\resources\resources\3d\engine\scripts\native-pack-tool\source\utils.ts:457:29)
at Socket.emit (events.js:315:20)
at addChunk (internal/streams/readable.js:309:12)
at readableAddChunk (internal/streams/readable.js:284:9)
--------------------------------------------------------------分界线
[Assets] Error: Run build plugin native:(onAfterBuild) failed!
at BuildTask.runPluginTask (E:\cocos\Creator\3.7.0\resources\app.asar\builtin\builder\dist\worker\builder\index.ccc:1:11024)
at BuildTask.build (E:\cocos\Creator\3.7.0\resources\app.asar\builtin\builder\dist\worker\builder\index.ccc:1:4938)
at build (E:\cocos\Creator\3.7.0\resources\app.asar\builtin\builder\dist\worker\index.ccc:1:3767)
at Ipc. (E:\cocos\Creator\3.7.0\resources\app.asar\builtin\builder\dist\worker\msg-util.ccc:1:202)
[Assets] Error: Run build plugin native:(onAfterBuild) failed!
at BuildTask.runPluginTask (E:\cocos\Creator\3.7.0\resources\app.asar\builtin\builder\dist\worker\builder\index.ccc:1:11024)
at BuildTask.build (E:\cocos\Creator\3.7.0\resources\app.asar\builtin\builder\dist\worker\builder\index.ccc:1:4938)
at build (E:\cocos\Creator\3.7.0\resources\app.asar\builtin\builder\dist\worker\index.ccc:1:3767)
at Ipc. (E:\cocos\Creator\3.7.0\resources\app.asar\builtin\builder\dist\worker\msg-util.ccc:1:202)
at Object.encode (E:\cocos\Creator\3.7.0\resources\app.asar\node_modules@base\electron-worker\node_modules\v-stacks\index.js17)
at Logger._logHandler (E:\cocos\Creator\3.7.0\resources\app.asar\node_modules@base\electron-worker\static\script.ccc:1:531)
at Logger.record (E:\cocos\Creator\3.7.0\resources\app.asar\node_modules@base\electron-logger\lib\renderer.ccc:1:458)
at Object.error (E:\cocos\Creator\3.7.0\resources\app.asar\node_modules@base\electron-logger\lib\renderer.ccc:1:1414)
at Object.error (E:\cocos\Creator\3.7.0\resources\app.asar\builtin\asset-db\dist\worker\console.ccc:1:1311)
at NewConsole.error (E:\cocos\Creator\3.7.0\resources\app.asar\builtin\builder\dist\worker\console.ccc:1:1527)
at BuildTask.runPluginTask (E:\cocos\Creator\3.7.0\resources\app.asar\builtin\builder\dist\worker\builder\index.ccc:1:11018)
at BuildTask.build (E:\cocos\Creator\3.7.0\resources\app.asar\builtin\builder\dist\worker\builder\index.ccc:1:4938)
at build (E:\cocos\Creator\3.7.0\resources\app.asar\builtin\builder\dist\worker\index.ccc:1:3767)
at Ipc. (E:\cocos\Creator\3.7.0\resources\app.asar\builtin\builder\dist\worker\msg-util.ccc:1:202)
=-----------------------------------------------------------------------分界线
[Assets] run cmake failed “cmake -S"E:/cocosProject/mytest/native/engine/win64” -B"D:/windowsCocosB/windows/proj" -DRES_DIR=“D:/windowsCocosB/windows” -DAPP_NAME=“mytest” “, code: 1, signal: null
Error: run cmake failed “cmake -S"E:/cocosProject/mytest/native/engine/win64” -B"D:/windowsCocosB/windows/proj” -DRES_DIR=“D:/windowsCocosB/windows” -DAPP_NAME=“mytest” ", code: 1, signal: null
at ChildProcess. (E:\cocos\Creator\3.7.0\resources\resources\3d\engine\scripts\native-pack-tool\source\utils.ts:462:28)
at ChildProcess.emit (events.js:315:20)
at maybeClose (internal/child_process.js:1048:16)
at Socket. (internal/child_process.js:439:11)
at Socket.emit (events.js:315:20)
at Pipe. (net.js:673:12)
web可以,windows就不行