Page 1 of 1

fatal error: mbedtls/md5.h: No such file or directory

Posted: Sun Apr 09, 2023 5:14 pm
by codiebee
Hi all,

I am new in development of esp32 based project.

As per the development I am facing the error "fatal error: mbedtls/md5.h: No such file or directory".

I worked on calculating the MD5 checksum and using the example it works but the issue is that when I merged it into the main code it gives me the error "fatal error: mbedtls/md5.h: No such file or directory".
Even I tried to use the "set(EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/components/mbedtls)" in CMakeList.txt file but it didn't works.

Can you please help me to fix this issue, All the support is highly appreciated.

Looking forward for the supports
  1. [Codebox=c file=Untitled.c]
[/Codebox] and solutions.

Thanks and Regards

Re: fatal error: mbedtls/md5.h: No such file or directory

Posted: Mon Apr 10, 2023 12:41 am
by ESP_Sprite
Is this in a separate component (as in: not the 'main' folder)? If so, try to add 'REQUIRES mbedtls' to the idf_component_register statement in CMakeFiles.txt of that component. See here for more info.