Closed aggaddam closed 1 year ago
Github do not include submodules when you download source code as a zip, which is why are getting mqtt related errors (the files do not exists, they are in the submodule)
To download release/v5.0
with git you can follow the Getting started Guide
Or if you for some reason are unable/dont want to clone we also package esp-idf with submodules as a downloadable zip file on our website for all stable release, e.g. v5.0.1
@ESP-Marius Thanks for the response!
I also tried the below methods
Option 1: (Success - Cloning Idf v5.1 directly from github)
git clone --recurse-submodules -b release/v5.1 https://github.com/espressif/esp-idf.git
).install.sh esp32c3
command. ./export.s
h commandidf.py set-target esp32c3
) to esp32c3Option 2: (Failure - Cloning Idf v5.1 directly from GitHub and updating the IDF v5.1 in our bitbucket or any cloud-hosted repo)
git clone --recurse-submodules -b release/v5.1 https://github.com/espressif/esp-idf.git
).install.sh esp32c3
command (Successful)idf.py set-target esp32c3
)with the below errorCMake Error at /home/agaddam/Documents/delete/li_ac_matter_fw/targets/simplifi/AC/li_esp32matter_sdk/esp-idf/components/mbedtls/mbedtls/library/CMakeLists.txt:277 (add_library):
Cannot find source file:
ssl_debug_helpers_generated.c
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h
.hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc
CMake Error at /home/agaddam/Documents/delete/li_ac_matter_fw/targets/simplifi/AC/li_esp32matter_sdk/esp-idf/components/mbedtls/mbedtls/library/CMakeLists.txt:265 (add_library):
Cannot find source file:
error.c
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h
.hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc
CMake Error at /home/agaddam/Documents/delete/li_ac_matter_fw/targets/simplifi/AC/li_esp32matter_sdk/esp-idf/components/mbedtls/mbedtls/library/CMakeLists.txt:265 (add_library):
No SOURCES given to target: mbedcrypto
CMake Error at /home/agaddam/Documents/delete/li_ac_matter_fw/targets/simplifi/AC/li_esp32matter_sdk/esp-idf/components/mbedtls/mbedtls/library/CMakeLists.txt:277 (add_library):
No SOURCES given to target: mbedtls
CMake Generate step failed. Build files cannot be regenerated correctly.
cmake failed with exit code 1, output of the command is in the /home/agaddam/Documents/delete/li_ac_matter_fw/targets/simplifi/AC/li_esp32matter_sdk/esp-idf/examples/get-started/hello_world/build/log/idf_py_stderr_output_5367 and /home/agaddam/Documents/delete/li_ac_matter_fw/targets/simplifi/AC/li_esp32matter_sdk/esp-idf/examples/get-started/hello_world/build/log/idf_py_stdout_output_5
After careful analysis, it was observed that a few files from mbedtls component are getting committed to the bitbucket repo. Here are the files that got missed while committing changes to bitbucket
Some configuration files inside esp-idf folder gnore these files during committing changes. Please check and provide the resolution for this
These files seems to be ignored in components/mbedtls/mbedtls/library/.gitignore
, maybe when moving the files to bitbucket this ignore file is used somehow.
This doesnt seem to be an ESP-IDF issue though.
@ESP-Marius I was following the same approach for esp-idf v4.4.2. It worked fine without any issue. Is this issue from Mbedtls library from third party ?
The mbedtls version used in v4.4.2 did not have these file on the gitignore.
The "issue" is from the mbedtls external library yes, but I dont think there is any actual issue with the library, rather that your workflow need to take into account this gitignore file.
@ESP-Marius I was able to fix the issue by removing the below lines in .gitignore present under esp-idf\components\mbedtls\mbedtls\library
Original .gitignore File:
*.o
libmbed*
*.sln
*.vcxproj
# Automatically generated files
/error.c
/version_features.c
/ssl_debug_helpers_generated.c
/psa_crypto_driver_wrappers.c
Modified .gitignore File (Removed .c files from ignore list so that I commit the files to cloud-hosted git repo)
*.o
libmbed*
*.sln
*.vcxproj
Answers checklist.
IDF version.
release/v5.1
Operating System used.
Linux
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
None
Development Kit.
ESP32C3-DEVKIT
Power Supply used.
USB
What is the expected behavior?
What is the actual behavior?
idf.py set-taget esp32c3 should not give any error
Steps to reproduce.
Debug Logs.
No response
More Information.
No response