Hello,
here
I installed the TinyOS-1.x from this site
http://www.5secondfuse.com/tinyos/install.html
I wanted to make simulation TinyViz and for launching TinyViz :I Played the
commands
sabrina@sabrina-eMachines-E510:~$ su root
Mot de passe :
Setting up for TinyOS 2.1.1
Setting up for TinyOS 1.x
root@sabrina-eMachines-E510:/home/sabrina# cd /opt/tinyos-1.x/apps/Blink
root@sabrina-eMachines-E510:/opt/tinyos-1.x/apps/Blink# export DBG=led
root@sabrina-eMachines-E510:/opt/tinyos-1.x/apps/Blink# build/pc/main.exe
Usage: build/pc/main.exe [-h|--help] [options] num_nodes_total
I would like to make the interface tinyviz
root@sabrina-eMachines-E510:/opt/tinyos-1.x/apps/Blink# cd
$TOSROOT/apps/TestTinyViz
root@sabrina-eMachines-E510:/opt/tinyos-1.x/apps/TestTinyViz# make pc
mkdir -p build/pc
compiling TestTinyViz to a pc binary
ncc -o build/pc/main.exe -g -O0 -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 -DIDENT_PROGRAM_NAME=\"TestTinyViz\"
-DIDENT_USER_ID=\"root\" -DIDENT_HOSTNAME=\"sabrina-eMachin\"
-DIDENT_USER_HASH=0xefa7fbb4L -DIDENT_UNIX_TIME=0x4ddbeebeL
-DIDENT_UID_HASH=0xf468490bL TestTinyViz.nc -lm
In file included from /usr/include/sys/socket.h:40,
from /opt/tinyos-1.x/tos/platform/pc/external_comm.h:36,
from /opt/tinyos-1.x/tos/platform/pc/hardware.h:63,
from /opt/tinyos-1.x/tos/system/tos.h:144:
/usr/include/bits/socket.h:427: warning: `struct mmsghdr' declared inside
parameter list
/usr/include/bits/socket.h:427: warning: its scope is only this definition or
declaration,
/usr/include/bits/socket.h:427: warning: which is probably not what you want.
/opt/tinyos-1.x/tos/platform/pc/external_comm.c: In function ‘acceptConnection’:
/opt/tinyos-1.x/tos/platform/pc/external_comm.c:158: warning: pointer targets
in passing argument 3 of ‘accept’ differ in signedness
/usr/include/sys/socket.h:214: note: expected ‘socklen_t * __restrict__’ but
argument is of type ‘int *’
/opt/tinyos-1.x/tos/platform/pc/PowerStateM.nc: In function
‘PowerStateM$num_bbs’:
/opt/tinyos-1.x/tos/platform/pc/PowerStateM.nc:314: warning:
‘POWERPROF_NUM_BBS’ is used uninitialized in this function
/opt/tinyos-1.x/tos/platform/pc/PowerStateM.nc: In function
‘PowerStateM$bb_exec_count’:
/opt/tinyos-1.x/tos/platform/pc/PowerStateM.nc:319: warning:
‘POWERPROF_BB_EXEC_COUNT’ is used uninitialized in this function
compiled TestTinyViz to build/pc/main.exe
root@sabrina-eMachines-E510:/opt/tinyos-1.x/apps/TestTinyViz# tinyviz autorun
sample.autorun
java -Dpython.cachedir=/tmp/jython.cache -DDBG=led -DSIMDBG=
net.tinyos.sim.SimDriver -gui autorun sample.autorun
Exception in thread "main" java.lang.NoClassDefFoundError:
net/tinyos/sim/SimDriver
Caused by: java.lang.ClassNotFoundException: net.tinyos.sim.SimDriver
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: net.tinyos.sim.SimDriver. Program will exit.
root@sabrina-eMachines-E510:/opt/tinyos-1.x/apps/TestTinyViz# cd
/opt/tinyos-1.x/tools/java/net/tinyos/sim
root@sabrina-eMachines-E510:/opt/tinyos-1.x/tools/java/net/tinyos/sim# make
... /opt/tinyos-1.x/tools/java/net/tinyos/sim
(cd msg; make)
make[1]: entrant dans le répertoire «
/opt/tinyos-1.x/tools/java/net/tinyos/sim/msg »
javac *.java
/opt/tinyos-2.1.1/support/sdk/java/net/tinyos/message/Message.java:84: cannot
find symbol
symbol : class SerialPacket
location: class net.tinyos.message.Message
private SerialPacket serialPacket;
^
/opt/tinyos-2.1.1/support/sdk/java/net/tinyos/message/Message.java:676: cannot
find symbol
symbol : class SerialPacket
location: class net.tinyos.message.Message
public SerialPacket getSerialPacket() {
^
/opt/tinyos-2.1.1/support/sdk/java/net/tinyos/message/Message.java:684: cannot
find symbol
symbol : class SerialPacket
location: class net.tinyos.message.Message
protected void setSerialPacket(SerialPacket mySerialPacket) {
^
3 errors
make[1]: *** [DebugMsgEvent.class] Erreur 1
make[1]: quittant le répertoire « /opt/tinyos-1.x/tools/java/net/tinyos/sim/msg
»
make: *** [msgs] Erreur 2
root@sabrina-eMachines-E510:/opt/tinyos-1.x/tools/java/net/tinyos/sim# export
DBG=usr1
root@sabrina-eMachines-E510:/opt/tinyos-1.x/tools/java/net/tinyos/sim# tinyviz
-run build/pc/main.exe 30
java -Dpython.cachedir=/tmp/jython.cache -DDBG=usr1 -DSIMDBG=
net.tinyos.sim.SimDriver -gui -run build/pc/main.exe 30
Exception in thread "main" java.lang.NoClassDefFoundError:
net/tinyos/sim/SimDriver
Caused by: java.lang.ClassNotFoundException: net.tinyos.sim.SimDriver
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: net.tinyos.sim.SimDriver. Program will exit.
can you please help me, I would like to make the interface tinyviz and I do not
know why does it generate errors while main.exe exist
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help