esphome / firmware

Holds firmware configuration files for projects that the ESPHome team provides.
https://esphome.io/projects
Apache License 2.0
128 stars 93 forks source link

Cannot compile the firmware with Esphome 2023.11.6 #111

Closed lajoshanko closed 7 months ago

lajoshanko commented 7 months ago

Getting the following error during the compile:

src/main.cpp: In function 'void setup()':
src/main.cpp:651:44: error: invalid new-expression of abstract class type 'esphome::esp_adf::ESPADFSpeaker'
   box_speaker = new esp_adf::ESPADFSpeaker();
                                            ^
In file included from src/esphome.h:28,
                 from src/main.cpp:3:
src/esphome/components/esp_adf/speaker/esp_adf_speaker.h:20:7: note:   because the following virtual functions are pure within 'esphome::esp_adf::ESPADFSpeaker':
 class ESPADFSpeaker : public ESPADFPipeline, public speaker::Speaker, public Component {
       ^~~~~~~~~~~~~
In file included from src/esphome/components/esp_adf/speaker/esp_adf_speaker.h:10,
                 from src/esphome.h:28,
                 from src/main.cpp:3:
src/esphome/components/speaker/speaker.h:21:16: note:   'virtual bool esphome::speaker::Speaker::has_buffered_data() const'
   virtual bool has_buffered_data() const = 0;
hugobloem commented 7 months ago

I got this error as well at first, but after re-compiling it seems to work.

ardenking commented 7 months ago

Having the same issue did you resolve ?

lajoshanko commented 7 months ago

Strange, but true, recompiling solved it.

lajoshanko commented 7 months ago

Can’t reproduce anymore