# IR-Remote Node error eith MCU8266 E12

**URL:** <https://forum.xod.io/t/ir-remote-node-error-eith-mcu8266-e12/4043>\
**Category:** Install/Upload Problems\
**Created:** [May 31, 2020, 5:54am UTC](https://forum.xod.io/t/ir-remote-node-error-eith-mcu8266-e12/4043 "2020-05-31T05:54:38Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![gcabral](https://avatars.discourse-cdn.com/v4/letter/g/8491ac/32.png) [@gcabral](https://forum.xod.io/u/gcabral)\
**Post date:** [May 31, 2020, 5:54am UTC](https://forum.xod.io/t/ir-remote-node-error-eith-mcu8266-e12/4043/1 "2020-05-31T05:54:38Z")

</div>

When I include the node ir-read from g gweimer/ir-remote library in my patch I receive an error.

I cheched the [Error using gweimer/ir-remote library](https://forum.xod.io/t/error-using-gweimer-ir-remote-library/2208/2).

The #pragma XOD require “[https://github.com/z3t0/Arduino-IRremote](https://github.com/z3t0/Arduino-IRremote)” command is there however I get the following error:

Begin compiling code for the board NodeMCU 1.0 (ESP-12E Module) 📦

Using board ‘nodemcuv2’ from platform in folder: C:\Users\gcabr\Documents\XOD\__packages_\_\packages\esp8266\hardware\esp8266\2.4.3  
Using core ‘esp8266’ from platform in folder: C:\Users\gcabr\Documents\XOD\__packages_\_\packages\esp8266\hardware\esp8266\2.4.3

Detecting libraries used…

“C:\Users\gcabr\Documents\XOD\ **packages** \packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++” -D\_\_ets\_\_ -DICACHE\_FLASH -U\_\_STRICT\_ANSI\_\_ “-IC:\Users\gcabr\Documents\XOD\ **packages** \packages\esp8266\hardware\esp8266\2.4.3/tools/sdk/include” “-IC:\Users\gcabr\Documents\XOD\ **packages** \packages\esp8266\hardware\esp8266\2.4.3/tools/sdk/lwip2/include” “-IC:\Users\gcabr\Documents\XOD\ **packages** \packages\esp8266\hardware\esp8266\2.4.3/tools/sdk/libc/xtensa-lx106-elf/include” “-IC:\Users\gcabr\AppData\Local\Temp\arduino-sketch-D95978DDAB91A24993F784E61621E7FA/core” -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF\_CPU=80000000L -DLWIP\_OPEN\_SRC -DTCP\_MSS=536 -DARDUINO=10607 -DARDUINO\_ESP8266\_NODEMCU -DARDUINO\_ARCH\_ESP8266 “-DARDUINO\_BOARD=“ESP8266\_NODEMCU”” -DESP8266 “-IC:\Users\gcabr\Documents\XOD\ **packages** \packages\esp8266\hardware\esp8266\2.4.3\cores\esp8266” “-IC:\Users\gcabr\Documents\XOD\ **packages** \packages\esp8266\hardware\esp8266\2.4.3\variants\nodemcu” “C:\Users\gcabr\AppData\Local\Temp\arduino-sketch-D95978DDAB91A24993F784E61621E7FA\sketch\xod\_1590903177628\_sketch.ino.cpp” -o nul

Alternatives for IRremote.h: [Arduino\_IRremote@2.2.3]  
ResolveLibrary(IRremote.h)  
-\> candidates: [Arduino\_IRremote@2.2.3]

“C:\Users\gcabr\Documents\XOD\ **packages** \packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++” -D\_\_ets\_\_ -DICACHE\_FLASH -U\_\_STRICT\_ANSI\_\_ “-IC:\Users\gcabr\Documents\XOD\ **packages** \packages\esp8266\hardware\esp8266\2.4.3/tools/sdk/include” “-IC:\Users\gcabr\Documents\XOD\ **packages** \packages\esp8266\hardware\esp8266\2.4.3/tools/sdk/lwip2/include” “-IC:\Users\gcabr\Documents\XOD\ **packages** \packages\esp8266\hardware\esp8266\2.4.3/tools/sdk/libc/xtensa-lx106-elf/include” “-IC:\Users\gcabr\AppData\Local\Temp\arduino-sketch-D95978DDAB91A24993F784E61621E7FA/core” -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF\_CPU=80000000L -DLWIP\_OPEN\_SRC -DTCP\_MSS=536 -DARDUINO=10607 -DARDUINO\_ESP8266\_NODEMCU -DARDUINO\_ARCH\_ESP8266 “-DARDUINO\_BOARD=“ESP8266\_NODEMCU”” -DESP8266 “-IC:\Users\gcabr\Documents\XOD\ **packages** \packages\esp8266\hardware\esp8266\2.4.3\cores\esp8266” “-IC:\Users\gcabr\Documents\XOD\ **packages** \packages\esp8266\hardware\esp8266\2.4.3\variants\nodemcu” “-IC:\Users\gcabr\AppData\Local\Temp\xod\_temp\_sketchbookYhjUIl\libraries\Arduino\_IRremote” “C:\Users\gcabr\AppData\Local\Temp\arduino-sketch-D95978DDAB91A24993F784E61621E7FA\sketch\xod\_1590903177628\_sketch.ino.cpp” -o nul

“C:\Users\gcabr\Documents\XOD\ **packages** \packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++” -D\_\_ets\_\_ -DICACHE\_FLASH -U\_\_STRICT\_ANSI\_\_ “-IC:\Users\gcabr\Documents\XOD\ **packages** \packages\esp8266\hardware\esp8266\2.4.3/tools/sdk/include” “-IC:\Users\gcabr\Documents\XOD\ **packages** \packages\esp8266\hardware\esp8266\2.4.3/tools/sdk/lwip2/include” “-IC:\Users\gcabr\Documents\XOD\ **packages** \packages\esp8266\hardware\esp8266\2.4.3/tools/sdk/libc/xtensa-lx106-elf/include” “-IC:\Users\gcabr\AppData\Local\Temp\arduino-sketch-D95978DDAB91A24993F784E61621E7FA/core” -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF\_CPU=80000000L -DLWIP\_OPEN\_SRC -DTCP\_MSS=536 -DARDUINO=10607 -DARDUINO\_ESP8266\_NODEMCU -DARDUINO\_ARCH\_ESP8266 “-DARDUINO\_BOARD=“ESP8266\_NODEMCU”” -DESP8266 “-IC:\Users\gcabr\Documents\XOD\ **packages** \packages\esp8266\hardware\esp8266\2.4.3\cores\esp8266” “-IC:\Users\gcabr\Documents\XOD\ **packages** \packages\esp8266\hardware\esp8266\2.4.3\variants\nodemcu” “-IC:\Users\gcabr\AppData\Local\Temp\xod\_temp\_sketchbookYhjUIl\libraries\Arduino\_IRremote” “C:\Users\gcabr\AppData\Local\Temp\xod\_temp\_sketchbookYhjUIl\libraries\Arduino\_IRremote\IRremote.cpp” -o nul

C:\Users\gcabr\AppData\Local\Temp\xod\_temp\_sketchbookYhjUIl\libraries\Arduino\_IRremote\IRremote.cpp:28:27: fatal error: avr/interrupt.h: No such file or directory  
#include \<avr/interrupt.h\>  
^  
compilation terminated.

Alternatives for avr/interrupt.h: []  
ResolveLibrary(avr/interrupt.h)  
-\> candidates: []  
Multiple libraries were found for “IRremote.h”

Used: C:\Users\gcabr\AppData\Local\Temp\xod\_temp\_sketchbookYhjUIl\libraries\Arduino\_IRremote

Using library Arduino\_IRremote at version 2.2.3 in folder: C:\Users\gcabr\AppData\Local\Temp\xod\_temp\_sketchbookYhjUIl\libraries\Arduino\_IRremote

Error: exit status 1  
Compilation failed.  
Compilation failed  
Command Process exited with code 1  
The generated C++ code contains errors. It can be due to a bad node implementation or if your board is not compatible with XOD runtime code. The original compiler error message is above. Fix C++ errors to continue. If you believe it is a bug, report the problem to XOD developers.

---

<div class="post-metadata">

**Author:** ![gcabral](https://avatars.discourse-cdn.com/v4/letter/g/8491ac/32.png) [@gcabral](https://forum.xod.io/u/gcabral)\
**Post date:** [May 31, 2020, 8:09pm UTC](https://forum.xod.io/t/ir-remote-node-error-eith-mcu8266-e12/4043/2 "2020-05-31T20:09:48Z")

</div>

Any leads from someone who can help?

---

<div class="post-metadata">

**Author:** ![gweimer](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@gweimer](https://forum.xod.io/u/gweimer)\
**Post date:** [June 1, 2020, 3:17pm UTC](https://forum.xod.io/t/ir-remote-node-error-eith-mcu8266-e12/4043/3 "2020-06-01T15:17:28Z")

</div>

Could be requiring something your hardware does not support. Works fine for me on UNO after updating to latest XOD release 0.34.0 (at least it compiles/uploads…I didn’t drag out hardware to test functionality…)

There is also the chance that you have old XOD nodes if you modified any built-in nodes & they don’t work with latest release. You should not have any “xod” or “xod-dev” or similar xod\* folders under `<user_folder>\xod\ __lib__ `

---

<div class="post-metadata">

**Author:** ![gcabral](https://avatars.discourse-cdn.com/v4/letter/g/8491ac/32.png) [@gcabral](https://forum.xod.io/u/gcabral)\
**Post date:** [June 2, 2020, 1:43am UTC](https://forum.xod.io/t/ir-remote-node-error-eith-mcu8266-e12/4043/4 "2020-06-02T01:43:05Z")

</div>

Hi gweimer,

Thank you for the support.

To check it, I unistall the XOD and reinstal it again (release 0.34.0)

I get the following error:

 ![Error_IR](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/f/fa2f70e361ea74fda2be4eb5be39d0c69d7daf5a.png)

---

<div class="post-metadata">

**Author:** ![gcabral](https://avatars.discourse-cdn.com/v4/letter/g/8491ac/32.png) [@gcabral](https://forum.xod.io/u/gcabral)\
**Post date:** [June 2, 2020, 1:59am UTC](https://forum.xod.io/t/ir-remote-node-error-eith-mcu8266-e12/4043/5 "2020-06-02T01:59:57Z")

</div>

I tried with a different board (Arduino Uno R1) and similar result:

 ![Error_IR_2](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/c/cf373bfa49c9ad8e1fa84060824d516e5b7a3d6e.png)

---

<div class="post-metadata">

**Author:** ![gweimer](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@gweimer](https://forum.xod.io/u/gweimer)\
**Post date:** [June 2, 2020, 12:45pm UTC](https://forum.xod.io/t/ir-remote-node-error-eith-mcu8266-e12/4043/6 "2020-06-02T12:45:28Z")

</div>

The first error is access denied trying to install files that XOD needs. You can try manually moving the files.

---

<div class="post-metadata">

**Author:** ![gcabral](https://avatars.discourse-cdn.com/v4/letter/g/8491ac/32.png) [@gcabral](https://forum.xod.io/u/gcabral)\
**Post date:** [June 2, 2020, 12:59pm UTC](https://forum.xod.io/t/ir-remote-node-error-eith-mcu8266-e12/4043/7 "2020-06-02T12:59:01Z")

</div>

Can you share the way to do it please

Thanks in advance

---

<div class="post-metadata">

**Author:** ![gweimer](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@gweimer](https://forum.xod.io/u/gweimer)\
**Post date:** [June 2, 2020, 5:31pm UTC](https://forum.xod.io/t/ir-remote-node-error-eith-mcu8266-e12/4043/8 "2020-06-02T17:31:32Z")

</div>

There error message gives source and destination folders. If source folder still exists, try manually moving it to the destination location.

---

<div class="post-metadata">

**Author:** ![gcabral](https://avatars.discourse-cdn.com/v4/letter/g/8491ac/32.png) [@gcabral](https://forum.xod.io/u/gcabral)\
**Post date:** [June 2, 2020, 5:44pm UTC](https://forum.xod.io/t/ir-remote-node-error-eith-mcu8266-e12/4043/9 "2020-06-02T17:44:35Z")

</div>

> [@gweimer](#):
>
> ere error message gives source and destination folders. If source folder still exists, try manually moving it to the destination location.

I Have don it.  
Initializate the XOD

Try to upload onto a ESP32 DEVKIT V1 -DOIT

I get the followig error:

 ![Error_IR_3](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/c/c0cb34cc45e34e11832d8d7888a74810824bdfff.png)

Onto a ordinarya Arnuito UNO board or onto Arduino Mega boart it goes just fine.

On MCU ESP8266 E12 always the same error and no ideia how to solve it

---

<div class="post-metadata">

**Author:** ![gweimer](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@gweimer](https://forum.xod.io/u/gweimer)\
**Post date:** [June 2, 2020, 5:49pm UTC](https://forum.xod.io/t/ir-remote-node-error-eith-mcu8266-e12/4043/10 "2020-06-02T17:49:51Z")

</div>

You need to scroll back to see what the C++ error is

---

<div class="post-metadata">

**Author:** ![gcabral](https://avatars.discourse-cdn.com/v4/letter/g/8491ac/32.png) [@gcabral](https://forum.xod.io/u/gcabral)\
**Post date:** [June 2, 2020, 5:56pm UTC](https://forum.xod.io/t/ir-remote-node-error-eith-mcu8266-e12/4043/11 "2020-06-02T17:56:07Z")

</div>

Yes of course

The board setup conditions:

 ![Error_IR_4](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/c/cd1286c4e8fb4a28f952e60bdb7cc2ffdc1d7c85.png)

The error

 ![Error_IR_5](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/e/ef842b77e3591c2dd50de3508c0e5516eb468bcc.png)

And all the scroll

Begin compiling code for the board NodeMCU 1.0 (ESP-12E Module) 📦

Using board ‘nodemcuv2’ from platform in folder: C:\Users\gcabr\Documents\XOD\__packages_\_\packages\esp8266\hardware\esp8266\2.4.3  
Using core ‘esp8266’ from platform in folder: C:\Users\gcabr\Documents\XOD\__packages_\_\packages\esp8266\hardware\esp8266\2.4.3

Detecting libraries used…

“C:\Users\gcabr\Documents\XOD\ **packages** \packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++” -D\_\_ets\_\_ -DICACHE\_FLASH -U\_\_STRICT\_ANSI\_\_ “-IC:\Users\gcabr\Documents\XOD\ **packages** \packages\esp8266\hardware\esp8266\2.4.3/tools/sdk/include” “-IC:\Users\gcabr\Documents\XOD\ **packages** \packages\esp8266\hardware\esp8266\2.4.3/tools/sdk/lwip2/include” “-IC:\Users\gcabr\Documents\XOD\ **packages** \packages\esp8266\hardware\esp8266\2.4.3/tools/sdk/libc/xtensa-lx106-elf/include” “-IC:\Users\gcabr\AppData\Local\Temp\arduino-sketch-A61CFF84B99A3B42AE232BCBBD5371C8/core” -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF\_CPU=80000000L -DLWIP\_OPEN\_SRC -DTCP\_MSS=536 -DARDUINO=10607 -DARDUINO\_ESP8266\_NODEMCU -DARDUINO\_ARCH\_ESP8266 “-DARDUINO\_BOARD=“ESP8266\_NODEMCU”” -DESP8266 “-IC:\Users\gcabr\Documents\XOD\ **packages** \packages\esp8266\hardware\esp8266\2.4.3\cores\esp8266” “-IC:\Users\gcabr\Documents\XOD\ **packages** \packages\esp8266\hardware\esp8266\2.4.3\variants\nodemcu” “C:\Users\gcabr\AppData\Local\Temp\arduino-sketch-A61CFF84B99A3B42AE232BCBBD5371C8\sketch\xod\_1591120406615\_sketch.ino.cpp” -o nul

C:\Users\gcabr\AppData\Local\Temp\xod\_temp\_sketchbookNfKqdo\xod\_1591120406615\_sketch\xod\_1591120406615\_sketch.ino:984:22: fatal error: IRremote.h: No such file or directory  
#include \<IRremote.h\>  
^  
compilation terminated.

Alternatives for IRremote.h: []  
ResolveLibrary(IRremote.h)  
-\> candidates: []

Error: exit status 1  
Compilation failed.  
Compilation failed  
Command Process exited with code 1  
The generated C++ code contains errors. It can be due to a bad node implementation or if your board is not compatible with XOD runtime code. The original compiler error message is above. Fix C++ errors to continue. If you believe it is a bug, report the problem to XOD developers.

---

<div class="post-metadata">

**Author:** ![gweimer](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@gweimer](https://forum.xod.io/u/gweimer)\
**Post date:** [June 2, 2020, 8:59pm UTC](https://forum.xod.io/t/ir-remote-node-error-eith-mcu8266-e12/4043/12 "2020-06-02T20:59:50Z")

</div>

It can’t find IRremote.h. I have had problems when header files are in sub directories. For example. This one might be in IRremote\source\IRremote.h. Moving or copying the header file one folder up might resolve the issue.

---

<div class="post-metadata">

**Author:** ![gcabral](https://avatars.discourse-cdn.com/v4/letter/g/8491ac/32.png) [@gcabral](https://forum.xod.io/u/gcabral)\
**Post date:** [June 3, 2020, 5:44am UTC](https://forum.xod.io/t/ir-remote-node-error-eith-mcu8266-e12/4043/13 "2020-06-03T05:44:31Z")

</div>

Understood. But where is the IRemote.h file?

I lookup for that and what I can find is the file patch.ccp onto the folder

\< user \>XOD\__lib_\_\gweimer\ir-remote\ir-read

and when I open it I get the intruction

#pragma XOD require “[https://github.com/z3t0/Arduino-IRremote](https://github.com/z3t0/Arduino-IRremote)”

Once more thanks in advance for all the support

/GC

---

<div class="post-metadata">

**Author:** ![gweimer](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@gweimer](https://forum.xod.io/u/gweimer)\
**Post date:** [June 3, 2020, 3:39pm UTC](https://forum.xod.io/t/ir-remote-node-error-eith-mcu8266-e12/4043/14 "2020-06-03T15:39:51Z")

</div>

The #pragma line should add the included library to `<user>\xod\ __ardulib__ \Arduino_IRremote` (unless you install XOD for all users…you need to find the ` __ardulib__ ` folder on your system).

---

<div class="post-metadata">

**Author:** ![gcabral](https://avatars.discourse-cdn.com/v4/letter/g/8491ac/32.png) [@gcabral](https://forum.xod.io/u/gcabral)\
**Post date:** [June 5, 2020, 6:29am UTC](https://forum.xod.io/t/ir-remote-node-error-eith-mcu8266-e12/4043/15 "2020-06-05T06:29:47Z")

</div>

Morning gweimer,

I tried withouth sucess.

I Also install XODon other 2 computers and tried it. same result

Begin compiling code for the board NodeMCU 0.9 (ESP-12 Module) 📦

Using board ‘nodemcu’ from platform in folder: C:\Users\gcabr\xod\__packages_\_\packages\esp8266\hardware\esp8266\2.4.3  
Using core ‘esp8266’ from platform in folder: C:\Users\gcabr\xod\__packages_\_\packages\esp8266\hardware\esp8266\2.4.3

Detecting libraries used…

“C:\Users\gcabr\xod\ **packages** \packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++” -D\_\_ets\_\_ -DICACHE\_FLASH -U\_\_STRICT\_ANSI\_\_ “-IC:\Users\gcabr\xod\ **packages** \packages\esp8266\hardware\esp8266\2.4.3/tools/sdk/include” “-IC:\Users\gcabr\xod\ **packages** \packages\esp8266\hardware\esp8266\2.4.3/tools/sdk/lwip2/include” “-IC:\Users\gcabr\xod\ **packages** \packages\esp8266\hardware\esp8266\2.4.3/tools/sdk/libc/xtensa-lx106-elf/include” “-IC:\Users\gcabr\AppData\Local\Temp\arduino-sketch-1FF32756EC29C7F1B585B12307512BE8/core” -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF\_CPU=80000000L -DLWIP\_OPEN\_SRC -DTCP\_MSS=536 -DARDUINO=10607 -DARDUINO\_ESP8266\_NODEMCU -DARDUINO\_ARCH\_ESP8266 “-DARDUINO\_BOARD=“ESP8266\_NODEMCU”” -DESP8266 “-IC:\Users\gcabr\xod\ **packages** \packages\esp8266\hardware\esp8266\2.4.3\cores\esp8266” “-IC:\Users\gcabr\xod\ **packages** \packages\esp8266\hardware\esp8266\2.4.3\variants\nodemcu” “C:\Users\gcabr\AppData\Local\Temp\arduino-sketch-1FF32756EC29C7F1B585B12307512BE8\sketch\xod\_1591338425517\_sketch.ino.cpp” -o nul

Alternatives for IRremote.h: [Arduino\_IRremote@2.2.3]  
ResolveLibrary(IRremote.h)  
-\> candidates: [Arduino\_IRremote@2.2.3]

“C:\Users\gcabr\xod\ **packages** \packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++” -D\_\_ets\_\_ -DICACHE\_FLASH -U\_\_STRICT\_ANSI\_\_ “-IC:\Users\gcabr\xod\ **packages** \packages\esp8266\hardware\esp8266\2.4.3/tools/sdk/include” “-IC:\Users\gcabr\xod\ **packages** \packages\esp8266\hardware\esp8266\2.4.3/tools/sdk/lwip2/include” “-IC:\Users\gcabr\xod\ **packages** \packages\esp8266\hardware\esp8266\2.4.3/tools/sdk/libc/xtensa-lx106-elf/include” “-IC:\Users\gcabr\AppData\Local\Temp\arduino-sketch-1FF32756EC29C7F1B585B12307512BE8/core” -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF\_CPU=80000000L -DLWIP\_OPEN\_SRC -DTCP\_MSS=536 -DARDUINO=10607 -DARDUINO\_ESP8266\_NODEMCU -DARDUINO\_ARCH\_ESP8266 “-DARDUINO\_BOARD=“ESP8266\_NODEMCU”” -DESP8266 “-IC:\Users\gcabr\xod\ **packages** \packages\esp8266\hardware\esp8266\2.4.3\cores\esp8266” “-IC:\Users\gcabr\xod\ **packages** \packages\esp8266\hardware\esp8266\2.4.3\variants\nodemcu” “-IC:\Users\gcabr\AppData\Local\Temp\xod\_temp\_sketchbookmPSHnb\libraries\Arduino\_IRremote” “C:\Users\gcabr\AppData\Local\Temp\arduino-sketch-1FF32756EC29C7F1B585B12307512BE8\sketch\xod\_1591338425517\_sketch.ino.cpp” -o nul

“C:\Users\gcabr\xod\ **packages** \packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++” -D\_\_ets\_\_ -DICACHE\_FLASH -U\_\_STRICT\_ANSI\_\_ “-IC:\Users\gcabr\xod\ **packages** \packages\esp8266\hardware\esp8266\2.4.3/tools/sdk/include” “-IC:\Users\gcabr\xod\ **packages** \packages\esp8266\hardware\esp8266\2.4.3/tools/sdk/lwip2/include” “-IC:\Users\gcabr\xod\ **packages** \packages\esp8266\hardware\esp8266\2.4.3/tools/sdk/libc/xtensa-lx106-elf/include” “-IC:\Users\gcabr\AppData\Local\Temp\arduino-sketch-1FF32756EC29C7F1B585B12307512BE8/core” -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF\_CPU=80000000L -DLWIP\_OPEN\_SRC -DTCP\_MSS=536 -DARDUINO=10607 -DARDUINO\_ESP8266\_NODEMCU -DARDUINO\_ARCH\_ESP8266 “-DARDUINO\_BOARD=“ESP8266\_NODEMCU”” -DESP8266 “-IC:\Users\gcabr\xod\ **packages** \packages\esp8266\hardware\esp8266\2.4.3\cores\esp8266” “-IC:\Users\gcabr\xod\ **packages** \packages\esp8266\hardware\esp8266\2.4.3\variants\nodemcu” “-IC:\Users\gcabr\AppData\Local\Temp\xod\_temp\_sketchbookmPSHnb\libraries\Arduino\_IRremote” “C:\Users\gcabr\AppData\Local\Temp\xod\_temp\_sketchbookmPSHnb\libraries\Arduino\_IRremote\IRremote.cpp” -o nul

C:\Users\gcabr\AppData\Local\Temp\xod\_temp\_sketchbookmPSHnb\libraries\Arduino\_IRremote\IRremote.cpp:28:27: fatal error: avr/interrupt.h: No such file or directory  
#include \<avr/interrupt.h\>  
^  
compilation terminated.

Alternatives for avr/interrupt.h: []  
ResolveLibrary(avr/interrupt.h)  
-\> candidates: []  
Multiple libraries were found for “IRremote.h”  
Used: C:\Users\gcabr\AppData\Local\Temp\xod\_temp\_sketchbookmPSHnb\libraries\Arduino\_IRremote

Using library Arduino\_IRremote at version 2.2.3 in folder: C:\Users\gcabr\AppData\Local\Temp\xod\_temp\_sketchbookmPSHnb\libraries\Arduino\_IRremote

Error: exit status 1  
Compilation failed.  
Compilation failed  
Command Process exited with code 1  
The generated C++ code contains errors. It can be due to a bad node implementation or if your board is not compatible with XOD runtime code. The original compiler error message is above. Fix C++ errors to continue. If you believe it is a bug, report the problem to XOD developers.

---

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [June 5, 2020, 6:48am UTC](https://forum.xod.io/t/ir-remote-node-error-eith-mcu8266-e12/4043/16 "2020-06-05T06:48:33Z")

</div>

Check if you have this library, `C:\Users\gcabr\xod\ __packages__ \packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5\avr\include\avr`

have you compiled before using UNO or MEGA?

If not, perhaps the package is not downloaded, select from the Arduino UNO or Mega drop-down menu, the load starts and when the compilation begins it will ask you for the download in a light blue message.

You can start the compilation again and then disconnect the board, XOD needs a port to compile but it can be tricked as well, it will even create the load files in temporary folders.

The load will only stop when it cannot find the port, but this way it can be compiled for any micro.

---

<div class="post-metadata">

**Author:** ![gcabral](https://avatars.discourse-cdn.com/v4/letter/g/8491ac/32.png) [@gcabral](https://forum.xod.io/u/gcabral)\
**Post date:** [June 5, 2020, 6:53am UTC](https://forum.xod.io/t/ir-remote-node-error-eith-mcu8266-e12/4043/17 "2020-06-05T06:53:20Z")

</div>

Yes I did that with

Arduino Uno

Arduino Mega

Arduino Nano (old booth)

All works fine

Esp8266 not work. Gives that error

Thanks

/GC

---

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [June 5, 2020, 7:05am UTC](https://forum.xod.io/t/ir-remote-node-error-eith-mcu8266-e12/4043/18 "2020-06-05T07:05:33Z")

</div>

> [@gcabral](#):
>
> #ifndef IR\_TIMER\_USE\_ESP32  
> #include \<avr/interrupt.h\>  
> #endif

The call to that library is in IRemote.cpp, I don’t know if `"avr/interrupt.h"`  
it will change something.

I don’t know what would be the right thing, but you can add an `avr` folder in `xod\ __ardulib__ \Arduino_IRremote`, and put the library inside…

---

<div class="post-metadata">

**Author:** ![gcabral](https://avatars.discourse-cdn.com/v4/letter/g/8491ac/32.png) [@gcabral](https://forum.xod.io/u/gcabral)\
**Post date:** [June 5, 2020, 7:43am UTC](https://forum.xod.io/t/ir-remote-node-error-eith-mcu8266-e12/4043/19 "2020-06-05T07:43:21Z")

</div>

Let’s try

let me see if I undertood. You meas create a folder like:

xod\__ardulib_\_\Arduino\_IRremote\avr

and

put the interrupt.h into that?

---

<div class="post-metadata">

**Author:** ![gweimer](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@gweimer](https://forum.xod.io/u/gweimer)\
**Post date:** [June 5, 2020, 11:47am UTC](https://forum.xod.io/t/ir-remote-node-error-eith-mcu8266-e12/4043/20 "2020-06-05T11:47:46Z")

</div>

I don’t think XOD will find the header file of you put it under sub folders like that. Since it works for other boards, my guess would be that this board does not support interrupts.

[Next page](https://forum.xod.io/t/ir-remote-node-error-eith-mcu8266-e12/4043.md?page=2)
