undefined reference errors related to libcrypto.so while cross compiling aws-iot-device-sdk-cpp-v2 #682
Unanswered
NithinVoxela
asked this question in
Q&A
Replies: 1 comment
-
Can you try linking to the crypto you are trying to use with |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
this is docker file im using
Base image with ACAP native SDK and necessary tools
ARG ARCH=armv7hf
ARG VERSION=3.5
ARG UBUNTU_VERSION=20.04
ARG REPO=axisecp
ARG SDK=acap-sdk
FROM ${REPO}/${SDK}:${VERSION}-${ARCH}-ubuntu${UBUNTU_VERSION} as base
Install prerequisite packages for AWS SDK build
RUN apt-get update && apt-get install -y
git
clang
cmake
WORKDIR /opt/aws-sdk-cpp
RUN git clone --recursive https://github.com/aws/aws-iot-device-sdk-cpp-v2.git
Build AWS SDK for C++ as a shared library
WORKDIR /opt/aws-sdk-cpp/aws-iot-device-sdk-cpp-v2-build
RUN . /opt/axis/acapsdk/environment-setup* &&
cmake
-DBUILD_SHARED_LIBS=ON
-DBUILD_DEPS=ON
-DCMAKE_INSTALL_PREFIX="/opt/aws-sdk-cpp/"
-DCMAKE_BUILD_TYPE="Release"
../aws-iot-device-sdk-cpp-v2 &&
cmake --build . --target install
Beta Was this translation helpful? Give feedback.
All reactions