Page 1 of 1

No such file or directory.

Posted: Thu Mar 07, 2024 4:34 am
by Vineethad
Hello,

I am working with an Esp32c6 module and the tool is Espressif IDE(v5.1.2). I am created a new project and added the components when I included the spi.h into main file. while compiling the project I am getting error like "No such file or directory".

How to solve this problem ?.



Thanks & Regards,
D. Vineetha.

Re: No such file or directory.

Posted: Sun Mar 10, 2024 12:08 pm
by liaifat85
Ensure that the "spi.h" file is located in the correct directory within your project structure. If it's not, move it to the appropriate directory.

Re: No such file or directory.

Posted: Mon Mar 11, 2024 4:09 am
by Vineethad
Thanks for the response,

Actually I am following the below process to create a new component as right click on the project->new->espressif ide component.
Please let me know what is the mistake in creating of a new component.

Re: No such file or directory.

Posted: Mon Mar 11, 2024 4:11 am
by Vineethad
Thanks for the response,

Actually I am following the below process to create a new component as right click on the project->new->espressif ide component.
Please let me know what is the mistake in creating of a new component.

Re: No such file or directory.

Posted: Mon Mar 11, 2024 5:07 am
by chegewara
Im not sure if this is the case with IDE, but with command line idf.py when you add new component, or even just new .c, .cpp file you have to make

Code: Select all

idf.py fullclean
Its because cmake does not search for new files and new components, just rebuilding if files changes are detected.