espressif / esp-aws-iot

AWS IoT SDK for ESP32 based chipsets
Apache License 2.0
266 stars 157 forks source link

Compile error (CA-282) #173

Closed ahmetbilaly closed 8 months ago

ahmetbilaly commented 1 year ago

Hi, i am new with esp32 microcontrollers. I am using esp-idf v4.4.4 in vscode. I cloned esp-aws-iot in my project under components folder ( git clone -b "release/202210.01-LTS" --recursive https://github.com/espressif/esp-aws-iot) and I added this line in my root cmake file set(EXTRA_COMPONENT_DIRS "${PROJECT_PATH}/components/esp-aws-iot/libraries") but when i #include “core_mqtt.h” in main.c i took error. What did I wrong?

SolidStateLEDLighting commented 1 year ago

Add the name of the actual library in that path like this:

"${CMAKE_CURRENT_LIST_DIR}/components/esp-aws-iot/libraries/coreMQTT"

(it is ok to use PROJECT_PATH instead of CMAKE_CURRENT_LIST_DIR)

Then, inside the main folder -- you have another CMakeLlists.txt file -- that file will need to require coreMQTT

At that point, your "core_mqtt.h" should be reachable.

To understand all this, you will need to read up on CMake and look at good examples and match the patterns of those examples.

K.

SolidStateLEDLighting commented 1 year ago

May I suggest that you use the Esp32 forums also....


From: ahmetbilaly @.> Sent: Wednesday, March 22, 2023 4:43 AM To: espressif/esp-aws-iot @.> Cc: keith ssledlighting.com @.>; Mention @.> Subject: Re: [espressif/esp-aws-iot] Compile error (CA-282) (Issue #173)

@SolidStateLEDLightinghttps://github.com/SolidStateLEDLighting thank you so much for quick reply. I continue to research and learn. If I have more questions in the future, can I ask you via e-mail? I promise I won't bother you too much

— Reply to this email directly, view it on GitHubhttps://github.com/espressif/esp-aws-iot/issues/173#issuecomment-1478554744, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGGOKE7XMLH5PKDDF4IYCKLW5IHIXANCNFSM6AAAAAAWAISXIY. You are receiving this because you were mentioned.Message ID: @.***>