Problems with compile error on latest version #986
Replies: 3 comments
-
BTW .. I have tried older version of the platform = [email protected] , but still got the same error ! The variable 'm_i2s_chan_cfg' seem only to be defined in version 5 in the Audio.h but that is ´not matching the Audio.cpp ? #if ESP_IDF_VERSION_MAJOR == 5 |
Beta Was this translation helpful? Give feedback.
-
This is the last version that works: The bug is known and will be fixed with V3.2.0-rc2. |
Beta Was this translation helpful? Give feedback.
-
Thx .. I'll wait and switch to V3.2.0 when available, as I need / use features in the espressif32 6.10.0 .. Until that I'll use the esphome fork with less features. |
Beta Was this translation helpful? Give feedback.
-
I'm using ESP32-S3 / MAX98357A on Clion, PlatformIO, Arduino Framework and latest platform = [email protected]
The latest ESP32-AudioI2S lib seem to be installed correctly in the platformio.ini
lib_deps =
${common.lib_deps}
https://github.com/schreibfaul1/ESP32-audioI2S.git
But when I build the project using this audio lib I see e lots of errors from compiling the Audio.cpp
.pio/libdeps/prod/ESP32-audioI2S/src/Audio.cpp: In constructor 'Audio::Audio(uint8_t)':
.pio/libdeps/prod/ESP32-audioI2S/src/Audio.cpp:182:5: error: 'm_i2s_chan_cfg' was not declared in this scope
m_i2s_chan_cfg.id = (i2s_port_t)m_i2s_num; // I2S_NUM_AUTO, I2S_NUM_0, I2S_NUM_1
^~~~~~~~~~~~~~
Compiling .pio\build\prod\FrameworkArduino\IPv6Address.cpp.o
.pio/libdeps/prod/ESP32-audioI2S/src/Audio.cpp:182:5: note: suggested alternative: 'm_i2s_config'
m_i2s_chan_cfg.id = (i2s_port_t)m_i2s_num; // I2S_NUM_AUTO, I2S_NUM_0, I2S_NUM_1
^~~~~~~~~~~~~~
m_i2s_config
.pio/libdeps/prod/ESP32-audioI2S/src/Audio.cpp:183:36: error: 'I2S_ROLE_MASTER' was not declared in this scope
m_i2s_chan_cfg.role = I2S_ROLE_MASTER; // I2S controller master role, bclk and lrc signal will be set to output
^~~~~~~~~~~~~~~
.pio/libdeps/prod/ESP32-audioI2S/src/Audio.cpp:183:36: note: suggested alternative: 'I2S_MODE_MASTER'
m_i2s_chan_cfg.role = I2S_ROLE_MASTER; // I2S controller master role, bclk and lrc signal will be set to output
^~~~~~~~~~~~~~~
I2S_MODE_MASTER
What could be the reason for these errors ?
Beta Was this translation helpful? Give feedback.
All reactions