jvpernis / esp32-ps3

Control your ESP32 projects with a PS3 controller!
319 stars 86 forks source link

Error code when trying to run the Ps3Demo example #69

Open lp524 opened 8 months ago

lp524 commented 8 months ago

Hello I am getting the following error when trying to run your Ps3Demo example. c:/users/lando/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\lando\AppData\Local\Temp\arduino\sketches\9A5DB8A604FFD0FB36B34B98DC6521F3\libraries\PS3_Controller_Host\ps3_l2cap.c.o:(.literal.ps3_l2cap_config_ind_cback+0x0): undefined reference to L2CA_ConfigRsp' c:/users/lando/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\lando\AppData\Local\Temp\arduino\sketches\9A5DB8A604FFD0FB36B34B98DC6521F3\libraries\PS3_Controller_Host\ps3_l2cap.c.o:(.literal.ps3_l2cap_connect_ind_cback+0x4): undefined reference toL2CA_ErtmConnectRsp' c:/users/lando/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\lando\AppData\Local\Temp\arduino\sketches\9A5DB8A604FFD0FB36B34B98DC6521F3\libraries\PS3_Controller_Host\ps3_l2cap.c.o:(.literal.ps3_l2cap_connect_ind_cback+0x8): undefined reference to L2CA_ConfigReq' c:/users/lando/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\lando\AppData\Local\Temp\arduino\sketches\9A5DB8A604FFD0FB36B34B98DC6521F3\libraries\PS3_Controller_Host\ps3_l2cap.c.o:(.literal.ps3_l2cap_init_service+0x14): undefined reference toL2CA_Register' c:/users/lando/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\lando\AppData\Local\Temp\arduino\sketches\9A5DB8A604FFD0FB36B34B98DC6521F3\libraries\PS3_Controller_Host\ps3_l2cap.c.o:(.literal.ps3_l2cap_send_hid+0x10): undefined reference to L2CA_DataWrite' c:/users/lando/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\lando\AppData\Local\Temp\arduino\sketches\9A5DB8A604FFD0FB36B34B98DC6521F3\libraries\PS3_Controller_Host\ps3_l2cap.c.o: in functionps3_l2cap_config_ind_cback': c:\Users\lando\OneDrive\Documents\Arduino\libraries\PS3_Controller_Host\src/ps3_l2cap.c:263: undefined reference to L2CA_ConfigRsp' c:/users/lando/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\lando\AppData\Local\Temp\arduino\sketches\9A5DB8A604FFD0FB36B34B98DC6521F3\libraries\PS3_Controller_Host\ps3_l2cap.c.o: in functionps3_l2cap_connect_ind_cback': c:\Users\lando\OneDrive\Documents\Arduino\libraries\PS3_Controller_Host\src/ps3_l2cap.c:197: undefined reference to L2CA_ErtmConnectRsp' c:/users/lando/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: c:\Users\lando\OneDrive\Documents\Arduino\libraries\PS3_Controller_Host\src/ps3_l2cap.c:200: undefined reference toL2CA_ErtmConnectRsp' c:/users/lando/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: c:\Users\lando\OneDrive\Documents\Arduino\libraries\PS3_Controller_Host\src/ps3_l2cap.c:203: undefined reference to L2CA_ConfigReq' c:/users/lando/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\lando\AppData\Local\Temp\arduino\sketches\9A5DB8A604FFD0FB36B34B98DC6521F3\libraries\PS3_Controller_Host\ps3_l2cap.c.o: in functionps3_l2cap_init_service': c:\Users\lando\OneDrive\Documents\Arduino\libraries\PS3_Controller_Host\src/ps3_l2cap.c:152: undefined reference to L2CA_Register' c:/users/lando/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\lando\AppData\Local\Temp\arduino\sketches\9A5DB8A604FFD0FB36B34B98DC6521F3\libraries\PS3_Controller_Host\ps3_l2cap.c.o: in functionps3_l2cap_send_hid': c:\Users\lando\OneDrive\Documents\Arduino\libraries\PS3_Controller_Host\src/ps3_l2cap.c:122: undefined reference to L2CA_DataWrite' c:/users/lando/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\lando\AppData\Local\Temp\arduino\sketches\9A5DB8A604FFD0FB36B34B98DC6521F3\libraries\PS3_Controller_Host\ps3_spp.c.o:(.literal.ps3_spp_callback+0x8): undefined reference toesp_bt_gap_set_scan_mode' c:/users/lando/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\lando\AppData\Local\Temp\arduino\sketches\9A5DB8A604FFD0FB36B34B98DC6521F3\libraries\PS3_Controller_Host\ps3_spp.c.o:(.literal.ps3_spp_callback+0xc): undefined reference to esp_spp_start_srv' c:/users/lando/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\lando\AppData\Local\Temp\arduino\sketches\9A5DB8A604FFD0FB36B34B98DC6521F3\libraries\PS3_Controller_Host\ps3_spp.c.o:(.literal.ps3_spp_init+0x14): undefined reference toesp_spp_register_callback' c:/users/lando/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\lando\AppData\Local\Temp\arduino\sketches\9A5DB8A604FFD0FB36B34B98DC6521F3\libraries\PS3_Controller_Host\ps3_spp.c.o:(.literal.ps3_spp_init+0x18): undefined reference to esp_spp_init' c:/users/lando/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\lando\AppData\Local\Temp\arduino\sketches\9A5DB8A604FFD0FB36B34B98DC6521F3\libraries\PS3_Controller_Host\ps3_spp.c.o: in functionps3_spp_callback': c:\Users\lando\OneDrive\Documents\Arduino\libraries\PS3_Controller_Host\src/ps3_spp.c:145: undefined reference to esp_bt_gap_set_scan_mode' c:/users/lando/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: c:\Users\lando\OneDrive\Documents\Arduino\libraries\PS3_Controller_Host\src/ps3_spp.c:150: undefined reference toesp_spp_start_srv' c:/users/lando/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\lando\AppData\Local\Temp\arduino\sketches\9A5DB8A604FFD0FB36B34B98DC6521F3\libraries\PS3_Controller_Host\ps3_spp.c.o: in function ps3_spp_init': c:\Users\lando\OneDrive\Documents\Arduino\libraries\PS3_Controller_Host\src/ps3_spp.c:68: undefined reference toesp_spp_register_callback' c:/users/lando/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: c:\Users\lando\OneDrive\Documents\Arduino\libraries\PS3_Controller_Host\src/ps3_spp.c:77: undefined reference to `esp_spp_init' collect2.exe: error: ld returned 1 exit status

exit status 1

Compilation error: exit status 1

If you could help with this that would be great. Thank you