Skip to content

Build RIOT on Windows OS

Murat CAKMAK edited this page Mar 13, 2015 · 14 revisions

This page documents a brief description about building RIOT on Windows OS. There is no special build trick for RIOT so default build system settings for arm cross compilers will be described for Windows Operating Systems.

1- Installing ARM GCC Toolchain

  • Download installer from here and start the installation.

  • Please select a path (Destination Folder) without spaces: e.g. "C:/armgcc"

    ARM GCC Path

  • Select "Add path to environment variable"

![Add to Environment Paths](http://i61.tinypic.com/xqfh9t.jpg)

2- Installing MinGW and MSYS

  • Download MINGW from here and start installation. Please select short paths without spaces for MinGW directory: e.g. c:\MinGW
![MinGW Path](http://i61.tinypic.com/1zbs27a.jpg)
  • Select following items to install in MinGW Setup : mingw32-base, mingw32-gcc-g++, msys-base
![MINGW Items](http://i62.tinypic.com/b8oimp.jpg)

and also install Mintty for terminal emulation under "All Packages" : msys-mintty

![MINTTY](http://i59.tinypic.com/152nsee.jpg)

and now click "Apply Changes" under "Installation" Menu.

  • Find mintty under "C:\MinGW\msys\1.0\bin" and create a Desktop shortcut. And right click on the desktop shortcut, select "Properties" and change target to "C:\MinGW\msys\1.0\bin\mintty.exe /bin/bash -l"
![MINTTY Target](http://i57.tinypic.com/3097p6d.jpg)
  • Open MINTTY by clicking desktop shortcut and install updates by following command : mingw-get update
![MINGW Updates](http://i62.tinypic.com/x56qtj.jpg)

 Install also following items in MINTTY by "**mingw-get install**" command: **msys-wget**, **msys-zlib**, **msys-unzip**

![MINGW Tools](http://i61.tinypic.com/dnewdw.jpg)
  • Add following paths to Environment Variables : "C:\MinGW\bin", "C:\MinGW\msys\1.0\bin"
![Environment Variables](http://i62.tinypic.com/34xiyie.jpg)

3- Build environment is ready now. Build your RIOT application. Build RIOT

Clone this wiki locally