<jdk_root>/include/win32/jni_md.h
,
Where jdk_root
is the installation root (eg.,
c:/Program Files/Java/jdk1.5.0_01
typedef __int64 jlong;with:
#ifdef __GNUC__ typedef long long jlong; #else typedef __int64 jlong; #endif
/usr/local/bin
is in your path before /usr/bin
.
/usr/local/bin
to your path is to edit
$HOME/.bashrc
and add
PATH=/usr/local/bin:${PATH}Another way is via the System control panel (For details, see Set the value of the PTII environment variable).
If you set your path using the System control panel, then
add c:\cygwin\usr\local\bin;
to your PATH.
Note that you need to use backslashes here.
WinAVR-20040404-bin-install.exe
C:\WinAVR
is preferred, directories with spaces in the pathname might not work?
PTII
environment variable
to be the location of your Viptos download.
Under Windows, use forward slashes. For example
c:/viptos
. This file should be found at
$PTII/ptolemy/domains/ptinyos/doc/installViptosUnderCygwin.htm
Under Cygwin bash, either do
export PTII=where Viptos is locatedfor example:
export PTII=c:/viptosor use the System control panel (For details, see Set the value of the PTII environment variable)/.
mkdir -p $PTII/vendors/ptinyos
Note that the value of $PTII
should not have spaces in it.
nesc-1.2.7a.tar.gz
to $PTII/vendors/ptinyos
cd $PTII/vendors/ptinyos gunzip nesc-1.2.7a.tar.gz tar xf nesc-1.2.7a.tarThis should create a directory called
nesc-1.2.7a
.
cd nesc-1.2.7a
./configure
make make install
c:/cygwin/usr/local/lib/ncc/
to
c:/usr/local/lib/ncc/
:
mkdir -p c:/usr/local/lib cd c:/usr/local/lib cp -r /usr/local/lib/ncc .The reason is that Cygwin mounts directories under c:/cygwin and the WinAVR binaries don't know how to handle that.
Under Windows with WinAVR-20040404, we also had to modify c:\usr\local\lib\ncc\nesc_nx.h
so that
#include <inttypes.h>is changed to
#include <sys/types.h>Otherwise, when we try to compile nesC applications, the compiler complains that it cannot find the file.
cd $PTII/vendors/ptinyos cvs -d:pserver:anonymous@tinyos.cvs.sourceforge.net:/cvsroot/tinyos login Hit Enter when prompted for a password cvs -z3 -d:pserver:anonymous@tinyos.cvs.sourceforge.net:/cvsroot/tinyos co -P tinyos-1.xOR We've made a zipped version of the tinyos-1.x cvs repository available for archival purposes.
tinyos-1.x-2007-01-17.zip
$PTII/vendors/ptinyos
tinyos-1.x
. For more
information about cvs and tinyos-1.x, see http://sourceforge.net/cvs/?group_id=28656
.
tos
subdirectory in the TinyOS source
tree. PTINYOS_MOMLROOT sets the MoML output directory.
Go to Start Menu -> Settings -> Control Panels -> System -> Advanced -> Environment Variables.
Set TOSROOT
to %PTII%/vendors/ptinyos/tinyos-1.x
Set TOSDIR
to %PTII%/vendors/ptinyos/tinyos-1.x/tos
Set PTINYOS_MOMLROOT
to %PTII%/vendors/ptinyos/moml
Note: If you are using Cygwin, and configure has trouble
finding TOSROOT
or TOSDIR
, try
expanding your $PTII
environment variable to
/cygdrive/c/ptII
or something similar. Also
try expanding the TOSROOT
and
TOSDIR
environment variables if you still have
problems.
cd $PTII ./configure
make
cd $TOSROOT/tools/src/ncc ./Bootstrap ./configure
make make install
cd $TOSROOT/apps/Blink make pc ./build/pc/main.exe 1The Blink application should successfully compile. When running the executable, you should see TOSSIM output. See $TOSROOT/doc/tutorial/lesson5.html or the online version of tutorial lesson 5 for more information.
cd $PTII/vendors/ptinyos cat $PTII/ptolemy/domains/ptinyos/util/nc2moml/nc2moml-tinyos-1.1.15Dec2005cvs-1.tar.gz | gunzip | tar -xvf -This will create
$PTII/vendors/ptinyos/moml
and contains the MoML libraries corresponding to the Dec 2005 TinyOS RPM release.
If you want to generate the MoML library files from scratch, see $PTII/ptolemy/domains/ptinyos/util/nc2moml/index.htm
cd $PTII/vendors/ptinyos cat $PTII/ptolemy/domains/ptinyos/util/ncapp2moml/ncapp2moml-tinyos-1.1.15Dec2005cvs-1.tar.gz | gunzip | tar -xvf -This will create
$PTII/vendors/ptinyos/momlapp
and contains the MoML applications corresponding to the Dec 2005 TinyOS RPM release.
If you want to generate the MoML application files from scratch, see $PTII/ptolemy/domains/ptinyos/util/ncapp2moml/index.htm
$PTII/bin/viptos
and run one of the demos.