Skip to content
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 MQTT #1579

Closed
mukesh-2538 opened this issue Mar 8, 2021 · 2 comments
Closed

CROSS COMPILE MQTT #1579

mukesh-2538 opened this issue Mar 8, 2021 · 2 comments

Comments

@mukesh-2538
Copy link

Can anyone provide me the instructions to Cross compile CoreMQTT Library and MQTT demos for ARM platform?

@aggarw13
Copy link
Contributor

aggarw13 commented Mar 8, 2021

Hi @mukesh-2538, Cmake supports specifying the cross-compiler toolchain through the CMAKE_TOOLCHAIN_FILE variable that you can pass in the Cmake configuration command (as cmake -S . -B build -DCMAKE_TOOLCHAIN_FILE=<path/to/toolchain/file>.cmake).

An example toolchain file for an ARM based Linux platform can be seen in the CMake documentation here.

@mukesh-2538
Copy link
Author

I am getting the following error.

cmake -S . -B build -DCMAKE_TOOLCHAIN_FILE=/home/mukesh/trail/sercom.cmake
CMake Error: The source directory "/home/mukesh/trail/aws-iot-device-sdk-embedded-C/build" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants