-
I am trying to cross-compile amazon-kinesis-video-streams-webrtc-sdk-c with mbedTLS but the cmake command fails. I do not know if I have made a mistake or if it just doesn't work. I am running on Ubuntu 20.04. I have set CC and CXX for the cross-compiler and want mbedTLS and other dependencies to be built. I have run this command: cmake -DBUILD_STATIC_LIBS=TRUE -DBUILD_WEBRTC_SAMPLES=ON -DBUILD_LIBSRTP_HOST_PLATFORM=x86_64 -DUSE_OPENSSL=OFF -DUSE_MBEDTLS=ON .. The mbedTLS libraries are built correctly. But when cmake is building libwebsockets there is a compile error:
This suggests that the include path is not been passed in the libwebsockets build args. I also see these messages which shows cmake is picking up mbedtls headers from the Ubuntu installed mbedtls instead of mbedtls built by cmake (which could be a different version).
Does anyone know if my cmake command is incorrect, or should I create an Issue? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
Hi @kevinduk, we have some cross compilation builds in our CI that work fine. Can you refer to these if it helps amazon-kinesis-video-streams-webrtc-sdk-c/.github/workflows/ci.yml Lines 526 to 579 in bfa6667 |
Beta Was this translation helpful? Give feedback.
-
Can you confirm what |
Beta Was this translation helpful? Give feedback.
-
PR #1923 has added cross compile examples. To cross compile on x86_64 host for arm32 target using mbedtls static libraries:
|
Beta Was this translation helpful? Give feedback.
PR #1923 has added cross compile examples.
To cross compile on x86_64 host for arm32 target using mbedtls static libraries: