me-no-dev / AsyncTCP

Async TCP Library for ESP32
GNU Lesser General Public License v3.0
757 stars 439 forks source link

fatal error: interrupts.h: No such file or directory #81

Closed mm108 closed 4 years ago

mm108 commented 5 years ago

I get this error when I try to compile on PlatformIO. The framework is Arduino. Is there any known fix for this?

In file included from .pio\libdeps\esp32dev\ESPAsyncTCP_ID305\src\SyncClient.h:32:0,
                 from .pio\libdeps\esp32dev\ESPAsyncTCP_ID305\src\SyncClient.cpp:22:
.pio\libdeps\esp32dev\ESPAsyncTCP_ID305\src/async_config.h:13:0: note: this is the location of the previous definition
 #define TCP_MSS (1460)
 ^
.pio\libdeps\esp32dev\ESPAsyncTCP_ID305\src\SyncClient.cpp:25:24: fatal error: interrupts.h: No such file or directory

********************************************************************
* Looking for interrupts.h dependency? Check our library registry!
atanisoft commented 5 years ago

@m-menon The latest PlatformIO Core broke LDF it seems and your code is trying to compile both the ESP32 and ESP8266 versions. The above compilation failure can be fixed with this addition to your platformio.ini file:

lib_compat_mode=strict

With this flag LDF ignores libraries which do not apply to the current platform (among other checks).

mm108 commented 5 years ago

@atanisoft okay cool. I'll try this method as well.

mvadu commented 5 years ago

Thank you @atanisoft It worked like magic.. I spent hours re-installing the platformio IDE, deleting cached libs etc until I saw your suggestion.

stale[bot] commented 4 years ago

[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

stale[bot] commented 4 years ago

[STALE_DEL] This stale issue has been automatically closed. Thank you for your contributions.

Wafiifaw55 commented 3 years ago

@atanisoft Hi dear I have same problem, but I don't understand the solution you tell us, can you explain the steps please?