thingsboard / thingsboard-client-sdk

Client SDK to connect with ThingsBoard IoT Platform from IoT devices (Arduino, Espressif, etc.)
MIT License
149 stars 120 forks source link

Unable to build 0016 example (Eclipse + ESP-IDF) #210

Open AndriiRukhmakov opened 1 month ago

AndriiRukhmakov commented 1 month ago

Please check possibility to build example 0016 under Eclipse with ESP-IDF. Tried 0014 and 0015 - and everything is ok. But example '0016-espressif_esp32_rpc' is always has issue with a modules, like this:

Cannot find source file:

/home/user/eclipse-workspace/thingsboard-client-sdk/src/Attribute_Request_Callback.cpp

MathewHDYT commented 1 month ago

The problem is that I seem to have forgotten to adjust the CMake file to changes. Because it not finding the source file makes perfect sense because this source file does not exist anymore.

I've fixed the issue on my fork, for now you can simply go into the example go into the main foldr and then remove the line with Attribute_Request_Callback.cpp from the CMakeLists.txt.

If you want to see what exactly needs to be changed you can see it clearly in this commit

AndriiRukhmakov commented 1 month ago

The problem is that I seem to have forgotten to adjust the CMake file to changes. Because it not finding the source file makes perfect sense because this source file does not exist anymore.

I've fixed the issue on my fork, for now you can simply go into the example go into the main foldr and then remove the line with Attribute_Request_Callback.cpp from the CMakeLists.txt.

If you want to see what exactly needs to be changed you can see it clearly in this commit

Thank you for the information. I tried to do this step, but it is not a solution, because then I got next error:

Cannot find source file: /home/andrii/eclipse-workspace/thingsboard-client-sdk/src/RPC_Callback.cpp

If this module will be also removed, will get next error for:

Cannot find source file: /home/andrii/eclipse-workspace/thingsboard-client-sdk/src/RPC_Response.cpp

And in the case if all problem modules will be removed - next final error will be: Screenshot from 2024-07-17 20-27-58

MathewHDYT commented 1 month ago

The last update forgot to include the new examples in the pipeline, so they have not been updated to the changes since v0.12.0. I've fixed the examples and you can find them in my fork for now.

See the fixed examples here.

AndriiRukhmakov commented 1 month ago

The last update forgot to include the new examples in the pipeline, so they have not been updated to the changes since v0.12.0. I've fixed the examples and you can find them in my fork for now.

See the fixed examples here.

Thank you Mathew! The last update fixed the issue:

Build complete (0 errors, 0 warnings): /home/andrii/eclipse-workspace/thingsboard-client-sdk/examples/0016-espressif_esp32_rpc/build /home/andrii/.espressif/python_env/idf5.3_py3.12_env/bin/python /home/andrii/esp/esp-idf/tools/idf_size.py /home/andrii/eclipse-workspace/thingsboard-client-sdk/examples/0016-espressif_esp32_rpc/build/ESP32_RPC.map