creator编译windos报错,求解

CMake Error at CMakeLists.txt:4 (project):
The CMAKE_CXX_COMPILER:

cl

is not a full path and was not found in the PATH.

To use the NMake generator with Visual C++, cmake must be run from a shell
that can use the compiler cl from the command line. This environment is
unable to invoke the cl compiler. To fix this problem, run cmake from the
Visual Studio Command Prompt (vcvarsall.bat).

Tell CMake where to find the compiler by setting either the environment
variable “CXX” or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.

2022-9-4 12:00-log: [cmake] – Configuring incomplete, errors occurred!
See also “E:/biliGame/build/windows-007/proj/CMakeFiles/CMakeOutput.log”.
See also “E:/biliGame/build/windows-007/proj/CMakeFiles/CMakeError.log”.

2022-9-4 12:00-error: Error: Run build plugin native:(onAfterBuild) failed!
at BuildTask.runPluginTask (D:\CocosDashboard\resources.editors\Creator\3.5.2\resources\app.asar\builtin\builder\dist\worker\builder\index.ccc:1:7456)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async BuildTask.build (D:\CocosDashboard\resources.editors\Creator\3.5.2\resources\app.asar\builtin\builder\dist\worker\builder\index.ccc:1:3580)
at async Ipc. (D:\CocosDashboard\resources.editors\Creator\3.5.2\resources\app.asar\builtin\builder\dist\worker\index.ccc:1:3419)

项目路径中是否有空格?是否有安装visual studio?

我也一样问题, 安装了cv,并且钩了桌面应用和游戏应用

image

@38869288 cv?是指Visual studio吗?

如果是出现了这个问题之后才安装的visual studio,那么需要删除项目原先的windows构建并重新编译。也需要重启编辑器刷新环境。

嗯,写错字了,目前已解决, 版本问题,vs换了2019