awslabs / amazon-kinesis-video-streams-producer-sdk-cpp

Amazon Kinesis Video Streams Producer SDK for C++ is for developers to install and customize for their connected camera and other devices to securely stream video, audio, and time-encoded data to Kinesis Video Streams.
Apache License 2.0
379 stars 334 forks source link

[QUESTION]OpenSSL Version: AWS Kinesis: Download and Build the Kinesis Video Streams C++ Producer SDK #484

Closed phillipshaong closed 4 years ago

phillipshaong commented 4 years ago

Raspberry Pi 4 Raspbian Lite

After installing all the required dependencies, I perform: git clone --recursive https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp.git mkdir -p amazon-kinesis-video-streams-producer-sdk-cpp/build cd amazon-kinesis-video-streams-producer-sdk-cpp/build

I get the following error message when trying to use the command cmake .. -DBUILD_GSTREAMER_PLUGIN=ON -DBUILD_JNI=TRUE

*** Installing runtime programs
install apps/openssl -> /home/pi/amazon-kinesis-video-streams-producer-sdk-cpp/open-source/local/bin/openssl
install ./tools/c_rehash -> /home/pi/amazon-kinesis-video-streams-producer-sdk-cpp/open-source/local/bin/c_rehash
/usr/bin/cmake: /home/pi/amazon-kinesis-video-streams-producer-sdk-cpp/open-source/local/lib/libssl.so.1.1: version `OPENSSL_1_1_1' not found (required by /usr/lib/arm-linux-gnueabihf/libcurl.so.4)
make[2]: *** [CMakeFiles/project_libopenssl.dir/build.make:76: build/src/project_libopenssl-stamp/project_libopenssl-install] Error 1
make[1]: *** [CMakeFiles/Makefile2:73: CMakeFiles/project_libopenssl.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
CMake Error at open-source/amazon-kinesis-video-streams-producer-c/CMake/Utilities.cmake:59 (message):
  CMake step for libopenssl failed: 2
Call Stack (most recent call first):
  open-source/amazon-kinesis-video-streams-producer-c/CMakeLists.txt:78 (build_dependency)

-- Configuring incomplete, errors occurred!
See also "/home/pi/amazon-kinesis-video-streams-producer-sdk-cpp/build/CMakeFiles/CMakeOutput.log".

However, I checked my system and it says my openssl version is 1.1.1, which is what it requires:

pi@raspberrypi:~ $ sudo apt-get install openssl
Reading package lists... Done
Building dependency tree       
Reading state information... Done
openssl is already the newest version (1.1.1d-0+deb10u3+rpt1).
openssl set to manually installed.
The following package was automatically installed and is no longer required:
  rpi-eeprom-images
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

And then, I get a strange error message saying it isn't found again.

pi@raspberrypi:~ $ openssl version
openssl: /home/pi/amazon-kinesis-video-streams-producer-sdk-cpp/open-source/local/lib/libssl.so.1.1: version `OPENSSL_1_1_1' not found (required by openssl)
openssl: /home/pi/amazon-kinesis-video-streams-producer-sdk-cpp/open-source/local/lib/libcrypto.so.1.1: version `OPENSSL_1_1_1' not found (required by openssl)
pi@raspberrypi:~ $ 

What should I do?

Thanks!

disa6302 commented 4 years ago

@phillipshaong ,

Could be a linking error. Can you try setting LD_LIBRARY_PATH to point to the openssl path and see if it works?

export LD_LIBRARY_PATH=/usr/local/lib, assuming this is where openssl gets installed by default. Also, check which openssl version is being referenced by running which openssl

The SDK installs openssl version 1.1.0l by default. and the one you installed install 1.1.1d. That might be the reason you are facing this problem.

MushMal commented 4 years ago

What I am thinking is that the library or the path is not "mapped" properly as openssl executable itself is failing to find the library.

disa6302 commented 4 years ago

@phillipshaong ,

Any updates?

phillipshaong commented 4 years ago

Thanks for following up! I'm not sure why, but after one of the reboots I just did, it stopped giving the error. I don't know why, since previous reboots have failed to fix the problem.