jvpernis / esp32-ps3

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

Compilation of example fails #58

Closed scottwing56 closed 1 year ago

scottwing56 commented 1 year ago

I'm closing this issue as it has already been reported.

I am making my first attempt to use the ps3 library but can't get it to compile. I've tested several other esp32 examples successfully, so I believe my board setup is ok. The board is the esp32s3-dev-module. The error messages are:

c:/users/scott/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\scott\AppData\Local\Temp\arduino\sketches\6D68F073EC1C59ED87F32A5982E1BA24\libraries\PS3_Controller_Host\ps3_l2cap.c.o:(.literal.ps3_l2cap_config_ind_cback+0x0): undefined reference to L2CA_ConfigRsp' c:/users/scott/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\scott\AppData\Local\Temp\arduino\sketches\6D68F073EC1C59ED87F32A5982E1BA24\libraries\PS3_Controller_Host\ps3_l2cap.c.o:(.literal.ps3_l2cap_connect_ind_cback+0x4): undefined reference toL2CA_ErtmConnectRsp' c:/users/scott/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\scott\AppData\Local\Temp\arduino\sketches\6D68F073EC1C59ED87F32A5982E1BA24\libraries\PS3_Controller_Host\ps3_l2cap.c.o:(.literal.ps3_l2cap_connect_ind_cback+0x8): undefined reference to L2CA_ConfigReq' c:/users/scott/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\scott\AppData\Local\Temp\arduino\sketches\6D68F073EC1C59ED87F32A5982E1BA24\libraries\PS3_Controller_Host\ps3_l2cap.c.o:(.literal.ps3_l2cap_init_service+0x14): undefined reference toL2CA_Register' c:/users/scott/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\scott\AppData\Local\Temp\arduino\sketches\6D68F073EC1C59ED87F32A5982E1BA24\libraries\PS3_Controller_Host\ps3_l2cap.c.o:(.literal.ps3_l2cap_send_hid+0x14): undefined reference to L2CA_DataWrite' c:/users/scott/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\scott\AppData\Local\Temp\arduino\sketches\6D68F073EC1C59ED87F32A5982E1BA24\libraries\PS3_Controller_Host\ps3_l2cap.c.o: in functionps3_l2cap_config_ind_cback': c:\Users\scott\Documents\Arduino\Sketches\libraries\PS3_Controller_Host\src/ps3_l2cap.c:263: undefined reference to L2CA_ConfigRsp' c:/users/scott/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\scott\AppData\Local\Temp\arduino\sketches\6D68F073EC1C59ED87F32A5982E1BA24\libraries\PS3_Controller_Host\ps3_l2cap.c.o: in functionps3_l2cap_connect_ind_cback': c:\Users\scott\Documents\Arduino\Sketches\libraries\PS3_Controller_Host\src/ps3_l2cap.c:197: undefined reference to L2CA_ErtmConnectRsp' c:/users/scott/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\scott\Documents\Arduino\Sketches\libraries\PS3_Controller_Host\src/ps3_l2cap.c:200: undefined reference toL2CA_ErtmConnectRsp' c:/users/scott/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\scott\Documents\Arduino\Sketches\libraries\PS3_Controller_Host\src/ps3_l2cap.c:203: undefined reference to L2CA_ConfigReq' c:/users/scott/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\scott\AppData\Local\Temp\arduino\sketches\6D68F073EC1C59ED87F32A5982E1BA24\libraries\PS3_Controller_Host\ps3_l2cap.c.o: in functionps3_l2cap_init_service': c:\Users\scott\Documents\Arduino\Sketches\libraries\PS3_Controller_Host\src/ps3_l2cap.c:152: undefined reference to L2CA_Register' c:/users/scott/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\scott\AppData\Local\Temp\arduino\sketches\6D68F073EC1C59ED87F32A5982E1BA24\libraries\PS3_Controller_Host\ps3_l2cap.c.o: in functionps3_l2cap_send_hid': c:\Users\scott\Documents\Arduino\Sketches\libraries\PS3_Controller_Host\src/ps3_l2cap.c:122: undefined reference to L2CA_DataWrite' c:/users/scott/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\scott\AppData\Local\Temp\arduino\sketches\6D68F073EC1C59ED87F32A5982E1BA24\libraries\PS3_Controller_Host\ps3_spp.c.o:(.literal.ps3_spp_callback+0x8): undefined reference toesp_bt_gap_set_scan_mode' c:/users/scott/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\scott\AppData\Local\Temp\arduino\sketches\6D68F073EC1C59ED87F32A5982E1BA24\libraries\PS3_Controller_Host\ps3_spp.c.o:(.literal.ps3_spp_callback+0xc): undefined reference to esp_spp_start_srv' c:/users/scott/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\scott\AppData\Local\Temp\arduino\sketches\6D68F073EC1C59ED87F32A5982E1BA24\libraries\PS3_Controller_Host\ps3_spp.c.o:(.literal.ps3_spp_init+0x14): undefined reference toesp_spp_register_callback' c:/users/scott/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\scott\AppData\Local\Temp\arduino\sketches\6D68F073EC1C59ED87F32A5982E1BA24\libraries\PS3_Controller_Host\ps3_spp.c.o:(.literal.ps3_spp_init+0x18): undefined reference to esp_spp_init' c:/users/scott/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\scott\AppData\Local\Temp\arduino\sketches\6D68F073EC1C59ED87F32A5982E1BA24\libraries\PS3_Controller_Host\ps3_spp.c.o: in functionps3_spp_callback': c:\Users\scott\Documents\Arduino\Sketches\libraries\PS3_Controller_Host\src/ps3_spp.c:145: undefined reference to esp_bt_gap_set_scan_mode' c:/users/scott/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\scott\Documents\Arduino\Sketches\libraries\PS3_Controller_Host\src/ps3_spp.c:150: undefined reference toesp_spp_start_srv' c:/users/scott/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\scott\AppData\Local\Temp\arduino\sketches\6D68F073EC1C59ED87F32A5982E1BA24\libraries\PS3_Controller_Host\ps3_spp.c.o: in function ps3_spp_init': c:\Users\scott\Documents\Arduino\Sketches\libraries\PS3_Controller_Host\src/ps3_spp.c:68: undefined reference toesp_spp_register_callback' c:/users/scott/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\scott\Documents\Arduino\Sketches\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

scottwing56 commented 1 year ago

Duplicate issue