No such file or directory.

Vineethad
Posts: 55
Joined: Wed Jul 19, 2023 7:45 am

No such file or directory.

Postby Vineethad » Thu Mar 07, 2024 4:34 am

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.
Attachments
Screenshot 2024-03-07 095700.png
Screenshot 2024-03-07 095700.png (104.13 KiB) Viewed 2512 times

liaifat85
Posts: 200
Joined: Wed Dec 06, 2023 2:46 pm

Re: No such file or directory.

Postby liaifat85 » Sun Mar 10, 2024 12:08 pm

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.

Vineethad
Posts: 55
Joined: Wed Jul 19, 2023 7:45 am

Re: No such file or directory.

Postby Vineethad » Mon Mar 11, 2024 4:09 am

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.

Vineethad
Posts: 55
Joined: Wed Jul 19, 2023 7:45 am

Re: No such file or directory.

Postby Vineethad » Mon Mar 11, 2024 4:11 am

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.
Attachments
Screenshot 2024-03-11 093436.png
Screenshot 2024-03-11 093436.png (22.2 KiB) Viewed 2370 times
Screenshot 2024-03-11 094027.png
Screenshot 2024-03-11 094027.png (49.73 KiB) Viewed 2370 times

chegewara
Posts: 2362
Joined: Wed Jun 14, 2017 9:00 pm

Re: No such file or directory.

Postby chegewara » Mon Mar 11, 2024 5:07 am

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.

Who is online

Users browsing this forum: No registered users and 145 guests