Build error

This is where you talk about the NXJ software itself, installation issues, and programming talk.

Moderators: 99jonathan, roger, imaqine

Build error

Postby mdsmitty » Sat Jan 19, 2008 1:05 am

jlibnxt:
[cc] 1 total files to be compiled.
[cc] In file included from /home/mike/lejos_nxj/src/libnxt/main_jlibnxt.c:29:
[cc] /home/mike/lejos_nxj/src/libnxt/jlibnxt.h:2:17: error: jni.h: No such file or directory
[cc] In file included from /home/mike/lejos_nxj/src/libnxt/main_jlibnxt.c:29:
[cc] /home/mike/lejos_nxj/src/libnxt/jlibnxt.h:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘jlong’
[cc] /home/mike/lejos_nxj/src/libnxt/jlibnxt.h:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘jint’

it continues with erroes after that.
Path, NXJ_HOME, is all set. JDK bin is im my path. libusb-dev, gcj and libbluetooth-dev are installed. I had no problems with 4. any ideas?
mdsmitty
Novice
 
Posts: 78
Joined: Tue Feb 27, 2007 3:07 am

Postby cvjb » Sat Jan 19, 2008 6:47 pm

I can confirm this.

Quick and dirty fix, that woked for me: I have hardcoded the JNI include paths into the build.xml files.

- src/libnxt/build.xml, target jlibnxt
- src/jbluez/build.xml, target jbluez

In both files I have added the following include path elements (beware: these are specific to the Java SDK installation!):

- /usr/lib/jvm/java-1.5.0-sun-1.5.0.13/include
- /usr/lib/jvm/java-1.5.0-sun-1.5.0.13/include/linux


Hope that helps, although it does not solve the real problem.


Greetings,

Chris
cvjb
New User
 
Posts: 1
Joined: Sat Jan 19, 2008 6:32 pm
Location: Germany

Postby mdsmitty » Sat Jan 19, 2008 7:44 pm

Chris,
That worked thanks.
Mike
mdsmitty
Novice
 
Posts: 78
Joined: Tue Feb 27, 2007 3:07 am

Postby schroder » Fri Mar 07, 2008 7:37 pm

Quick and dirty fix, that woked for me: I have hardcoded the JNI include paths into the build.xml files.

- src/libnxt/build.xml, target jlibnxt
- src/jbluez/build.xml, target jbluez


can you explain how this is done? I don't know much about ant files

tnks!
schroder
New User
 
Posts: 2
Joined: Fri Nov 30, 2007 7:52 pm


Return to NXJ Software

Who is online

Users browsing this forum: Google [Bot] and 1 guest

more stuff