Topic: compile error for ESP8266 platform in Arduino IDE

Attempting to compile a blank sketch for ESP8266 platform using the Arduino IDE and I get the following error -

In file included from /home/eharman/.arduino15/packages/esp8266/hardware/esp8266/2.4.1/tools/sdk/libc/xtensa-lx106-elf/include/dirent.h:6:0,
                 from /home/eharman/Arduino/libraries/wolfssl-3.14.0/wolfssl/wolfcrypt/wc_port.h:287,
                 from /home/eharman/Arduino/libraries/wolfssl-3.14.0/wolfssl/wolfcrypt/types.h:28,
                 from /home/eharman/Arduino/libraries/wolfssl-3.14.0/wolfssl/internal.h:28,
                 from /home/eharman/Arduino/libraries/wolfssl-3.14.0/internal.c:32:
/home/eharman/.arduino15/packages/esp8266/hardware/esp8266/2.4.1/tools/sdk/libc/xtensa-lx106-elf/include/sys/dirent.h:10:2: error: #error "<dirent.h> not supported"
#error "<dirent.h> not supported"

There is a further error regarding sys/socket.h not found too.

I tried setting a #define NO_WOLFSSL_DIR but that made no differrence.

Apologies if this is a stupid error on my part, am significantly inexperienced in C programming,
/Ed

Share

Re: compile error for ESP8266 platform in Arduino IDE

Hi - after much head scratching I realised I needed to uncomment the Arduino define in settings.h ....

/Ed

Share

Re: compile error for ESP8266 platform in Arduino IDE

Hi eharman,

So sorry you encountered some issues with Arduino, we tried to provide a script for re-arranging our library to make this easier for users and a README to alert them to the need to uncomment the ARDUINO define in <wolfssl-root>/IDE/ARDUINO.
Helpful links for other users that experience your same issues are:

https://github.com/wolfSSL/wolfssl/tree … DE/ARDUINO
https://github.com/wolfSSL/wolfssl/blob … arduino.sh
https://github.com/wolfSSL/wolfssl/blob … /README.md

Regards,

Kaleb