StryderUK / BluetoothHID

ESP32 Bluetooth HID Arduino library with DualShock 4 example
Apache License 2.0
23 stars 4 forks source link

error during compilation #2

Open spilz87 opened 2 years ago

spilz87 commented 2 years ago

hello,

it seems to be exactely what i'm looking for, thanks for your work.

I installed ESP32 on arduino, but it fail to compile exemple :(

Arduino : 1.8.15 Hourly Build 2021/05/31 10:33 (Windows 10), Carte : "ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, Core 1, Core 1, None"

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_act.c: In function 'bta_hh_api_enable':

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_act.c:92:30: warning: passing argument 1 of 'HID_HostSetSecurityLevel' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

 HID_HostSetSecurityLevel("", p_data->api_enable.sec_mask);

                          ^~

In file included from C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta/bta_hh_api.h:22,

             from C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_act.c:38:

c:\users\reilh\onedrive\documents\arduino\libraries\bluetoothhid-main\src\bta_hh\stack\hidh_api.h:206:51: note: expected 'char ' but argument is of type 'const char '

extern tHID_STATUS HID_HostSetSecurityLevel( char serv_name[], UINT8 sec_lvl );

                                          ~~~~~^~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_act.c: In function 'bta_hh_sdp_cmpl':

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_act.c:436:38: warning: passing argument 1 of 'HID_HostSetSecurityLevel' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

         HID_HostSetSecurityLevel("", p_cb->sec_mask);

                                  ^~

In file included from C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta/bta_hh_api.h:22,

             from C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_act.c:38:

c:\users\reilh\onedrive\documents\arduino\libraries\bluetoothhid-main\src\bta_hh\stack\hidh_api.h:206:51: note: expected 'char ' but argument is of type 'const char '

extern tHID_STATUS HID_HostSetSecurityLevel( char serv_name[], UINT8 sec_lvl );

                                          ~~~~~^~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_act.c: In function 'bta_hh_get_w4_event':

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_act.c:1227:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "BTA_HH_GET_RPT_EVT";

            ^~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_act.c:1229:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "BTA_HH_SET_RPT_EVT";

            ^~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_act.c:1231:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "BTA_HH_GET_PROTO_EVT";

            ^~~~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_act.c:1233:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "BTA_HH_SET_PROTO_EVT";

            ^~~~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_act.c:1235:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "BTA_HH_GET_IDLE_EVT";

            ^~~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_act.c:1237:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "BTA_HH_SET_IDLE_EVT";

            ^~~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_act.c:1239:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "BTA_HH_OPEN_EVT";

            ^~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_act.c:1241:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "Unknown event";

            ^~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_act.c: In function 'bta_hh_hid_event_name':

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_act.c:1250:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "HID_HDEV_EVT_OPEN";

            ^~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_act.c:1252:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "HID_HDEV_EVT_CLOSE";

            ^~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_act.c:1254:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "HID_HDEV_EVT_RETRYING";

            ^~~~~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_act.c:1256:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "HID_HDEV_EVT_INTR_DATA";

            ^~~~~~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_act.c:1258:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "HID_HDEV_EVT_INTR_DATC";

            ^~~~~~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_act.c:1260:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "HID_HDEV_EVT_CTRL_DATA";

            ^~~~~~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_act.c:1262:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "HID_HDEV_EVT_CTRL_DATC";

            ^~~~~~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_act.c:1264:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "HID_HDEV_EVT_HANDSHAKE";

            ^~~~~~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_act.c:1266:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "HID_HDEV_EVT_VC_UNPLUG";

            ^~~~~~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_act.c:1268:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "Unknown HID event";

            ^~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_main.c: In function 'bta_hh_evt_code':

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_main.c:479:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "BTA_HH_API_DISABLE_EVT";

            ^~~~~~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_main.c:481:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "BTA_HH_API_ENABLE_EVT";

            ^~~~~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_main.c:483:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "BTA_HH_API_OPEN_EVT";

            ^~~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_main.c:485:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "BTA_HH_API_CLOSE_EVT";

            ^~~~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_main.c:487:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "BTA_HH_INT_OPEN_EVT";

            ^~~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_main.c:489:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "BTA_HH_INT_CLOSE_EVT";

            ^~~~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_main.c:491:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "BTA_HH_INT_HANDSK_EVT";

            ^~~~~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_main.c:493:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "BTA_HH_INT_DATA_EVT";

            ^~~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_main.c:495:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "BTA_HH_INT_CTRL_DATA";

            ^~~~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_main.c:497:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "BTA_HH_API_WRITE_DEV_EVT";

            ^~~~~~~~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_main.c:499:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "BTA_HH_SDP_CMPL_EVT";

            ^~~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_main.c:501:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "BTA_HH_DISC_CMPL_EVT";

            ^~~~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_main.c:503:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "BTA_HH_API_MAINT_DEV_EVT";

            ^~~~~~~~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_main.c:505:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "BTA_HH_API_GET_DSCP_EVT";

            ^~~~~~~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_main.c:507:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "BTA_HH_OPEN_CMPL_EVT";

            ^~~~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_main.c:527:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "unknown HID Host event code";

            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_main.c: In function 'bta_hh_state_code':

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_main.c:544:15: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return"BTA_HH_NULL_ST";

           ^~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_main.c:546:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "BTA_HH_IDLE_ST";

            ^~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_main.c:548:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "BTA_HH_W4_CONN_ST";

            ^~~~~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_main.c:550:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "BTA_HH_CONN_ST";

            ^~~~~~~~~~~~~~~~

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh\bta_hh_main.c:556:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

     return "unknown HID Host state";

            ^~~~~~~~~~~~~~~~~~~~~~~~

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\BluetoothHID-main\bta_hh\bta_hh_act.c.o:(.literal.bta_hh_di_sdp_cback+0x1c): undefined reference to `HID_HostGetSDPRecord'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\BluetoothHID-main\bta_hh\bta_hh_act.c.o:(.literal.bta_hh_sdp_cback+0x4): undefined reference to `HID_HostAddDev'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\BluetoothHID-main\bta_hh\bta_hh_act.c.o:(.literal.bta_hh_api_enable+0x8): undefined reference to `HID_HostInit'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\BluetoothHID-main\bta_hh\bta_hh_act.c.o:(.literal.bta_hh_api_enable+0xc): undefined reference to `HID_HostSetSecurityLevel'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\BluetoothHID-main\bta_hh\bta_hh_act.c.o:(.literal.bta_hh_api_enable+0x10): undefined reference to `HID_HostRegister'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\BluetoothHID-main\bta_hh\bta_hh_act.c.o:(.literal.bta_hh_disc_cmpl+0x0): undefined reference to `HID_HostDeregister'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\BluetoothHID-main\bta_hh\bta_hh_act.c.o:(.literal.bta_hh_sdp_cmpl+0x4): undefined reference to `HID_HostOpenDev'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\BluetoothHID-main\bta_hh\bta_hh_act.c.o:(.literal.bta_hh_sdp_cmpl+0x8): undefined reference to `HID_HostRemoveDev'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\BluetoothHID-main\bta_hh\bta_hh_act.c.o:(.literal.bta_hh_api_disc_act+0x0): undefined reference to `HID_HostCloseDev'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\BluetoothHID-main\bta_hh\bta_hh_act.c.o:(.literal.bta_hh_open_cmpl_act+0x0): undefined reference to `HID_HostWriteDev'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\BluetoothHID-main\bta_hh\bta_hh_act.c.o: in function `bta_hh_di_sdp_cback':

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh/bta_hh_act.c:298: undefined reference to `HID_HostGetSDPRecord'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\BluetoothHID-main\bta_hh\bta_hh_act.c.o: in function `bta_hh_sdp_cback':

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh/bta_hh_act.c:223: undefined reference to `HID_HostAddDev'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\BluetoothHID-main\bta_hh\bta_hh_act.c.o: in function `bta_hh_api_enable':

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh/bta_hh_act.c:88: undefined reference to `HID_HostInit'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh/bta_hh_act.c:92: undefined reference to `HID_HostSetSecurityLevel'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh/bta_hh_act.c:92: undefined reference to `HID_HostRegister'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\BluetoothHID-main\bta_hh\bta_hh_act.c.o: in function `bta_hh_disc_cmpl':

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh/bta_hh_act.c:177: undefined reference to `HID_HostDeregister'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\BluetoothHID-main\bta_hh\bta_hh_act.c.o: in function `bta_hh_start_sdp':

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh/bta_hh_act.c:355: undefined reference to `HID_HostAddDev'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\BluetoothHID-main\bta_hh\bta_hh_act.c.o: in function `bta_hh_sdp_cmpl':

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh/bta_hh_act.c:436: undefined reference to `HID_HostSetSecurityLevel'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh/bta_hh_act.c:439: undefined reference to `HID_HostOpenDev'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh/bta_hh_act.c:445: undefined reference to `HID_HostRemoveDev'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh/bta_hh_act.c:461: undefined reference to `HID_HostRemoveDev'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\BluetoothHID-main\bta_hh\bta_hh_act.c.o: in function `bta_hh_api_disc_act':

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh/bta_hh_act.c:509: undefined reference to `HID_HostCloseDev'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\BluetoothHID-main\bta_hh\bta_hh_act.c.o: in function `bta_hh_open_cmpl_act':

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh/bta_hh_act.c:563: undefined reference to `HID_HostWriteDev'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\BluetoothHID-main\bta_hh\bta_hh_act.c.o: in function `bta_hh_open_failure':

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh/bta_hh_act.c:804: undefined reference to `HID_HostCloseDev'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\BluetoothHID-main\bta_hh\bta_hh_act.c.o: in function `bta_hh_close_act':

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh/bta_hh_act.c:853: undefined reference to `HID_HostCloseDev'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh/bta_hh_act.c:879: undefined reference to `HID_HostRemoveDev'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\BluetoothHID-main\bta_hh\bta_hh_act.c.o: in function `bta_hh_maint_dev_act':

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh/bta_hh_act.c:956: undefined reference to `HID_HostAddDev'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh/bta_hh_act.c:998: undefined reference to `HID_HostRemoveDev'

c:/users/reilh/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\BluetoothHID-main\bta_hh\bta_hh_act.c.o: in function `bta_hh_write_dev_act':

C:\Users\reilh\OneDrive\Documents\Arduino\libraries\BluetoothHID-main\src\bta_hh/bta_hh_act.c:1054: undefined reference to `HID_HostWriteDev'

collect2.exe: error: ld returned 1 exit status

exit status 1

Erreur de compilation pour la carte ESP32 Dev Module

Ce rapport pourrait être plus détaillé avec l'option "Afficher les résultats détaillés de la compilation" activée dans Fichier -> Préférences.

spilz87 commented 2 years ago

any idea ??

thanks in advance

fabriofabrio commented 1 year ago

Hi first time installation this library, my compiler seem same errors.

solution: in board manager: whitout disinstallation of current esp32 sdk version yuo need to instal 2.0 alpha version

so to provide to past sdk files as guide line