linux:legomindstorms
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux:legomindstorms [2013/12/31 20:47] – rlunaro | linux:legomindstorms [2022/12/02 22:02] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 181: | Line 181: | ||
===== Second Attempt: LEJOS ===== | ===== Second Attempt: LEJOS ===== | ||
+ | |||
+ | ==== Install ant ==== | ||
+ | |||
+ | You should have '' | ||
+ | |||
+ | <code shell> | ||
+ | $ sudo apt-get install ant | ||
+ | </ | ||
+ | |||
+ | And should have '' | ||
+ | |||
+ | <code shell> | ||
+ | sudo apt-get install libusb-dev | ||
+ | </ | ||
+ | |||
+ | After doing that, make sure that the usb.h file is available in your destination system. | ||
+ | |||
+ | |||
+ | ==== Hands on ==== | ||
[[http:// | [[http:// | ||
The web page has a [[http:// | The web page has a [[http:// | ||
+ | |||
+ | When I've checked out the web page, the download link didn't work. But you can go directly to the [[http:// | ||
+ | |||
+ | When you download and uncompress the file '' | ||
+ | |||
+ | Then start by setting the environment variable NXJ_HOME: | ||
+ | |||
+ | <code shell> | ||
+ | $ cd LEJOS_NXJ_DIRECTORY | ||
+ | $ NXJ_HOME=$(pwd) | ||
+ | $ export NXJ_HOME | ||
+ | </ | ||
+ | |||
+ | Then go to the '' | ||
+ | |||
+ | In my case, this command failed. The problem was in the '' | ||
+ | |||
+ | <code shell> | ||
+ | gcc -Wall -std=gnu99 -fPIC main_jlibnxt.c | ||
+ | </ | ||
+ | |||
+ | |||
+ | And it fails with this error: | ||
+ | |||
+ | < | ||
+ | main_jlibnxt.c: | ||
+ | </ | ||
+ | |||
+ | **Solution: | ||
+ | |||
+ | - Locate the usb.h file in your filesystem: '' | ||
+ | |||
+ | I've fixed the solution executing the '' | ||
+ | |||
+ | <code shell> | ||
+ | $ cd NXJ_HOME/ | ||
+ | $ ant | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
linux/legomindstorms.1388519272.txt.gz · Last modified: 2022/12/02 22:02 (external edit)