GithubHelp home page GithubHelp logo

Comments (8)

unicornss avatar unicornss commented on July 4, 2024

Could you please try export JAVA_HOME=<your jdk home directory>
To check if the environment variable is set:
$ echo $JAVA_HOME
To set the environment variable (e.g in Sierra):

$ export JAVA_HOME=$(/usr/libexec/java_home -v 1.8)`
$ echo $JAVA_HOME
/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home

If its set then from the directory

/Users/home/Desktop/amazon-kinesis-video-streams-producer-sdk-cpp-master/kinesis-video-native-build

run
./install-script

Could you also provide how are you planning to use the Kinesis Video Streams ?

from amazon-kinesis-video-streams-producer-sdk-cpp.

enusbaum avatar enusbaum commented on July 4, 2024

Received a similar error while compiling latest clone on my Raspberry Pi while running ./install-script:

In file included from /home/pi/amazon-kinesis-video-streams-producer-sdk-cpp/kinesis-video-producer-jni/src/source/com/amazonaws/kinesis/video/producer/jni/KinesisVideoClientWrapper.cpp:5:0:
/home/pi/amazon-kinesis-video-streams-producer-sdk-cpp/kinesis-video-native-build/../kinesis-video-producer-jni/src/include/com/amazonaws/kinesis/video/producer/jni/KinesisVideoClientWrapper.h:14:54: fatal error: jni.h: No such file or directory
 #include <jni.h>                  // Basic native API
                                                      ^
compilation terminated.

from amazon-kinesis-video-streams-producer-sdk-cpp.

MushMal avatar MushMal commented on July 4, 2024

@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.

from amazon-kinesis-video-streams-producer-sdk-cpp.

enusbaum avatar enusbaum commented on July 4, 2024

Yes, I have Java JDK installed:

pi@raspberrypi:~/amazon-kinesis-video-streams-producer-sdk-cpp/kinesis-video-native-build $ java -version
java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) Client VM (build 25.65-b01, mixed mode)
pi@raspberrypi:~/amazon-kinesis-video-streams-producer-sdk-cpp/kinesis-video-native-build $ dpkg --list | grep -i jdk
ii  oracle-java8-jdk                8u65                         armhf        Java™ Platform, Standard Edition 8 Development Kit
pi@raspberrypi:~/amazon-kinesis-video-streams-producer-sdk-cpp/kinesis-video-native-build $ echo $JAVA_HOME
/usr/lib/jvm/jdk-8-oracle-arm-vfp-hflt

from amazon-kinesis-video-streams-producer-sdk-cpp.

zhiyua-git avatar zhiyua-git commented on July 4, 2024

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,
-ZH

from amazon-kinesis-video-streams-producer-sdk-cpp.

enusbaum avatar enusbaum commented on July 4, 2024

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.

from amazon-kinesis-video-streams-producer-sdk-cpp.

mkumar20xx avatar mkumar20xx commented on July 4, 2024

@unicornss below is Java_home directory

Homes-Mac-mini:~ home$ echo $JAVA_HOME
/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home

planned usage: I am building a prototype for construction sites workforce remote monitoring and data analysis from video-streams

from amazon-kinesis-video-streams-producer-sdk-cpp.

mkumar20xx avatar mkumar20xx commented on July 4, 2024

Updated xcode to latest version and tried re running the install script and it worked.So closing it for now.

from amazon-kinesis-video-streams-producer-sdk-cpp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.