Dear the community of tinyOS, I am new to the world of TinyOS 1.x - TOSSIM - TinyDB. My goal is testing TinyDB on TOSSIM simulator. I tried to set up those packages by following guide at: http://deep.syminet.com/tinyos.html
To run TinyDB on TOSSIM, I followed guide on section 9 from link: http://telegraph.cs.berkeley.edu/tinydb/doc/tinydb.html#SECTION000100000000000000000 1. From *TinyDBApp* in tinyos-1.x/apps/, I tried: trinpm@ubuntu:/opt/tinyos1/tinyos-1.x/apps/TinyDBApp$ *make -f MakePC pc* It ran but came out an error: *make: *** [exe0] Error 1 The full output on my screen is: *compiling TinyDBApp to a pc binary ncc -o build/pc/main.exe -g -O0 -I../../tos/lib/Attributes -I ../../tos/lib/Util -I../../tos/lib/Commands -I../../tos/lib/TinyDB -I../../tos/lib/MintRoute -I../../tos/lib/Queue -I../../tos/lib/FS -I../../tos/lib/TinyDB/Aggregates -pthread -fnesc-nido-tosnodes=1000 -fnesc-simulate -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=pc -fnesc-cfile=build/pc/app.c -board=micasb -DTOSH_DATA_LENGTH=58 -DIDENT_PROGRAM_NAME=\"TinyDBApp\" -DIDENT_USER_ID=\"trinpm\" -DIDENT_HOSTNAME=\"ubuntu\" -DIDENT_USER_HASH=0x0a6a9ff3L -DIDENT_UNIX_TIME=0x4fdd7f4dL -DIDENT_UID_HASH=0xd72c2f9dL TinyDBApp.nc -lm two source files specified (PLATFORM_PC and BOARD_MICASB) *make: *** [exe0] Error 1* I thought I must run as root to remove this error, so I tried: trinpm@ubuntu:/opt/tinyos1/tinyos-1.x/apps/TinyDBApp$ *sudo make -f MakePC **The full output on my screen is:* ../Makerules:26:* /home/mab/src/external/tinyos-1.x/tos/../apps/Makerules:* No such file or directory make: *** No rule to make target `/home/mab/src/external/tinyos-1.x/tos/../apps/Makerules'. Stop.* *Surprisingly, my system does not contain that path, or directory like "* /home/mab/src/external/**tinyos-1.x/tos/../apps/Makerules*". Actually my tinyos-1.x folder locates at */opt/tinyos-1.x/.. *So, I totally don't understand why it prints out the errors like that. 2. To build TinyDB java source code, I tried: trinpm@ubuntu:/opt/tinyos1/tinyos-1.x/tools/java/net/tinyos/tinydb$ *sudo make -f MakePC* But, I got a plenty of *cannot resolve symbol *error like: make[1]: Entering directory `/opt/tinyos1/tinyos-1.x/tools/java/net/tinyos/message' ... /opt/tinyos1/tinyos-1.x/tools/java/net/tinyos/message javac BaseTOSMsg.java BaseTOSMsg.java:11: *cannot resolve symbol* symbol : class Message location: package message public class BaseTOSMsg extends net.tinyos.message.Message { ^ Could anyone please give me some hints to deal with these 2 issues? I guess my classpath is set correctly. I would appreciate any suggestions. Many thanks, Tri Nguyen P/S: **All my environmental variables are:* export *TOPDIR*=/opt/tinyos1 export *TOSROOT*=$TOPDIR/tinyos-1.x export *TOSDIR*=$TOSROOT/tos export TOS_XTRAS=$TOPDIR/tinyos-extras export JAVA_HOME=$TOS_XTRAS/blackdown-j2sdk1.4.2 export TOS_TOOLS=$TOS_XTRAS/tools export INCLUDE_PATH=/usr/include:$TOS_TOOLS/avr/include export *CLASSPATH* =`$TOSROOT/tools/java/javapath`:$JAVA_HOME/commapi/jar/comm.jar:$TOSROOT/beta/Drip/tools/java:$TOSROOT/beta/Drain/tools/java:$TOSROOT/contrib/nucleus/tools/java export *PATH*=$JAVA_HOME/bin:$TOS_TOOLS/bin:$PATH export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$JAVA_HOME/jre/lib/i386/client:$JAVA_HOME/lib:$JAVA_HOME/commapi/lib:$TOS_TOOLS/lib:$JAVA_HOME/jre/lib/i386:$JAVA_HOME/jre/lib export MAKERULES=$TOSROOT/tools/make/Makerules export PYTHONPATH=$PYTHONPATH:$TOS_XTRAS/python2.4/site-packages:$TOS_TOOLS/python/pytos/util source $TOSROOT/tools/python/util/pytosProfile ** My CLASSPATH:* .:/opt/tinyos1/tinyos-1.x/tools/java:/opt/tinyos1/tinyos-1.x/tools/java/jars/xmlrpc-1.2-b1.jar:/opt/tinyos1/tinyos-1.x/tools/java/jars/jazz.jar:/opt/tinyos1/tinyos-1.x/tools/java/jars/log4j-1.2.11.jar:/opt/tinyos1/tinyos-1.x/tools/java/jars/junit.jar:/opt/tinyos1/tinyos-1.x/tools/java/jars/oalnf.jar:/opt/tinyos1/tinyos-1.x/tools/java/jars/plotmlapplet.jar:/opt/tinyos1/tinyos-1.x/tools/java/jars/plotapplet.jar:/opt/tinyos1/tinyos-1.x/tools/java/jars/Jama-1.0.1.jar:/opt/tinyos1/tinyos-1.x/tools/java/jars/xercesImpl.jar:/opt/tinyos1/tinyos-1.x/tools/java/jars/gwe.jar:/opt/tinyos1/tinyos-1.x/tools/java/jars/pxgraphapplet.jar:/opt/tinyos1/tinyos-1.x/tools/java/jars/JLex.jar:/opt/tinyos1/tinyos-1.x/tools/java/jars/jdom.jar:/opt/tinyos1/tinyos-1.x/tools/java/jars/org.mortbay.jetty.jar:/opt/tinyos1/tinyos-1.x/tools/java/jars/pgjdbc2.jar:/opt/tinyos1/tinyos-1.x/tools/java/jars/cup.jar:/opt/tinyos1/tinyos-1.x/tools/java/jars/xmlParserAPIs.jar:/opt/tinyos1/tinyos-1.x/tools/java/jars/plotapplication.jar:/opt/tinyos1/tinyos-1.x/tools/java/jars/plot.jar:/opt/tinyos1/tinyos-1.x/tools/java/jars/javax.servlet.jar::/home/trinpm/tinyos1/tinyos-extras/blackdown-j2sdk1.4.2/commapi/jar/comm.jar:/home/trinpm/tinyos1/tinyos-1.x/beta/Drip/tools/java:/home/trinpm/tinyos1/tinyos-1.x/beta/Drain/tools/java:/home/trinpm/tinyos1/tinyos-1.x/contrib/nucleus/tools/java:/opt/tinyos1/tinyos-extras/blackdown-j2sdk1.4.2/commapi/jar/comm.jar:/opt/tinyos1/tinyos-1.x/beta/Drip/tools/java:/opt/tinyos1/tinyos-1.x/beta/Drain/tools/java:/opt/tinyos1/tinyos-1.x/contrib/nucleus/tools/java
_______________________________________________ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help