aed3 / PS4-esp32

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

I think I used this code sometime back, but now It won't compile anymore! #24

Closed MouryaT closed 2 years ago

MouryaT commented 2 years ago

Here is the error code from arduino ide,


libraries\PS4-esp32\ps4_gap.c.o:(.literal.gapInitService+0x1c): undefined reference to `GAP_ConnOpen'
libraries\PS4-esp32\ps4_gap.c.o:(.literal.gapEventHandle+0xc): undefined reference to `GAP_ConnGetL2CAPCid'
libraries\PS4-esp32\ps4_gap.c.o:(.literal.gapEventHandle+0x10): undefined reference to `GAP_ConnBTRead'
libraries\PS4-esp32\ps4_gap.c.o:(.literal.gapSendHid+0x14): undefined reference to `GAP_ConnBTWrite'
libraries\PS4-esp32\ps4_gap.c.o: In function `gapInitService':
C:\Users\user\Documents\Arduino\libraries\PS4-esp32\src/ps4_gap.c:113: undefined reference to `GAP_ConnOpen'
libraries\PS4-esp32\ps4_gap.c.o: In function `gapUpdateConnected':
C:\Users\user\Documents\Arduino\libraries\PS4-esp32\src/ps4_gap.c:176: undefined reference to `GAP_ConnGetL2CAPCid'
C:\Users\user\Documents\Arduino\libraries\PS4-esp32\src/ps4_gap.c:176: undefined reference to `GAP_ConnGetL2CAPCid'
libraries\PS4-esp32\ps4_gap.c.o: In function `gapEventHandle':
C:\Users\user\Documents\Arduino\libraries\PS4-esp32\src/ps4_gap.c:151: undefined reference to `GAP_ConnBTRead'
libraries\PS4-esp32\ps4_gap.c.o: In function `gapSendHid':
C:\Users\user\Documents\Arduino\libraries\PS4-esp32\src/ps4_gap.c:88: undefined reference to `GAP_ConnBTWrite'
collect2.exe: error: ld returned 1 exit status
exit status 1
Jia750 commented 2 years ago

Hello!

I currently have the same issue with the library Is there any way to fix the ps4_gap.c file?

The Ps3 library for the esp32 still works fine, but the ps4 one seems to have broke somehow.

Thanks, Jia

P.S. I've tried updating the library already but it doesnt fix the error