Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compilation error with ESP32 DIV Kit #97

Closed
pran111 opened this issue Apr 24, 2019 · 7 comments
Closed

compilation error with ESP32 DIV Kit #97

pran111 opened this issue Apr 24, 2019 · 7 comments

Comments

@pran111
Copy link

pran111 commented Apr 24, 2019

I Installed Ethernet 2.0.0 lib and try to compile example "webRepeatingClient" but it gaves following errors :

In file included from C:\Users\Akanksha\Documents\Arduino\libraries\Ethernet-2.0.0\examples\WebClientRepeating\WebClientRepeating.ino:26:0:

E:\Pranit\ArduinoInstalled\Arduino\libraries\Ethernet\src/Ethernet.h:258:2: error: invalid abstract return type 'EthernetClient'

EthernetClient available();

^

E:\Pranit\ArduinoInstalled\Arduino\libraries\Ethernet\src/Ethernet.h:214:7: note: because the following virtual functions are pure within 'EthernetClient':

class EthernetClient : public Client {

   ^

In file included from C:\Users\Akanksha\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.2\cores\esp32/Arduino.h:157:0,

             from C:\Users\Akanksha\AppData\Local\Temp\arduino_build_517046\sketch\WebClientRepeating.ino.cpp:1:

C:\Users\Akanksha\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.2\cores\esp32/Client.h:31:17: note: virtual int Client::connect(IPAddress, uint16_t, int)

 virtual int connect(IPAddress ip, uint16_t port, int timeout) =0;

             ^

C:\Users\Akanksha\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.2\cores\esp32/Client.h:32:17: note: virtual int Client::connect(const char*, uint16_t, int)

 virtual int connect(const char *host, uint16_t port, int timeout) =0;

             ^

In file included from C:\Users\Akanksha\Documents\Arduino\libraries\Ethernet-2.0.0\examples\WebClientRepeating\WebClientRepeating.ino:26:0:

E:\Pranit\ArduinoInstalled\Arduino\libraries\Ethernet\src/Ethernet.h:259:2: error: invalid abstract return type 'EthernetClient'

EthernetClient accept();

^

WebClientRepeating:38:16: error: cannot declare variable 'client' to be of abstract type 'EthernetClient'

EthernetClient client;

            ^

Can any one Face this issue.?

Screenshot_12

@JAndrassy
Copy link
Contributor

JAndrassy commented Apr 24, 2019

in the ESP32 core they changed the Arduino API class Client. error is there. try version 1.0.1 (it has a problem with Server class)
espressif/arduino-esp32@9a9ff62#commitcomment-33292990

@thujer
Copy link

thujer commented May 14, 2019

I use Platformio with VSCode and Arduino libraries. I have same problem with compilation Ethernet library for ESP32 platform. It lasts aproximately last week. Before it was ok and I no change libraries version. I tried to use an older or newer version of Arduino (nightbuild, 1.8.9, 1.8.0). Install Arduino with Platformio on clean OS (XUbuntu 16.04 and 18.04) under VirtualBox, but problem is still same. When I tried to downgrade C/C++ library in Platformio, after restart it install back last version (after reload I mean, that it use still last plugin version.

Have anybody similar experience?

How complicated can be repair this problem in Ethernet library?

Screenshot_2019-05-14_17-03-19

@JAndrassy
Copy link
Contributor

it is a problem of the ESP32 package. they still didn't fix it. create an issue there

@thujer
Copy link

thujer commented May 14, 2019

Thanks Jandrassy, but problem is still in any examples which use Ethernet library (not from ESP32 package), for example WebClient

Screenshot_2019-05-14_18-24-17

@JAndrassy
Copy link
Contributor

the ESP32 core has modified Arduino base class Client. it breaks compatibility by adding new pure virtual methods not implemented by the rest of the arduino world
espressif/arduino-esp32#2755

@thujer
Copy link

thujer commented May 15, 2019

Thanks Jandrassy for mentioned this problem in Espressif forum

@per1234
Copy link
Contributor

per1234 commented Sep 16, 2019

Fixed by espressif/arduino-esp32#3191

@per1234 per1234 closed this as completed Sep 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants