-
Notifications
You must be signed in to change notification settings - Fork 330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'jni.h' file not found - osx High sierra #43
Comments
Could you please try export JAVA_HOME=<your jdk home directory>
If its set then from the directory
run Could you also provide how are you planning to use the Kinesis Video Streams ? |
Received a similar error while compiling latest clone on my Raspberry Pi while running ./install-script:
|
@enusbaum could you please verify whether you have a Java JDK installed (open JDK will do). If so, can you set the path as per Readme @unicornss pasted in his reply? Please respond so we can help you further. |
Yes, I have Java JDK installed:
|
Hi enusbaum, Can you check if you need to set JAVA_HOME to /usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt? This post looks similar to your case. Could you also provide how are you planning to use the Kinesis Video Streams? Thanks, |
Thanks! Can confirm that was my issue and it needed to be "arm32" and not "arm" Install script completed successfully. Testing Kinesis Video Streams with my Raspberry Pi currently to prototype some stuff. Looking to see how well it ties into Amazon's AI/ML stack. |
@unicornss below is Java_home directory Homes-Mac-mini:~ home$ echo $JAVA_HOME planned usage: I am building a prototype for construction sites workforce remote monitoring and data analysis from video-streams |
Updated xcode to latest version and tried re running the install script and it worked.So closing it for now. |
Hi,
I get jni.h file not found while trying to build the native JNI lib for osx.
sudo ./install-script
...
-- Build files have been written to: /Users/home/Desktop/amazon-kinesis-video-streams-producer-sdk-cpp-master/kinesis-video-native-build [ 0%] Building CXX object CMakeFiles/KinesisVideoProducerJNI.dir/Users/home/Desktop/amazon-kinesis-video-streams-producer-sdk-cpp-master/kinesis-video-producer-jni/src/source/com/amazonaws/kinesis/video/producer/jni/KinesisVideoClientWrapper.cpp.o In file included from /Users/home/Desktop/amazon-kinesis-video-streams-producer-sdk-cpp-master/kinesis-video-producer-jni/src/source/com/amazonaws/kinesis/video/producer/jni/KinesisVideoClientWrapper.cpp:5: /Users/home/Desktop/amazon-kinesis-video-streams-producer-sdk-cpp-master/kinesis-video-native-build/../kinesis-video-producer-jni/src/include/com/amazonaws/kinesis/video/producer/jni/KinesisVideoClientWrapper.h:14:10: fatal error: 'jni.h' file not found #include <jni.h> // Basic native API ^ 1 error generated. make[3]: *** [CMakeFiles/KinesisVideoProducerJNI.dir/Users/home/Desktop/amazon-kinesis-video-streams-producer-sdk-cpp-master/kinesis-video-producer-jni/src/source/com/amazonaws/kinesis/video/producer/jni/KinesisVideoClientWrapper.cpp.o] Error 1 make[2]: *** [CMakeFiles/KinesisVideoProducerJNI.dir/all] Error 2 make[1]: *** [CMakeFiles/KinesisVideoProducerJNI.dir/rule] Error 2 make: *** [KinesisVideoProducerJNI] Error 2 Homes-Mac-mini:kinesis-video-native-build home$
Java version
Homes-Mac-mini:kinesis-video-native-build home$ java -version
java version "1.8.0_162"
Java(TM) SE Runtime Environment (build 1.8.0_162-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.162-b12, mixed mode)
Homes-Mac-mini:kinesis-video-native-build home$
It looks like headers file are mapped in ./install-script.
How do it manually specify the location of jni.h header file ? Or should I look for some other work around ?
I have been into this for weeks, unable to map the headers to install_script. any help is greatly appreciated.
The text was updated successfully, but these errors were encountered: