Recently, if you want to use clion to replace keil for STM32 development, you need to install the following software and add the last two to the system path:
STM32CubeMX
Clion
MinGW
arm-none-eabi-gcc
After configuring toolchain and cmake, it is found that the simplest project cannot cmake and displays
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.
After debugging for a long time, the final solution: do not use mingw64, download the installation tool of mingw32 on the official website: mingw-get-setup.exe, and configure it again. It may be that 64 bit MinGW is incompatible.
Read More:
- Clion appears cmake error: could not find cmake_ Root! What is the problem and how to solve it?
- Clion configuration MingGW report error test cmake run with errors solution
- Clion develops STM32, adds files and compiles with an error “no such file or directory”“
- Clion MinGW super fast configuration OpenGL development environment
- Summary of problems encountered in compiling and installing vtk7 + vs2013 / 2015 + cmake
- Some problems encountered in the development of ReportViewer
- CMake Error at CMakeLists.txt:5 (PROJECT): The CMAKE_C_COMPILER: cl is not a full path
- Problems encountered in configuring OpenGL development environment in vs2015
- Stm32f103c8t6 in keil compiler error: # 67: expected a “}” solution
- Solution: when cmake is compiled, “error in configuration process project files may be invalid” appears
- Analysis and solution of common errors in ArcEngine development
- Stm32f107 kernel file — stm32f10x. H
- CMake Error: Could not find CMAKE_ROOT !!!
- Stm32cube ide installation – NSIS error problem
- The solution for error: jump to label [-fpermissive] encountered in C
- A series of problems in configuring OpenGL development environment in vs2015
- Visual slam Lesson 6: curve fitting with g2o, error: cmake error at CMakeList.txt (find_ package) By not providing“FindG2O.cmake“
- When configuring ROS distributed / Error report solution and command requirements encountered in the process of master-slave computer
- Two methods of cmake in VTK program
- Configuring OpenGL development environment in win10 + vs2015 (including the method of installing 32-bit and 64 bit libraries)