- PC on Windows 10
- Basic understanding of CMake
MSYS2 is a collection of tools and libraries providing you with an easy-to-use environment for building, installing and running native Windows software.
To install it, follow the instructions provided in the link above.
After the installation procedure of MSYS2, install CMake and make with the folowing command:
pacman -S cmake make
I highly recommand to manually download a toolchain from the official website of the toolchain (example: https://developer.arm.com/downloads/-/gnu-rm for GNU arm-none- toolchain) You will need to provide the toolchain path to CMake through sepcifics variables:
CMAKE_C_COMPILER
CMAKE_CXX_COMPILER
CMAKE_ASM_COMPILER
CMAKE_OBJCOPY
CMAKE_OBJDUMP
CMAKE_SIZE
CMAKE_DEBUGER
CMAKE_CPPFILT
All theses variables can be specified in a separate file passed to CMake with the variable CMAKE_TOOLCHAIN_FILE
.
In MSYS2, you can access the Windows file stystem inside the folder /c/
Inside a MSYS2 console, you can simple call cmake
and make
as you would do on linux.