- Install CMake via [insert your favorite packet manager here]
- (Optional, but highly recommended) Install neovim
- Run the example application
$ mkdir build && cd build $ cmake [-DEXAMPLE=1] .. -- The C compiler identification is GNU 13.2.1 [...] $ cmake --build . [ 6%] Building C object src/portable/CMakeFiles/freertos_kernel_port.dir/Posix/port.c.o [...] $ ./example/example Message received from task [...]
- Install mingw from http://sourceforge.net/projects/mingw/
- mark
mingw32-base
andmingw32-gcc-g++
for installation - in the
Installation
menu, pressApply Changes
- mark
- Add mingw to PATH
- e.g. add
C:\MinGW\bin
to PATH
- e.g. add
- Install CMake from https://cmake.org/download/
- Test the setup and paths
- run
gcc --version
- run
cmake --version
- run
- Open the project, e.g., in VSCode
- Run the example application
PS C:\Users\User\Desktop\rtc_freertos> mkdir build [...] PS C:\Users\User\Desktop\rtc_freertos> cd build [...] PS C:\Users\User\Desktop\rtc_freertos\build> cmake -G "MinGW Makefiles" [-DEXAMPLE=1] .. -- The C compiler identification is GNU 6.3.0 [...] PS C:\Users\User\Desktop\rtc_freertos\build> cmake --build . [ 7%] Building C object src/portable/CMakeFiles/freertos_kernel_port.dir/MSVC-MingW/port.c.obj [...] PS C:\Users\User\Desktop\rtc_freertos\build> .\example\example.exe Message received from task [...]