To set things up, just invoke $ . environment ----------------------------------------------- * Make sure the JDK's bin directory is in your PATH. * Run make. * Set RCXTTY to the IR serial port (e.g. /dev/ttyS0). * Add the bin directory of leJOS to your PATH setting. ------ http://lego.nachmore.com/index.php?page=tools ---------- Lejos notes: ============ The following are two fixes for common lejos source build errors under linux: 1. Make reports: javac: target release 1.1 conflicts with default source release 1.5 This usually happens if you have JDK 1.5 installed. To fix this you need to open the Makefile and change the JAVAC variable so that it now reads: JAVAC=javac -target 1.1 :add:-source 1.2 The affected Makefiles are: ./Makefile ./rcxcomm/rcxclasses/Makefile 2. Make reports: ../vmsrc/threads.c:326: error: label at end of compound statement Again, this is probably because you have a newer version of gcc than the developers did/do. To fix this edit the threads.c file and change line 323 (not 326) to: done_pi::add:; Note the addition of the semi-colon (;). This stems from C's not liking an empty lable (done_pi in this case)... adding the semi-colon "forces" it to accept this and chug along happily... ---------------------------------------------- HOWEVER, note that the :add: in the stuff above is some sort of annotation; don't put that into the files in either place. ... and make worked. HOWEVER, lejosc gave the same sort of error messages ... so I went back to using jdk1.4, and fixed the ; error in threads.c # in unix/ $ rm -rf lejos_2_1_0 $ tar zxf lejos_2_1_0.tar.gz # edit lejos_2_1_0/vmsrc/threads.c: change "done_pi:" to "done_pi:;" line 323 # set java to jdk1.4 and other environment variables $ . environment $ cd lejos_2_1_0/ $ make # success $ cd ../.. $ ls ButtonBeep.java ... $ lejosc ButtonBeep.java $