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

codiebee
Posts: 1
Joined: Sun Apr 09, 2023 5:04 pm

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

Postby codiebee » Sun Apr 09, 2023 5:14 pm

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

ESP_Sprite
Posts: 9730
Joined: Thu Nov 26, 2015 4:08 am

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

Postby ESP_Sprite » Mon Apr 10, 2023 12:41 am

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.

Who is online

Users browsing this forum: No registered users and 113 guests