# Error using gweimer/ir-remote library

**URL:** https://forum.xod.io/t/error-using-gweimer-ir-remote-library/2208
**Category:** Uncategorized
**Created:** [May 3, 2019, 11:41pm UTC](https://forum.xod.io/t/error-using-gweimer-ir-remote-library/2208 "2019-05-03T23:41:15Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![omran](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/omran/32/1112_2.png) [@omran](https://forum.xod.io/u/omran)
#### Post date: [May 3, 2019, 11:41pm UTC](https://forum.xod.io/t/error-using-gweimer-ir-remote-library/2208/1 "2019-05-03T23:41:15Z")

</div>

When I include the node ir-read from g gweimer/ir-remote library in my patch I receive the following compilation error.  
"Begin compiling code for the board Arduino/Genuino Uno 📦

Using board ‘uno’ from platform in folder: C:\Users\Omran\xod\__packages_\_\packages\arduino\hardware\avr\1.6.23  
Using core ‘arduino’ from platform in folder: C:\Users\Omran\xod\__packages_\_\packages\arduino\hardware\avr\1.6.23

Detecting libraries used…

“C:\Users\Omran\xod\ **packages** \packages\arduino\tools\avr-gcc\5.4.0-atmel3.6.1-arduino2/bin/avr-g++” -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF\_CPU=16000000L -DARDUINO=10607 -DARDUINO\_AVR\_UNO -DARDUINO\_ARCH\_AVR “-IC:\Users\Omran\xod\ **packages** \packages\arduino\hardware\avr\1.6.23\cores\arduino” “-IC:\Users\Omran\xod\ **packages** \packages\arduino\hardware\avr\1.6.23\variants\standard” “C:\Users\Omran\AppData\Local\Temp\arduino-sketch-E6A415292E3068DE199AD722359CF723\sketch\xod\_1556926727599\_sketch.ino.cpp” -o nul

C:\Users\Omran\AppData\Local\Temp\xod\_temp\_sketchbookFvKUwY\xod\_1556926727599\_sketch\xod\_1556926727599\_sketch.ino:1028:22: fatal error: IRremote.h: No such file or directory  
compilation terminated.

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

Error: exit status 1  
Compilation failed.  
Compilation failed  
Command `C:\Program Files\XOD IDE\resources\arduino-cli.exe --config-file=C:\Users\Omran\AppData\Local\Temp\arduino-cliR0yGq0\.cli-config.yml compile --fqbn arduino:avr:uno --verbose C:\Users\Omran\AppData\Local\Temp\xod_temp_sketchbookFvKUwY\xod_1556926727599_sketch` failed 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: [May 4, 2019, 12:40am UTC](https://forum.xod.io/t/error-using-gweimer-ir-remote-library/2208/2 "2019-05-04T00:40:14Z")

</div>

Edit `ir-read node`

in `no-implemented-in-xod` add a line at the beginning with the following code

```auto
#pragma XOD require "https://github.com/z3t0/Arduino-IRremote"

```

Close everything back to the patch and compile again,xod will ask you to download the library.  
When finished, compile again.

ps: @gweimer, you have work 🙂

---

<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: [May 4, 2019, 1:35am UTC](https://forum.xod.io/t/error-using-gweimer-ir-remote-library/2208/3 "2019-05-04T01:35:47Z")

</div>

Yeah… I haven’t updated it since that option was added. There are instructions for adding it manually, but progma is the better solution.

---

<div class="post-metadata">

### Author: ![omran](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/omran/32/1112_2.png) [@omran](https://forum.xod.io/u/omran)
#### Post date: [May 4, 2019, 4:18pm UTC](https://forum.xod.io/t/error-using-gweimer-ir-remote-library/2208/4 "2019-05-04T16:18:40Z")

</div>

Thanks.

After modifying the no-implemented-in-xod as advised it works

---

<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: [May 6, 2019, 9:00pm UTC](https://forum.xod.io/t/error-using-gweimer-ir-remote-library/2208/5 "2019-05-06T21:00:17Z")

</div>

> [@cesars](#):
>
> #pragma XOD require “[GitHub - Arduino-IRremote/Arduino-IRremote: Infrared remote library for Arduino: send and receive infrared signals with multiple protocols](https://github.com/z3t0/Arduino-IRremote)”

I have not tested it, but I have updated the library to include the above pragma line

---

<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: [May 7, 2019, 2:05am UTC](https://forum.xod.io/t/error-using-gweimer-ir-remote-library/2208/6 "2019-05-07T02:05:53Z")

</div>

> [@gweimer](#):
>
> I have not tested it, but I have updated the library to include the above pragma line

works correctly 👍
