bitluni / ESP32Lib

http://bitluni.net/esp32-vga/
451 stars 79 forks source link

How to deal with "i2s_dev_t does not refer to the unqualified type" #52

Open KopiSoftware opened 4 years ago

KopiSoftware commented 4 years ago

I followed you step to build an arduino ide environment for ESP32VGA, and I got this error when I try to run helloworld prog. Now I have no idea how to fix it. Could you please tell me how to loacte the source of this error. Thank you for your help in advance.


In file included from C:\Users\MECHREV.X8TI\Documents\Arduino\libraries\bitluni_ESP32Lib\src\I2S\I2S.h:18:0,

                 from C:\Users\MECHREV.X8TI\Documents\Arduino\libraries\bitluni_ESP32Lib\src\I2S\I2S.cpp:12:

E:\Program Files (x86)\Arduino\hardware\arduino-esp\esp32/tools/sdk/include/soc/soc/i2s_struct.h:458:18: error: 'i2s_dev_t I2S0', declared using anonymous type, is used but never defined [-fpermissive]

 extern i2s_dev_t I2S0;

                  ^

E:\Program Files (x86)\Arduino\hardware\arduino-esp\esp32/tools/sdk/include/soc/soc/i2s_struct.h:457:3: note: 'typedef volatile struct<anonymous> i2s_dev_t' does not refer to the unqualified type, so it is not used for linkage

 } i2s_dev_t;

   ^

E:\Program Files (x86)\Arduino\hardware\arduino-esp\esp32/tools/sdk/include/soc/soc/i2s_struct.h:459:18: error: 'i2s_dev_t I2S1', declared using anonymous type, is used but never defined [-fpermissive]

 extern i2s_dev_t I2S1;

                  ^

E:\Program Files (x86)\Arduino\hardware\arduino-esp\esp32/tools/sdk/include/soc/soc/i2s_struct.h:457:3: note: 'typedef volatile struct<anonymous> i2s_dev_t' does not refer to the unqualified type, so it is not used for linkage

 } i2s_dev_t;

   ^

exit status 1
PetRatty commented 4 years ago

All the examples work for me. Are you using the newest version of the Arduino IDE? try an older version and install the VGAlib via the Arduino library manager. I had errors all over the place when compiling anything for the ESP32, going back to an older version worked This may answer the question but on how to fix it, I have no idea