-
Notifications
You must be signed in to change notification settings - Fork 496
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
CMake error:找不到Ninja #579
Comments
可以手动安装Ninja或者使用Qt Maintenance Tool选择安装Ninja组件 |
非常感谢,是这个问题没错,我在环境变量Path里加上nanja解决这个报错。 |
我系统变量里的g++ 是8.1,而qt安装的g++是13.1(没有加到系统变量中),是否是因为这个原因导致Undefine呢?我想直接将系统变量里的g++路径换成qt的,但是我不清楚这两个mingw是否有什么特殊区别,不知道可不可以这么做。 $ cmake -DCMAKE_PREFIX_PATH="D:\CS\QT\6.8.1\mingw_64" -DCMAKE_BUILD_TYPE=Release -GNinja "D:\CS\QT\projects\FluentUI" |
修改gcc路径后似乎还是一样的问题,实在不知道怎么办了T T Call Stack (most recent call first): -- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR) |
尝试执行ninja后,也确实存在问题 |
可能是因为你使用的QT6.8.1导致的,项目中使用的是QT6.2.4,你可以重新安装QT6.2.4版本试下 |
没有向前兼容吗o.O,我试试看吧 |
已经按文档命令尝试构建,但是cmake提示找不到Ninja,且CMAKE_MAKE_PROGRAM 没有设置
cmake完整指令及报错:
$ cmake -DCMAKE_PREFIX_PATH="D:\CS\QT\6.8.1\mingw_64" -DCMAKE_BUILD_TYPE=Release -GNinja "D:\CS\QT\projects\FluentUI" CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to sel ect a different build tool. CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage -- Configuring incomplete, errors occurred!
The text was updated successfully, but these errors were encountered: