You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To resolve the CMake Error: Could not create named generator MinGW Makefiles, follow these steps:
1. Verify MinGW Installation
Ensure MinGW (preferably MinGW-w64) is installed correctly. Check if mingw32-make.exe, gcc.exe, and g++.exe exist in the MinGW\bin directory (e.g., C:\Qt\Qt5.12.11\Tools\mingw730_64\bin).
2. Set Environment Variables
Add the MinGW bin directory to your system PATH:
Right-click This PC → Properties → Advanced system settings → Environment Variables → Edit PATH → Add the MinGW bin path (e.g., C:\MinGW\bin).
3. Explicitly Specify Generator and Compiler Paths
Run CMake with the MinGW Makefiles generator and define compiler paths explicitly:
error log | 日志或报错信息 | ログ
CMake Error: Could not create named generator MinGW Makefiles
how to reproduce | 复现步骤 | 再現方法
cmake -DNCNN_VULKAN=ON -G "MinGW Makefiles" ..
The text was updated successfully, but these errors were encountered: