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 Embedded C SDk #435
Comments
Hi @agilesai1294, the C-SDK does not directly support cross-compiling for a ARM target. Although we may be adding this feature sometimes in the near future we cannot offer you a solution in the short term. |
@agilesai1294 Please reach out again if you have further issue integrating C-SDK with targeted platform. I'd close this thread for now. |
Hi @lt72 If i want to test pubsub in my target HW. what all dependent files do I need to port? |
You will need to fill the implementation for platform abstractions here: (note: only in v4_beta branch) |
Hi @lt72 It successfully completes cmake and when I tried to make after cmake. I got the following error. Can you please tell me what should I change to make it work with arm-none-linux-gnueabi-gcc compiler |
Hi @agilesai1294, as a matter of fact this is actually part of our roadmap and we may have a solution faster than we can agree and implement all necessary steps, if you can wait a couple of days. |
Hi, @lt72 Is the solution ready for cross compiling this SDK with arm-linux-gnueabi-gcc? |
Not yet. |
Hi @agilesai1294, In addition to setting the compiler, you will also have to port the SDK to your platform. The errors you're seeing are because the SDK is trying to build with the POSIX port but can't find the POSIX functions. Ports of the SDK are implemented in the ports directory. You can set the port to use by setting the CMake variable
The command above allows you to build with the "template" port, which is empty function stubs. Once you have that building, you should implement your port based on the directions in the template. |
@agilesai1294 please reopen this if the above issue did not unblock you. |
Hi,
Can anyone provide me with the steps on how to cross compile Embedded C SDK using arm-none-linux-gnueabi-gcc?
The text was updated successfully, but these errors were encountered: