jvpernis / esp32-ps3

Control your ESP32 projects with a PS3 controller!
309 stars 84 forks source link

PS3.h file not found #68

Open MyControlLab opened 7 months ago

MyControlLab commented 7 months ago

Hello

I have installed the ps3 component in my ESP-IDF project as suggested in the readme but when i build the project i get an error telling me that the file PS3.h is not found Probably because is didn't add the component to the CMakeList file but how do i do that ? Or is there another reason why i get this error

Thanks in advance

andreabenini commented 5 months ago

I'm having the same error. Considering this issue date you probably have already figured it out but I'll leave my comment here for future reference. This error is related to the newer version of ESP-IDF you're now using. Espressif are now releasing v5.x version and according to original doc everything from 4.x and above strictly requires the CMakeLists.txt file in the component directory. This means they're now using CMake to build projects, with or without vscode you now require to have a working cmake setup. From other issues in this project I've found a good CMakeLists.txt file which might give you some guidance but you'll have further errors later, like for example:

components/ps3/src/ps3.c: In function 'ps3SetBluetoothMacAddress':
components/ps3/src/ps3.c:287:5: error: implicit declaration of function 'esp_base_mac_addr_set' [-Werror=implicit-function-declaration]
  287 |     esp_base_mac_addr_set(base_mac);
      |     ^~~~~~~~~~~~~~~~~~~~~

Missing CMakeLists.txt file it's not the only problem, maybe a project refresh or a pull request can help to update and refresh for others.