Hello! I am very new to the ubuntu experience. Just recently, I have installed 
TinyOS-2.1.1 and followed the steps on how to setup my TinyOS environment.

Unfortunately, I have stumbled on an error when I try to compile any code 
listed on the specific folders in the /apps folder.

Here is an example:

*******************************************************************************************************

christ...@christian-desktop:/opt/tinyos-2.1.1/apps/RadioCountToLeds$ make micaz 
sim
mkdir -p simbuild/micaz
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'onfig' is not defined
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'onfig' is not defined
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'onfig' is not defined
  placing object files in simbuild/micaz
  writing XML schema to app.xml
  compiling RadioCountToLedsAppC to object file sim.o
ncc -c -shared -fPIC -o simbuild/micaz/sim.o -g -O0 -tossim 
-fnesc-nido-tosnodes=1000 -fnesc-simulate -fnesc-nido-motenumber=sim_node\(\) 
-fnesc-gcc=gcc -Wall -Wshadow -Wnesc-all -target=micaz 
-fnesc-cfile=simbuild/micaz/app.c -board=micasb -DDEFINED_TOS_AM_GROUP=0x22 
--param max-inline-insns-single=100000 -DIDENT_APPNAME=\"RadioCountToLed\" 
-DIDENT_USERNAME=\"christian\" -DIDENT_HOSTNAME=\"christian-deskt\" 
-DIDENT_USERHASH=0x7c052e85L -DIDENT_TIMESTAMP=0x4c234424L 
-DIDENT_UIDHASH=0x73ee7d69L -Wno-nesc-data-race RadioCountToLedsAppC.nc   
-fnesc-dump=components -fnesc-dump=variables -fnesc-dump=constants 
-fnesc-dump=typedefs -fnesc-dump=interfacedefs -fnesc-dump=tags 
-fnesc-dumpfile=app.xml
  compiling Python support and C libraries into pytossim.o, tossim.o, and 
c-support.o
g++ -c  -shared -fPIC -o simbuild/micaz/pytossim.o -g -O0 
-DIDENT_APPNAME=\"RadioCountToLed\" -DIDENT_USERNAME=\"christian\" 
-DIDENT_HOSTNAME=\"christian-deskt\" -DIDENT_USERHASH=0x7c052e85L 
-DIDENT_TIMESTAMP=0x4c234424L -DIDENT_UIDHASH=0x73ee7d69L 
/opt/tinyos-2.1.1/tos/lib/tossim/tossim_wrap.cxx -I/include/python2.5  
-I/opt/tinyos-2.1.1/tos/lib/tossim -DHAVE_CONFIG_H 
/opt/tinyos-2.1.1/tos/lib/tossim/tossim_wrap.cxx:139:20: error: Python.h: No 
such file or directory
/opt/tinyos-2.1.1/tos/lib/tossim/tossim_wrap.cxx:2501:4: error: #error "This 
python version requires swig to be run with the '-classic' option"
/opt/tinyos-2.1.1/tos/lib/tossim/tossim_wrap.cxx:744: error: expected 
initializer before ‘*’ token
/opt/tinyos-2.1.1/tos/lib/tossim/tossim_wrap.cxx:799: error: expected 
initializer before ‘*’ token
/opt/tinyos-2.1.1/tos/lib/tossim/tossim_wrap.cxx:820: error: expected 
initializer before ‘*’ token
In file included from /usr/include/c++/4.4/stdexcept:38,
                 from /opt/tinyos-2.1.1/tos/lib/tossim/tossim_wrap.cxx:2520:
/usr/include/c++/4.4/exception:35: error: expected declaration before end of 
line
make: *** [sim-exe] Error 1

****************************************************************************************************

Also, I have installed Python version 2.5 because I thought that it was because 
of that that there was an error in compilation.

Aside from that, here is the response when I type in tos-check-env:

*****************************************************************************************************

Path:
    /usr/local/sbin
    /usr/local/bin
    /usr/sbin
    /usr/bin
    /sbin
    /bin
    /usr/games

Classpath:
    /opt/tinyos-2.1.1/support/sdk/java/tinyos.jar
    .



rpms:
    /usr/bin/rpm


nesc:
    /usr/bin/nescc
    Version: nescc: 1.3.1


perl:
    /usr/bin/perl
    Version: v5.10.1 (*) built for i486-linux-gnu-thread-multi

flex:

bison:

java:
    /usr/bin/java

--> WARNING: The JAVA version found first by tos-check-env may not be version 
1.4 or version 1.5one of which is required by TOS. Please ensure that the 
located Java version is 1.4 or 1.5

graphviz:
    /usr/bin/dot
    dot - graphviz version 2.26.3 (20100126.1600)

--> WARNING: The graphviz (dot) version found by tos-check-env is not 1.10. 
Please update your graphviz version if you'd like to use the nescdoc 
documentation generator.


tos-check-env completed with errors:

--> WARNING: The JAVA version found first by tos-check-env may not be version 
1.4 or version 1.5one of which is required by TOS. Please ensure that the 
located Java version is 1.4 or 1.5
--> WARNING: The graphviz (dot) version found by tos-check-env is not 1.10. 
Please update your graphviz version if you'd like to use the nescdoc 
documentation generator.

*******************************************************************************************************

Please help. I feel that I am getting closer to finding out the cause of this 
error.

Thank You in advance!



      
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to