I've tried to compile Blink and execute it in TinyViz, but I receve the following:
[EMAIL PROTECTED]:/opt/tinyos-1.x/apps/Blink$ make pc mkdir -p build/pc compiling Blink 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=\"Blink\" -DIDENT_USER_ID=\"juri\" -DIDENT_HOSTNAME=\"juri-xubuntos\" -DIDENT_USER_HASH=0x77a480bcL -DIDENT_UNIX_TIME=0x481f3d66L -DIDENT_UID_HASH=0x5e05fc3cL Blink.nc -lm /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 /opt/tinyos-1.x/tos/platform/pc/PowerStateM.nc: In function ‘__nesc_nido_initialise’: /opt/tinyos-1.x/tos/platform/pc/PowerStateM.nc:478: warning: passing argument 1 of ‘memset’ discards qualifiers from pointer target type compiled Blink to build/pc/main.exe [EMAIL PROTECTED]:/opt/tinyos-1.x/apps/Blink$ ./build/pc/main.exe -gui 5 SIM: EEPROM system initialized. SIM: event queue initialized. SIM: Random seed is 521386 SIM: Initializing sockets SIM: Created server socket listening on port 10584. SIM: Created server socket listening on port 10585. SIM: Waiting for connection from GUI... SIM: eventAcceptThread running. SIM: commandReadThread running. in another terminal... [EMAIL PROTECTED]:/opt/tinyos-1.x/tools/java$ java net.tinyos.sim.TinyViz Simulation random seed 1338091257 Initializing simulator objects... Loading simulator plugins... Exception in thread "main" java.lang.NullPointerException at net.tinyos.sim.PluginManager.register(PluginManager.java:77) at net.tinyos.sim.SimDriver.<init>(SimDriver.java:258) at net.tinyos.sim.TinyViz.main(TinyViz.java:188) Can be related with toscheck warnings? How can I resolve/debug? Thanks. -- Juri Lelli Linux User #404535 Ubuntu User #19211 Ubuntu 8.04 Hardy Enron http://www.ubuntu-it.org/index.php http://www.ubuntu.com/ _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
