file not found issue

MyControllab
Posts: 5
Joined: Sat Jul 16, 2022 10:37 am

file not found issue

Postby MyControllab » Sun Mar 03, 2024 2:51 pm

Hello

I am new to ESP-IDF and i have a question about adding a component.
I have added a component running the command "git clone https://github.com/jvpernis/esp32-ps3.git components/ps3"
When i build the project i get an error in my ps3testPrj.c file "PS3.h" file not found (see attachment)

I have set the component dir in the CMakeList.txt file in the root of the project. but i get still this error.
What is wrong here

Thank for support in advance
Attachments
File not found.JPG
File not found.JPG (202.58 KiB) Viewed 942 times

MicroController
Posts: 1707
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: file not found issue

Postby MicroController » Sun Mar 03, 2024 5:44 pm

1) The 'components' directory inside your project is automatically used to find components.
2) Each component resides in its own directory, "ps3" in your case, and the component's parent directory needs to be in the component search path.
3) To make a component 'visible' to your project, you need to name the component ("ps3") in main\CMakeLists.txt under REQUIRES, see e.g. https://docs.espressif.com/projects/esp ... -component

Who is online

Users browsing this forum: No registered users and 115 guests