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
file not found issue
-
- Posts: 5
- Joined: Sat Jul 16, 2022 10:37 am
file not found issue
- Attachments
-
- File not found.JPG (202.58 KiB) Viewed 938 times
-
- Posts: 1706
- Joined: Mon Oct 17, 2022 7:38 pm
- Location: Europe, Germany
Re: file not found issue
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
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 80 guests