To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.nxtOpen lugnet.robotics.nxt in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / NXT / 978
977  |  979
Subject: 
Installing LeJOS on Linux (Fedora Core 6)
Newsgroups: 
lugnet.robotics.nxt
Date: 
Thu, 8 Nov 2007 05:22:52 GMT
Viewed: 
29639 times
  
My sysadmin is trying to install LeJOS for me on our Linux servers.  He's having
a problem detailed in what I'm posting below.  Does anyone have any ideas on
what's going wrong?

Thanks,
Peter


Copied message:
***********************
I am trying to build on a fedora 6 server for use by our program class.
I have installed the required packages as described in the README.html.
When I compile with Ant the results are as follows:
*********************
[root@server19 build]# ant
Buildfile: build.xml

clean:
[echo] saving existing files to .bak files

libnxt:

clean:

libnxt:
[cc] 5 total files to be compiled.
[cc] Starting link
[cc] /usr/bin/ar: creating libnxt.a
[cc] a - samba.o
[cc] a - flash.o
[cc] a - error.o
[cc] a - lowlevel.o
[cc] a - firmware.o

nxjflash:
[cc] 1 total files to be compiled.
[cc] Starting link

jlibnxt:
[cc] 1 total files to be compiled.
[cc] In file included from /opt/lejos_nxj/src/libnxt/main_jlibnxt.c:29:
[cc] /opt/lejos_nxj/src/libnxt/jlibnxt.h:2:17: error: jni.h: No such
file or directory
[cc] In file included from /opt/lejos_nxj/src/libnxt/main_jlibnxt.c:29:
[cc] /opt/lejos_nxj/src/libnxt/jlibnxt.h:15: error: expected
\u2018=\u2019, \u2018,\u2019, \u2018;\u2019, \u2018asm\u2019 or
\u2018__attribute__\u2019 before \u2018jint\u2019
[cc] /opt/lejos_nxj/src/libnxt/jlibnxt.h:23: error: expected
\u2018=\u2019, \u2018,\u2019, \u2018;\u2019, \u2018asm\u2019 or
\u2018__attribute__\u2019 before \u2018jint\u2019
[cc] /opt/lejos_nxj/src/libnxt/jlibnxt.h:31: error: expected
\u2018=\u2019, \u2018,\u2019, \u2018;\u2019, \u2018asm\u2019 or
\u2018__attribute__\u2019 before \u2018void\u2019
[cc] /opt/lejos_nxj/src/libnxt/jlibnxt.h:39: error: expected
\u2018=\u2019, \u2018,\u2019, \u2018;\u2019, \u2018asm\u2019 or
\u2018__attribute__\u2019 before \u2018void\u2019
[cc] /opt/lejos_nxj/src/libnxt/jlibnxt.h:47: error: expected
\u2018=\u2019, \u2018,\u2019, \u2018;\u2019, \u2018asm\u2019 or
\u2018__attribute__\u2019 before \u2018jbyteArray\u2019
[cc] /opt/lejos_nxj/src/libnxt/main_jlibnxt.c:31: error: expected
\u2018)\u2019 before \u2018*\u2019 token
[cc] /opt/lejos_nxj/src/libnxt/main_jlibnxt.c:45: error: expected
\u2018=\u2019, \u2018,\u2019, \u2018;\u2019, \u2018asm\u2019 or
\u2018__attribute__\u2019 before \u2018jint\u2019
[cc] /opt/lejos_nxj/src/libnxt/main_jlibnxt.c:60: error: expected
\u2018=\u2019, \u2018,\u2019, \u2018;\u2019, \u2018asm\u2019 or
\u2018__attribute__\u2019 before \u2018jint\u2019
[cc] /opt/lejos_nxj/src/libnxt/main_jlibnxt.c:64: error: expected
\u2018=\u2019, \u2018,\u2019, \u2018;\u2019, \u2018asm\u2019 or
\u2018__attribute__\u2019 before \u2018void\u2019
[cc] /opt/lejos_nxj/src/libnxt/main_jlibnxt.c:75: error: expected
\u2018=\u2019, \u2018,\u2019, \u2018;\u2019, \u2018asm\u2019 or
\u2018__attribute__\u2019 before \u2018void\u2019
[cc] /opt/lejos_nxj/src/libnxt/main_jlibnxt.c:90: error: expected
\u2018=\u2019, \u2018,\u2019, \u2018;\u2019, \u2018asm\u2019 or
\u2018__attribute__\u2019 before \u2018jbyteArray\u2019

BUILD FAILED
/opt/lejos_nxj/build/build.xml:65: The following error occurred while
executing this line:
/opt/lejos_nxj/src/libnxt/build.xml:126: gcc failed with return code 1

Total time: 1 second
[root@server19 build]#

***************************

My path statement is as follows:
declare -x
PATH="/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bi
n:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/opt/lejos_nxj/bin"


Any help in getting this build to go would be greatly appreciated.



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