logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Building nwnx2-jvm - build issues?

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux development
View previous topic :: View next topic  
Author Message
Baaleos



Joined: 02 Sep 2007
Posts: 830

PostPosted: Thu Nov 19, 2015 13:47    Post subject: Building nwnx2-jvm - build issues? Reply with quote

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
View user's profile Send private message
Baaleos



Joined: 02 Sep 2007
Posts: 830

PostPosted: Thu Nov 19, 2015 13:55    Post subject: Reply with quote

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
View user's profile Send private message
Baaleos



Joined: 02 Sep 2007
Posts: 830

PostPosted: Thu Nov 19, 2015 14:05    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux development All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group