Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SigmaPJ opened this issue Nov 21, 2023 · 2 comments

Comments

@SigmaPJ
Copy link

SigmaPJ commented Nov 21, 2023

在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++工作负载, 但依旧无法解决问题; 报错没有改变; 请求作者帮助

@QuantumEdgeCode
Copy link

按win找到Developer PowerShell for VS 2022软链
目录为C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Visual Studio 2022\Visual Studio Tools
Developer PowerShell for VS 2022-2

@QuantumEdgeCode
Copy link

@SigmaPJ 不对啊这个不是早失效了嘛,年初的时候吧
你试试这个浏览器插件

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants