tobozo / ESP32-Chimera-Core

ESP32-Chimera-Core 👾 is an arduino library for M5Stack, Odroid-Go, D-Duino-32-XS and other ESP32/TFT/SD bundles
Other
164 stars 13 forks source link

i2s_std.h error (not found) #87

Open mrebersv opened 2 months ago

mrebersv commented 2 months ago

I recently installed the ESP32-Chimera-Core as needed by https://github.com/tobozo/ESP32-GifPlayer/

Unfortunately, I get an error when Chimera-Core tries to load bsp_board.c (error below

In file included from c:\Users\matth\OneDrive\Documents\Arduino\libraries\ESP32-Chimera-Core\src\drivers\ESP32-S3-Box\Audio\src\bsp_board.c:11:
c:\Users\matth\OneDrive\Documents\Arduino\libraries\ESP32-Chimera-Core\src\drivers\ESP32-S3-Box\Audio\src\bsp_i2s.h:19:14: fatal error: driver/i2s_std.h: No such file or directory
     #include "driver/i2s_std.h"
              ^~~~~~~~~~~~~~~~~~
compilation terminated.
exit status 1

Compilation error: exit status 1

Any idea if this is an incompatibility w/r/t other libraries being updated or if this should've worked and I'm doing something wrong and need to install a dependency that I thought would be installed with the "install dependencies" option within the Arduino IDE?

tobozo commented 2 months ago

Hi and thanks for your feedback :+1:

Speculation: Chimera-Core esp-adf layer for S3box doesn't support 3.x.x-beta or 3.x.x-rc versions of the espressif core.

I'll need a few more informations to confirm that:

ESP32-S3-Box audio is based on the older esp-adf implementation which uses a soon deprecated I2S/I2C syntax, it'll probably be removed in a further version and replaced by something like arduino-audio-tools

Meanwhile you can try to bypass the error by commenting out the offending include in ESP32-Chimera-Core.hpp, the GIFPlayer app doesn't need audio anyway:

#if defined ARDUINO_ESP32_S3_BOX
  // #include "drivers/ESP32-S3-Box/Audio/esp-adf.hpp"
#endif
mrebersv commented 2 months ago

Thanks for the quick response. That exposes another problem. It appears bsp_board.c is trying to load a file that doesn't exist as pathed:

In file included from c:\Users\matth\OneDrive\Documents\Arduino\libraries\ESP32-Chimera-Core\src\drivers\ESP32-S3-Box\Audio\src\bsp_board.c:11:
c:\Users\matth\OneDrive\Documents\Arduino\libraries\ESP32-Chimera-Core\src\drivers\ESP32-S3-Box\Audio\src\bsp_i2s.h:19:14: fatal error: driver/i2s_std.h: No such file or directory
     #include "driver/i2s_std.h"
              ^~~~~~~~~~~~~~~~~~
compilation terminated.
exit status 1

Compilation error: exit status 1
tobozo commented 2 months ago

please re-read my previous response, I'm not an esper and can only take a guess at what's going on with the little information you provided :wink: