最近想使用clion代替keil进行stm32开发,需要安装如下软件并将最后两个添加到系统路径:
STM32CubeMX
Clion
MinGW
arm-none-eabi-gcc
兴致勃勃地新建了一个project,配置完toolchain和cmake后,发现最简单的project无法cmake,显示
CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
调试了很久,最终解决方案:不用mingw64,到官网下载mingw32的安装工具:mingw-get-setup.exe,再配置一遍即可。可能是64位的mingw不兼容。