Post Reply 
Wow. I'm really impressed! Freenas?
09-02-2015, 23:15
Post: #21
RE: Wow. I'm really impressed! Freenas?
(09-02-2015 23:04)airflow Wrote:  So I have to compile libohNetJni.so too for FreeBSD. Before I tried that, I compiled and installed openjdk8 successfully (because you mentioned that an java-SDK is needed). Unluckily, compilation of libohNetJni.so fails with the following message:

Code:
gcc -o Build/Obj/Posix/Release/JniAction.o -c -fexceptions -Wall   -Werror -pipe -D_GNU_SOURCE -D_REENTRANT -DDEFINE_LITTLE_ENDIAN -DDEFINE_TRACE -g -O2   -fPIC -IBuild/Include/  -I/include -I/include/linux OpenHome/Net/Bindings/Java/Action.c
OpenHome/Net/Bindings/Java/Action.c:1:17: error: jni.h: No such file or directory

Should I ask the other Simon in the OpenHome-forum for support or do you have an idea already? For your information, I chose openjdk8 for the Java-SDK. I would also have linux-sun-jdk17. Should I try that instead?

You are getting these errors because jni.h was not found. You need to set the JAVA_HOME environment variable to the location where your JDK is installed.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Wow. I'm really impressed! Freenas? - simoncn - 09-02-2015 23:15

Forum Jump:


User(s) browsing this thread: 1 Guest(s)