Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Tip
titleOops!

Before you can go on, you need to install mingw, which gives you all of the build tools to build the firmware:

  • Download from http://www.mingw.org/

    Info

    If you're as lazy as we are, you can just follow the "Looking for the latest version? Download mingw-get-setup.exe" link at the top of http://sourceforge.net/projects/mingw/files/.

  • Use the following installation options:
    • Install at C:\MingGW\
    • Mark the following packages for installation:
      • ming32-base
      • msys-base
    • Select "Installation > Apply Changes" to download and install those packages. This will download and install the packages.
  • Add C:\MinGW\bin to your PATH environment variable
  • Verify you can call the gcc command:

    Code Block
    languagebash
    C:\Users\Thomas>gcc --version
    gcc (GCC) 4.8.1
    Copyright (C) 2013 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

 

C:\Users\Thomas>pip --version pip 1.4.1 from c:\python27\lib\site-packages\pip-1.4.1-py2.7.egg (python 2.7)
  • Install the OpenWSN Python dependencies (from the openwsn-sw\ directory on your Desktop):

Tip
titleOops!

Before you can go on, you need to install Python:

  • Download Python 2.7.x from https://www.python.org/ (NOT Python 3!)
  • Add the following directories to your PATH environment variable:
    • C:\Python27
    • C:\Python27\Scripts
  • Verify you can call python:

    Code Block
    languagebash
    C:\Users\Thomas>python --version
    Python 2.7.10
  • Install pywin32, an extension for WIndows. You will need it to interact with the TAP virtual interface
  • Install the Python setuptools from https://pypi.python.org/pypi/setuptools#installation-instructions. Typically, this means downloading a file called ez_setup.py and double-clicking on it.
  • Verify that you can call the easy_install command:

    Code Block
    languagebash
    C:\Users\Thomas>easy_install --version
    setuptools 1.1.6
  • Install the pip utility:

    Code Block
    languagebash
    C:\Users\Thomas>easy_install pip
  • Verify that you can call the pip command:

Code Block
languagebash
Code Block
languagebash
C:\Users\Thomas\Desktop\openwsn-sw> pip install -r requirements.txt
  • Install SCons, the build environment:

    Code Block
    languagebash
    C:\Users\Thomas\Desktop\openwsn-sw> pip install --egg scons
  • ...