aws / aws-iot-device-sdk-embedded-C

SDK for connecting to AWS IoT from a device using embedded C.
MIT License
978 stars 625 forks source link

Cross-compiling on a T31 Board #1799

Closed Zevolusion closed 2 years ago

Zevolusion commented 2 years ago

I try to cross-compiling on a T31 Board. But it occured error, seems like rt library could not compile. How can I fix this? image

paulbartell commented 2 years ago

@Zevolusion : could you share a bit more info about what arguments you've passed into cmake?

librt is located using the cmake find_library function. you'll need to make sure the librt .so object is available in your cross compilation environment.

libRT is only required for a few of the demos (listed below). So It may not be necessary depending on your use case.

Zevolusion commented 2 years ago

My complier is mips-gcc472-glibc216-32bit-r2.3.3. And I try another branch which is v4_beta_deprecated, it occurs same error: image

paulbartell commented 2 years ago

@Zevolusion : For cmake to be able to find the librt library, it needs to know where to look. You can approach this in a couple different ways:

Zevolusion commented 2 years ago

It works, Thanks! @paulbartell

paulbartell commented 2 years ago

Glad to help.