I'd like to get CMake build up and running. I've downloaded CMake_workspace examples to my sketch folder. 1_Blink example compiles no problem in IDE using a NUCLEO_F401RE target.
Next, I've been following the instructions README_CMAKE.md at https://github.com/stm32duino/Arduino_C ... E_CMAKE.md
I've installed Prerequisites. In a terminal:
cmake --version gives 'cmake version 3.22.1'
python3 --version gives 'Python 3.10.12'
make --version gives 'GNU Make 4.3'
Python modules: graphviz, jinja2; install with pip install ...
I then go to my sketchbook folder where I put the CMake_workspace examples and open a terminal. I get a CMake error that CMake cannot find the toolchain file. I'm sure I'm missing some obvious step but have tried following the instruction in the README twice and get the same error.
Can someone help me out with what I am missing? Perhaps the README makes assumptions on where things are installed that I do not match on my machine?
Thanks,
George
Code: Select all
cmake -S ./1_Blink -B ./1_Blink/build
CMake Error at /usr/share/cmake-3.22/Modules/CMakeDetermineSystem.cmake:130 (message):
Could not find toolchain file: toolchain
Call Stack (most recent call first):
CMakeLists.txt:14 (project)
CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select 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!