aed3 / PS4-esp32

Use a ps4 controller with an esp32
328 stars 103 forks source link

Help include and compile library in new idf project #59

Open Biavleren opened 1 year ago

Biavleren commented 1 year ago

I have followed the instructions on how to include and install the library from the repo: https://github.com/jvpernis/esp32-ps3

However, I just can't get it working... And any help is much appreciated! I am working on a mac on downloaded the ps4 library to my esp-idf/components directory. My project root CMakeLists.txt:

# For more information about build system see
# https://docs.espressif.com/projects/esp-idf/en/latest/api-guides/build-system.html
# The following five lines of boilerplate have to be in your project's
# CMakeLists in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.16)

set(EXTRA_COMPONENT_DIRS /Users/david/esp/esp-idf/components)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(myPs4Proj)

I am build using idf.py build.