Difference between revisions of "Installing From Source"

From TinyOS Wiki
Jump to: navigation, search
(tinyos)
 
Line 54: Line 54:
 
</li>
 
</li>
  
<li>
 
  Set the environment variables. Add the following to `.bashrc`.
 
<pre>
 
export TOSROOT=$HOME/tinyos-main
 
export TOSDIR=$TOSROOT/tos
 
export MAKERULES=$TOSROOT/support/make/Makerules
 
export CLASSPATH=$TOSROOT/support/sdk/java/tinyos.jar:.
 
export PYTHONPATH=$TOSROOT/support/sdk/python:$PYTHONPATH
 
export PATH=$TOSROOT/support/sdk/c:$PATH
 
</pre>
 
</li>
 
 
</ol>
 
</ol>

Latest revision as of 12:16, 1 August 2014

This page explains how to install TinyOS and nesC from their source repositories. This is useful for developers who want to contribute or users who need very recent changes.

nesC

  1. Get the prerequisites.
    • automake
    • emacs
    • bison
    • flex
    • gperf
  2. Get the source from the GitHub repository.
    git clone git://github.com/tinyos/nesc.git
    
  3. Run the normal build procedure.
    cd nesc
    ./Bootstrap
    ./configure
    make
    make install
    

TinyOS

  1. Get the source from the GitHub repository.
    git clone git://github.com/tinyos/tinyos-main.git
    
  2. Install the tools.
    cd tinyos-main/tools
    ./Bootstrap
    ./configure
    make
    make install