pschatzmann / ESP32-A2DP

A Simple ESP32 Bluetooth A2DP Library (to implement a Music Receiver or Sender) that supports Arduino, PlatformIO and Espressif IDF
Apache License 2.0
1.65k stars 270 forks source link

c:\Users\LENOVO\Documents\Arduino\libraries\ESP32-A2DP\src\BluetoothA2DPSource.cpp:538:42: error: missing binary operator before token "(" #if ESP_IDF_VERSION > ESP_IDF_VERSION_VAL(4, 4, 4) ^ exit status 1 Compilation error: exit status 1 #483

Closed dhdhdhdhdhdhhd closed 1 year ago

dhdhdhdhdhdhhd commented 1 year ago

Problem Description

error

Device Description

esp32

Sketch

c:\Users\LENOVO\Documents\Arduino\libraries\ESP32-A2DP\src\BluetoothA2DPSource.cpp:538:42: error: missing binary operator before token "("
 #if ESP_IDF_VERSION > ESP_IDF_VERSION_VAL(4, 4, 4)
                                          ^

exit status 1

Compilation error: exit status 1

Other Steps to Reproduce

No response

Provide your Version of the EP32 Arduino Core (or the IDF Version)

2.0.4

I have checked existing issues, discussions and online documentation

pschatzmann commented 1 year ago

Why don't you just upgrade to a recent version ? We are currently at 2.0.14!

pschatzmann commented 1 year ago

I tried to reproduced your error with ESP32 2.0.4 and Arduino IDE 2.2.1 and I can't reproduce this!

dhdhdhdhdhdhhd commented 1 year ago

我试图用 ESP32 2.0.4 和 Arduino IDE 2.2.1 重现您的错误,但我无法重现这个! I have already commented out some code, and it can compile successfully. The commented-out code is the following: and it comes from BluetoothA2DPSource.cpp:538 /*#if ESP_IDF_VERSION > ESP_IDF_VERSION_VAL(4, 4, 4) case ESP_BT_GAP_ACL_CONN_CMPL_STAT_EVT: ESP_LOGI( BT_AV_TAG,"ESP_BT_GAP_ACL_CONN_CMPL_STAT_EVT"); break;

case ESP_BT_GAP_MODE_CHG_EVT: ESP_LOGI(BT_AV_TAG, "ESP_BT_GAP_MODE_CHG_EVT mode:%d", param->mode_chg.mode); break;

endif*/

pschatzmann commented 1 year ago

I do not see any reason why you would need to comment this out and would rather like to understand and reproduce why you are getting this error in order to fix it. What Arduino Version are you using ?

pschatzmann commented 1 year ago

Are you using the right offical board url ? https://espressif.github.io/arduino-esp32/package_esp32_index.json

pschatzmann commented 1 year ago

Just tried to reproduce with Arduino 1.8.19 and I see that ESP32 2.0.4 is not supported! So I am closing this issue since this is working fine with all supported versions

dhdhdhdhdhdhhd commented 1 year ago

Just tried to reproduce with Arduino 1.8.19 and I see that ESP32 2.0.4 is not supported! So I am closing this issue since this is working fine with all supported versions

2.2.2

dhdhdhdhdhdhhd commented 1 year ago

Just tried to reproduce with Arduino 1.8.19 and I see that ESP32 2.0.4 is not supported! So I am closing this issue since this is working fine with all supported versions

Arduino--2.2.2 esp32--1.0.4

pschatzmann commented 1 year ago

Strange: I cant reproduce your issue. Why are you still using this old version which has a lot of bugs that have been fixed

dhdhdhdhdhdhhd commented 1 year ago

Thank you very much, the above compilation error problem has been solved, but there is another problem, the sound quality of the music played is relatively poor.

dhdhdhdhdhdhhd commented 1 year ago

Strange: I cant reproduce your issue. Why are you still using this old version which has a lot of bugs that have been fixed

Thank you very much, the above compilation error problem has been solved, but there is another problem, the sound quality of the music played is relatively poor.

pschatzmann commented 1 year ago

Did you test the audio output properly before using my library ? I am getting perfect quality!

truedat101 commented 7 months ago

Oddly , I see this same problem on 2.0.14 ESP and IDE 2.1.0.