Cross-compiling for iOS fails at libwebsocket step #2026
Unanswered
mehmetcy84
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using the latest master code to build the Kinesis C SDK for iOS arm64. I know there is a Kinesis iOS SDK, but I need to build the Kinesis C SDK for the WebRTC Stack. (I still use the Kinesis iOS SDK for the signalling)
I configured an iOS toolchain I got from here:
https://github.com/leetal/ios-cmake
And I use this command under:
/Users/mehmet/Documents/amazon-kinesis-video-streams-webrtc-sdk-c/build
folder to build the Kinesis SDK:
cmake .. -G Xcode -DCMAKE_TOOLCHAIN_FILE=../ios.toolchain.cmake -DPLATFORM=OS64 -DCMAKE_XCODE_ATTRIBUTE_DEVELOPMENT_TEAM=[PRIVATE] -DPRODUCT_BUNDLE_IDENTIFIER=[PRIVATE] ..
I enabled mbedtls (disabled OpenSSL). The mbedtls libraries are built fine (I checked them with lipo and they are of type arm64) but during libwebsocket build, I get the following error:
But when I check:
/Users/mehmet/Documents/amazon-kinesis-video-streams-webrtc-sdk-c/open-source/include/mbedtls/ssl.h
I can find the header there. So what might be the cause of the failure? And how can I remedy this?
These are the changes I made in CMakeLists.txt
In libwebsockets-CMakeLists.txt
A broader section of the error in the terminal:
Beta Was this translation helpful? Give feedback.
All reactions