Re: [Tinyos-help] T2 Compilation Problem
On Thursday 20 July 2006 06:24 pm, Jay Taneja wrote: Here are the errors I get when I attempt to run SerialForwarder: [EMAIL PROTECTED] /opt/tinyos-2.x/apps $ java net.tinyos.sf.SerialForwarder The toscomm JNI library was not found. Check that your tinyos-tools package is installed and try rerunning tos-install-jni. Aborting. I had this problem too on a fresh tos2 install. The make process attempts to install the toscomm library into the jre/jdk tree. At the time I had two versions of java installed on my Linux box, and it installed toscomm into the wrong (as far as I was concerned) directory. Perhaps this is what happened to you as well. All the best, Steve ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] T2 Compilation Problem
On Jul 20, 2006, at 2:03 PM, Jay Taneja wrote: Hello, This may be two separate problems, but I am having problems compiling some (but not all) applications for a Telos Rev. B on T2. I am able to successfully compile and install Blink, BlinkToRadio, and BaseStation (among others, I imagine - didn't try any more). However, when I try to compile any application with Java included ( e.g. RadioCountToLeds, RadioSenseToLeds), the Java compilation doesn't work. I am pretty sure I have my CLASSPATH and other environment variables set up correctly, but it is still unable to find the correct tinyos java package. Here is the output of a compilation of RadioCountToLeds: One of two things is wrong: 1) Your classpath is not set correctly 2) Your classpath is set correctly but you do not have compiled java classes Try going into support/sdk/java and typing make. The other problem deals with my own application (a modified version of Blink). When I try to compile this application (on the same machine), it does not work, citing problems with a GCC library. I should note that I have kept my tinyos-1.x tree on this machine in addition to installing Boomerang and now T2. As a result of this installation order, I did not have to install any of the MSP430 RPMs for T2 (they were already installed due to Boomerang). I have the environment currently set up for T2. Here is the error output: [EMAIL PROTECTED] /opt/tinyos-2.x/apps/TestApp $ make telosb mkdir -p build/telosb compiling BlinkC to a telosb binary ncc -o build/telosb/main.exe -Os -O -mdisable-hwmul -Wall -Wshadow - DDEF_TOS_AM_ GROUP=0x7d -Wnesc-all -target=telosb -fnesc-cfile=build/telosb/ app.c -board= -DC C2420_DEF_CHANNEL=26 BlinkC.nc -lm /opt/msp430/lib/gcc-lib/msp430/3.2.3/msp2/libgcc.a (_reset_vector__.o): In functi on `_reset_vector__': ../../gcc/config/msp430/libgcc.S:(.init+0x38): undefined reference to `main' make: *** [exe0] Error 1 If you don't handle the boot event and don't have any initializations, you aren't compiling in the boot sequence? Phil ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] T2 Compilation Problem
I did have a classpath issue which I resolved (the RadioCountToLeds and RadioSenseToLeds apps now compile correctly), however I am still having difficulty with the JNI. I wiped my entire tree and followed the directions from the Upgrading webpage a couple times - no dice. I even downloaded an entire tinyos-2.x tree from sourceforge - also didn't work. Involved in this process was getting the tree, running the bootstrap, configure, make, and make install inside the tools directory and running make in the support/sdk/java directory as well. I am rerunning the jni install script too (even though it gets run when I upgrade using the tinyos-tools RPM). Here are the errors I get when I attempt to run SerialForwarder: [EMAIL PROTECTED] /opt/tinyos-2.x/apps$ java net.tinyos.sf.SerialForwarderThe toscomm JNI library was not found.Check that your tinyos-tools package is installed and tryrerunning tos-install-jni.Aborting. [EMAIL PROTECTED] /opt/tinyos-2.x/apps$ tos-install-jniInstalling Java JNI code in /cygdrive/c/Program Files/Java/jdk1.5.0_06/jre/bin ...done.[EMAIL PROTECTED] /opt/tinyos-2.x/apps$ java net.tinyos.sf.SerialForwarder The toscomm JNI library was not found.Check that your tinyos-tools package is installed and tryrerunning tos-install-jni.Aborting.Apparently, someone else ran into this problem in March but received no response: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2006-March/015723.htmlThanks for any help you can provide. -jayOn 7/20/06, Philip Levis [EMAIL PROTECTED] wrote: On Jul 20, 2006, at 2:03 PM, Jay Taneja wrote: Hello, This may be two separate problems, but I am having problems compiling some (but not all) applications for a Telos Rev. B on T2. I am able to successfully compile and install Blink, BlinkToRadio, and BaseStation (among others, I imagine - didn't try any more). However, when I try to compile any application with Java included ( e.g. RadioCountToLeds, RadioSenseToLeds), the Java compilation doesn't work. I am pretty sure I have my CLASSPATH and other environment variables set up correctly, but it is still unable to find the correct tinyos java package. Here is the output of a compilation of RadioCountToLeds:One of two things is wrong:1) Your classpath is not set correctly2) Your classpath is set correctly but you do not have compiled javaclassesTry going into support/sdk/java and typing make. The other problem deals with my own application (a modified version of Blink). When I try to compile this application (on the same machine), it does not work, citing problems with a GCC library. I should note that I have kept my tinyos-1.x tree on this machine in addition to installing Boomerang and now T2. As a result of this installation order, I did not have to install any of the MSP430 RPMs for T2 (they were already installed due to Boomerang). I have the environment currently set up for T2. Here is the error output: [EMAIL PROTECTED] /opt/tinyos-2.x/apps/TestApp $ make telosb mkdir -p build/telosb compiling BlinkC to a telosb binary ncc -o build/telosb/main.exe -Os -O -mdisable-hwmul -Wall -Wshadow - DDEF_TOS_AM_ GROUP=0x7d -Wnesc-all -target=telosb -fnesc-cfile=build/telosb/ app.c -board= -DC C2420_DEF_CHANNEL=26 BlinkC.nc -lm /opt/msp430/lib/gcc-lib/msp430/3.2.3/msp2/libgcc.a (_reset_vector__.o): In functi on `_reset_vector__': ../../gcc/config/msp430/libgcc.S:(.init+0x38): undefined reference to `main' make: *** [exe0] Error 1If you don't handle the boot event and don't have anyinitializations, you aren't compiling in the boot sequence?Phil ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] T2 Compilation Problem
On Jul 20, 2006, at 5:24 PM, Jay Taneja wrote: I did have a classpath issue which I resolved (the RadioCountToLeds and RadioSenseToLeds apps now compile correctly), however I am still having difficulty with the JNI. I wiped my entire tree and followed the directions from the Upgrading webpage a couple times - no dice. I even downloaded an entire tinyos-2.x tree from sourceforge - also didn't work. Involved in this process was getting the tree, running the bootstrap, configure, make, and make install inside the tools directory and running make in the support/sdk/java directory as well. I am rerunning the jni install script too (even though it gets run when I upgrade using the tinyos- tools RPM). Here are the errors I get when I attempt to run SerialForwarder: [EMAIL PROTECTED] /opt/tinyos-2.x/apps $ java net.tinyos.sf.SerialForwarder The toscomm JNI library was not found. Check that your tinyos-tools package is installed and try rerunning tos-install-jni. Aborting. [EMAIL PROTECTED] /opt/tinyos-2.x/apps $ tos-install-jni Installing Java JNI code in /cygdrive/c/Program Files/Java/ jdk1.5.0_06/jre/bin . .. done. [EMAIL PROTECTED] /opt/tinyos-2.x/apps $ java net.tinyos.sf.SerialForwarder The toscomm JNI library was not found. Check that your tinyos-tools package is installed and try rerunning tos-install-jni. Aborting. Apparently, someone else ran into this problem in March but received no response: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2006- March/015723.html Thanks for any help you can provide. -jay tos-install-jni runs correctly (does not output an error)? Maybe you have two versions of java on your machine, tos-install-jni is installing support on one, but then you're invoking the other? What Java are you using? This sounds like a problem where tos-install-jni is not putting the files in the right place. Phil ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] T2 Compilation Problem
Here's the output of java -version:[EMAIL PROTECTED] /opt/tinyos-2.x/apps/TestNPrintF$ java -versionjava version 1.4.1_02Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_02-b06) Java HotSpot(TM) Client VM (build 1.4.1_02-b06, mixed mode)Since a labmate is running 1.5.0, I upgraded and now it works.Thanks.-jay On 7/20/06, Philip Levis [EMAIL PROTECTED] wrote: On Jul 20, 2006, at 5:24 PM, Jay Taneja wrote: I did have a classpath issue which I resolved (the RadioCountToLeds and RadioSenseToLeds apps now compile correctly), however I am still having difficulty with the JNI. I wiped my entire tree and followed the directions from the Upgrading webpage a couple times - no dice. I even downloaded an entire tinyos-2.x tree from sourceforge - also didn't work. Involved in this process was getting the tree, running the bootstrap, configure, make, and make install inside the tools directory and running make in the support/sdk/java directory as well. I am rerunning the jni install script too (even though it gets run when I upgrade using the tinyos- tools RPM). Here are the errors I get when I attempt to run SerialForwarder: [EMAIL PROTECTED] /opt/tinyos-2.x/apps $ java net.tinyos.sf.SerialForwarder The toscomm JNI library was not found. Check that your tinyos-tools package is installed and try rerunning tos-install-jni. Aborting. [EMAIL PROTECTED] /opt/tinyos-2.x/apps $ tos-install-jni Installing Java JNI code in /cygdrive/c/Program Files/Java/ jdk1.5.0_06/jre/bin . .. done. [EMAIL PROTECTED] /opt/tinyos- 2.x/apps $ java net.tinyos.sf.SerialForwarder The toscomm JNI library was not found. Check that your tinyos-tools package is installed and try rerunning tos-install-jni. Aborting. Apparently, someone else ran into this problem in March but received no response: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2006- March/015723.html Thanks for any help you can provide. -jaytos-install-jni runs correctly (does not output an error)?Maybe you have two versions of java on your machine, tos-install-jni is installing support on one, but then you're invoking the other?What Java are you using?This sounds like a problem where tos-install-jni is not putting thefiles in the right place.Phil ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help