To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcxOpen lugnet.robotics.rcx in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / 2811
2810  |  2812
Subject: 
Some info if you want to use Lejos with Cygwin
Newsgroups: 
lugnet.robotics.rcx
Date: 
Mon, 5 Jun 2006 07:52:45 GMT
Viewed: 
9853 times
  
Hello,

Some info if you want to use Lejos with Cygwin:


Download Lejos for Linux/OSX/Solaris.
(I used v2.1.0)
http://lejos.sourceforge.net/download.html
for the sake of comprehension, decompress it in ~/temp/lejos

$ tar -xvzf lejos_2_1_0.tar.gz
$ mv lejos_2_1_0 lejos

$ PATH=/home/david/temp/lejos/bin/:$PATH

$ export RCXTTY=USB

$ lejosfirmdl
Use --help for options.
segment.length[0] = 13686 (14k)
segment.length[1] = 2938 (3k)
Total image size=16624 (17k)
Transferring "/home/david/temp/lejos/bin//../bin/lejos.srec" to RCX...
100%

$ cd examples/view

$ CLASSPATH=.

$ lejosc -source 1.3 -target 1.1 *.java

$ lejos HelloWorld
100%

Done!!

If you want that your robot can communicate with your PC,
you need to include this library:
$ CLASSPATH="$CLASSPATH;c:/cygwin/home/david/temp/lejos/lib/pcrcxcomm.jar"

and also the path if you have not done before
so that it can find irtower.dll
$ PATH=/home/david/temp/lejos/bin/:$PATH


--
if you want to recompile lejos,
modify the Makefile to change

JAVAC=javac -target 1.1
by
JAVAC=javac -source 1.3 -target 1.1

or
LEJOSC = $(LEJOSHOME)/bin/lejosc
LEJOSC = $(LEJOSHOME)/bin/lejosc -source 1.3 -target 1.1



Regards,
DAvid Portabella



1 Message in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR