espressif / esp-aws-iot

AWS IoT SDK for ESP32 based chipsets
Apache License 2.0
271 stars 164 forks source link

Can't make esp-aws-iot works with ESP-IDF 5.0 and Eclipse IDF (CA-275) #167

Open leeo96 opened 1 year ago

leeo96 commented 1 year ago

Hello everyone.

I can't make this component to work with my project. I get the follow error when I try to compile it:

CMake Error at D:/TOOLS/ESP-IDF/esp-idf-v5.0/tools/cmake/build.cmake:245 (message): Failed to resolve component 'cbor'.

I added esp-aws-iot to "component" folder of ESP-IDF path and set the "EXTRA_COMPONENT_DIRS" to "libraries" folder of esp-aws-iot:

set(EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/components/esp-aws-iot/libraries)

We have a step-by-step that teach how to integrate the esp-aws-iot like a component in a existing project?

Could anyone help me?

Regards, Leonardo

SolidStateLEDLighting commented 1 year ago

set(EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/components/esp-aws-iot/libraries) is unnecessary. Anything inside the components directory is considered a component by default.

I suspect that you'll need to read up on CMake a bit more to figure out how to organize your CMakeLists.txt files?