Skip to content

Error for missing AVR libraries #3371

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

Closed
KartavyaBhatt opened this issue Jun 23, 2017 · 2 comments
Closed

Error for missing AVR libraries #3371

KartavyaBhatt opened this issue Jun 23, 2017 · 2 comments

Comments

@KartavyaBhatt
Copy link

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
Copy link
Collaborator

Makuna commented Jun 23, 2017

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
Copy link
Collaborator

devyte commented Sep 5, 2017

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.

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

3 participants