Skip to content

windows平台构建报错: 执行cmake -G "NMake Makefiles" .. -DCMAKE_BUILD_TYPE=Release时 #67

@SigmaPJ

Description

@SigmaPJ

在windwos平台上运行" cmake -G "NMake Makefiles" .. -DCMAKE_BUILD_TYPE=Release"
出现如下问题:
image

https://cmake.org/download/#latest网站上安装了CMAKE, 无法执行; 报错如下:

PS C:\Users\ASUS\qmc-decoder\build> cmake -G "NMake Makefiles" .. -DCMAKE_BUILD_TYPE=Release
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

CMake Error at CMakeLists.txt:2 (project):
Running

'nmake' '-?'

failed with:

no such file or directory

CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!

尝试过在Visual Studio Installer中安装C/C++工作负载, 但依旧无法解决问题; 报错没有改变; 请求作者帮助

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions