User Tools

Site Tools


linux:legomindstorms

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:legomindstorms [2014/01/07 23:14] – [Second Attempt: LEJOS] rlunarolinux:legomindstorms [2022/12/02 22:02] (current) – external edit 127.0.0.1
Line 189: Line 189:
 $ sudo apt-get install ant $ sudo apt-get install ant
 </code> </code>
 +
 +And should have ''libusb-dev'' installed also. 
 +
 +<code shell>
 +sudo apt-get install libusb-dev
 +</code>
 +
 +After doing that, make sure that the usb.h file is available in your destination system. 
 +
  
 ==== Hands on ==== ==== Hands on ====
Line 210: Line 219:
 Then go to the ''build'' directory and run ''ant''. This is for construct the USB support for java.  Then go to the ''build'' directory and run ''ant''. This is for construct the USB support for java. 
  
-<WRAP center round important 60%> +In my case, this command failed. The problem was in the ''build.xml'' file located in NXJ_HOME/build/libnxt. I've reconstructed the compiler command:  
-In my case, this command failed. The problem was in the ''build.xml'' file located in NXJ_HOME/build/libnxt. + 
-</WRAP>+<code shell> 
 +gcc -Wall -std=gnu99 -fPIC main_jlibnxt.c 
 +</code> 
 + 
 + 
 +And it fails with this error:  
 + 
 +<code> 
 +main_jlibnxt.c:28:17: fatal error: usb.h: No such file or directory 
 +</code>  
 + 
 +**Solution:** 
 + 
 +    - Locate the usb.h file in your filesystem: ''find / -iname usb.h 2>/dev/null'': in my system this appears in ''/usr/include/usb.h'' 
 + 
 +I've fixed the solution executing the ''make'' command and then: 
 + 
 +<code shell> 
 +$ cd NXJ_HOME/build 
 +$ ant 
 +</code> 
 + 
  
  
linux/legomindstorms.1389132885.txt.gz · Last modified: 2022/12/02 22:02 (external edit)