esp8266 / Arduino

ESP8266 core for Arduino
GNU Lesser General Public License v2.1
16.05k stars 13.33k forks source link

Error for missing AVR libraries #3371

Closed KartavyaBhatt closed 7 years ago

KartavyaBhatt commented 7 years ago

Basic Infos

I have properly installed Arduino IDE and so I have all the AVR libraries under /home/joker/arduino-1.8.2/hardware/tools/avr/avr/include (My username is joker)

Description

Error message : /home/joker/Arduino/libraries/Arduino-IRremote-master/IRremote.cpp:28:27: fatal error: avr/interrupt.h: No such file or directory

include <avr/interrupt.h>

Settings in IDE

Module: SparkFun ESP8266 Thing CPU Frequency: 80Mhz

Sketch

#include <IRremote.h>

void setup() {
}

void loop() {
}
Makuna commented 7 years ago

The AVR directory should be your hint; including a platforms specific header (everything under AVR is specific to the AVR chipset) will not work. What methods are you using from that header? You maybe able to just wrap the include with a #ifdef ARDUINO_ARCH_AVR

devyte commented 7 years ago

This looks like a user error. Usage of the ESP has nothing to do with AVR. Please research how to install and use the core libs properly, e.g.: readthedocs, install via board manager or use git version. Closing this.