IR-Remote Node error eith MCU8266 E12

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 .

The #pragma XOD require “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) :package:

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.

Any leads from someone who can help?

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__

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:

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

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

Can you share the way to do it please

Thanks in advance

There 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:

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

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

Yes of course

The board setup conditions:

The error

And all the scroll

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

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.

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.

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

Once more thanks in advance for all the support

/GC

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).

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) :package:

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.

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.

Yes I did that with

Arduino Uno

Arduino Mega

Arduino Nano (old booth)

All works fine

Esp8266 not work. Gives that error

Thanks

/GC

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…

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?

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.