View previous topic :: View next topic |
Author |
Message |
Baaleos
Joined: 02 Sep 2007 Posts: 830
|
Posted: Thu Nov 19, 2015 13:47 Post subject: Building nwnx2-jvm - build issues? |
|
|
I just forked the nwnx2-linux git hub,
I am able to build everything - I think, minus the nwnx-jvm
Quote: |
make[1]: Entering directory `/home/ubuntu/nwnx/nwnx2-linux/plugins/jvm'
ruby ./build/gen_const.rb ./build/consts.nss
./build/gen_const.rb:34:in `initialize': No such file or directory - java/src/org/nwnx/nwnx2/jvm/constants/All.java (Errno::ENOENT)
from ./build/gen_const.rb:34:in `open'
from ./build/gen_const.rb:34:in `dump_file'
from ./build/gen_const.rb:81
make[1]: *** [java/src/org/nwnx/nwnx2/jvm/constants/All.java] Error 1
make[1]: Leaving directory `/home/ubuntu/nwnx/nwnx2-linux/plugins/jvm'
make: *** [plugins/jvm] Error 2
|
I am running this on ubuntu 14 32bit
BuildEssential, zLib, Java, Ruby and Ant are installed.
The Java Source file it is looking for looks like it is missing.
When I look here:
http://ci.swordcoast.net/job/nwnx2-linux/ws/plugins/jvm/java/src/org/nwnx/nwnx2/jvm/constants/
I can see that the subdirectories it needs exists there.
Suggestions? |
|
Back to top |
|
|
Baaleos
Joined: 02 Sep 2007 Posts: 830
|
Posted: Thu Nov 19, 2015 13:55 Post subject: |
|
|
I made the constants directory myself, and it gets a little further.
Quote: |
make[2]: Entering directory `/home/ubuntu/nwnx/nwnx2-linux/plugins/jvm'
g++ -mtune=i386 -pipe -mno-accumulate-outgoing-args -Iinclude -DHAVE_CONFIG_H -I../.. -I/usr/lib/jvm/java-6-sun/include/ -I/usr/lib/jvm/java-6-sun/include/linux -c -o FunctionHooks.o FunctionHooks.cpp
In file included from FunctionHooks.cpp:32:0:
NWNXJVM.h:26:17: fatal error: jni.h: No such file or directory
compilation terminated.
make[2]: *** [FunctionHooks.o] Error 1
make[2]: Leaving directory `/home/ubuntu/nwnx/nwnx2-linux/plugins/jvm'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/ubuntu/nwnx/nwnx2-linux/plugins/jvm'
make: *** [plugins/jvm] Error 2
|
My guess is that it cannot find the java includes directory?
Any suggestions? |
|
Back to top |
|
|
Baaleos
Joined: 02 Sep 2007 Posts: 830
|
Posted: Thu Nov 19, 2015 14:05 Post subject: |
|
|
Solved it:
Added /usr/lib/jvm/java-1.7.0-openjdk-i386 as the JAVA_HOME variable at start of the jvm MakeFile |
|
Back to top |
|
|
|