Page 1 of 1

file not found issue

Posted: Sun Mar 03, 2024 2:51 pm
by MyControllab
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

Re: file not found issue

Posted: Sun Mar 03, 2024 5:44 pm
by MicroController
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