-
Notifications
You must be signed in to change notification settings - Fork 635
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cross compile aws-iot-device-sdk-embedded-C for AARCH64 Raspberry pi3 B #1382
Comments
Hi Lei, It looks like you are trying to link a static library to a shared library: Option 1: Build CMake with the following flag: Option 1 is the easiest way to get around this problem while the other options may require you to build OpenSSL from source. |
Thanks @yourslab for your prompt response and I will go with option 3 linking against libcrypto.so, which is already available. Another designing question, is there any limitation we should be aware if using AWS IOT SDK as general purpose http client library? Much appreciated! |
There are certain features like streaming and pipelining that are not yet supported in the http client library. If your project does not require these features, then coreHTTP would be a suitable choice. |
Seems there are no further queries so I will be closing this issue. Please feel free to reach out again. |
Thanks very much @yourslab for your support! Sorryfor late reply. |
Hi Experts,
We are trying to build a POC based on AWS IOT HUB using Raspberry PI3 B board.
I'm trying to add https://github.com/aws/aws-iot-device-sdk-embedded-C into my PI3 embedded Linux BUILDROOT as a CMake package and expect it to generating necessary shared libraries/headers so my linux application could use APIs exposed from those libraries. For now, I'm mostly interested in basic coreMQTT and coreHTTP client libraries.
Already tried building from my ubuntu18.4 and ran two of the demos without any problem. http/mqtt_mutual_auth_demos.
When I tried to do build, the process failed at cross-compiling aws-iod-device-embedded-c package. Please see attached building errors.
Any hints would be much appreciated!
Lei
-- The C compiler identification is GNU 9.2.1
-- Check for working C compiler: /home/leizhou/workspace/rpi3-optee/out-br/host/bin/aarch64-linux-gnu-gcc
-- Check for working C compiler: /home/leizhou/workspace/rpi3-optee/out-br/host/bin/aarch64-linux-gnu-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found OpenSSL: /home/leizhou/workspace/rpi3-optee/out-br/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libcrypto.a (found version "1.1.1g")
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
Downloading the Amazon Root CA certificate...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1188 100 1188 0 0 3151 0 --:--:-- --:--:-- --:--:-- 3151
Downloading the Baltimore Cybertrust Root CA certificate...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1262 100 1262 0 0 1828 0 --:--:-- --:--:-- --:--:-- 1826
-- Looking for AWS_IOT_ENDPOINT
-- Looking for AWS_IOT_ENDPOINT - found
-- Looking for CLIENT_CERT_PATH
-- Looking for CLIENT_CERT_PATH - found
-- Looking for CLIENT_PRIVATE_KEY_PATH
-- Looking for CLIENT_PRIVATE_KEY_PATH - found
-- Looking for AWS_IOT_ENDPOINT
-- Looking for AWS_IOT_ENDPOINT - found
-- Looking for CLIENT_CERT_PATH
-- Looking for CLIENT_CERT_PATH - found
-- Looking for CLIENT_PRIVATE_KEY_PATH
-- Looking for CLIENT_PRIVATE_KEY_PATH - found
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
-- Build files have been written to: /home/leizhou/workspace/rpi3-optee/out-br/build/aws_iotsdk_ext-1.0/buildroot-build
The text was updated successfully, but these errors were encountered: