# Gweimer/ir-remote Can't upload program to Arduino UNO

**URL:** https://forum.xod.io/t/gweimer-ir-remote-cant-upload-program-to-arduino-uno/4747
**Category:** Install/Upload Problems
**Created:** [January 3, 2021, 11:15am UTC](https://forum.xod.io/t/gweimer-ir-remote-cant-upload-program-to-arduino-uno/4747 "2021-01-03T11:15:19Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![garage-make-zone](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/garage-make-zone/32/2078_2.png) [@garage-make-zone](https://forum.xod.io/u/garage-make-zone)
#### Post date: [January 3, 2021, 11:15am UTC](https://forum.xod.io/t/gweimer-ir-remote-cant-upload-program-to-arduino-uno/4747/1 "2021-01-03T11:15:19Z")

</div>

Hi Guys,  
I have a problem with IR-remote Can someone help please.

 ![2021-01-03 11_36_15-XOD IDE](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/b/b4cad648414b2a19e2673c8140ad25ed6510c65f.png)

Error log below:

> Begin compiling code for the board Arduino Uno 📦
> 
> C:\Users\LENOVO\AppData\Local\Temp\cceLgMIG.ltrans0.ltrans.o: In function `decode': C:\Users\LENOVO\AppData\Local\Temp\xod_temp_sketchbookXAQEXp\libraries\Arduino_IRremote\src/irReceive.cpp:888: undefined reference to `IRrecv::decodeNEC(decode\_results\*)’  
> C:\Users\LENOVO\AppData\Local\Temp\xod\_temp\_sketchbookXAQEXp\libraries\Arduino\_IRremote\src/irReceive.cpp:895: undefined reference to `IRrecv::decodeSony(decode_results*)' C:\Users\LENOVO\AppData\Local\Temp\xod_temp_sketchbookXAQEXp\libraries\Arduino_IRremote\src/irReceive.cpp:930: undefined reference to `IRrecv::decodePanasonic(decode\_results\*)’  
> C:\Users\LENOVO\AppData\Local\Temp\xod\_temp\_sketchbookXAQEXp\libraries\Arduino\_IRremote\src/irReceive.cpp:972: undefined reference to `IRrecv::decodeDenon(decode\_results\*)  
> ’  
> collect2.exe: error: ld returned 1 exit status
> 
> Error during build: exit status 1  
> 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: [January 3, 2021, 12:52pm UTC](https://forum.xod.io/t/gweimer-ir-remote-cant-upload-program-to-arduino-uno/4747/2 "2021-01-03T12:52:02Z")

</div>

The library hasn’t been updated to use the new include prsgma yet, so you need to manually install the include file. It’s been so long since I’ve looked at it, I don’t even remember where the instructions are stored for how to do that and I don’t have my computer to look it up right now.

---

<div class="post-metadata">

### Author: ![garage-make-zone](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/garage-make-zone/32/2078_2.png) [@garage-make-zone](https://forum.xod.io/u/garage-make-zone)
#### Post date: [January 3, 2021, 1:43pm UTC](https://forum.xod.io/t/gweimer-ir-remote-cant-upload-program-to-arduino-uno/4747/3 "2021-01-03T13:43:30Z")

</div>

You mean IRremote.h from updated repository in github?

---

<div class="post-metadata">

### Author: ![microamp](https://avatars.discourse-cdn.com/v4/letter/m/c5a1d2/32.png) [@microamp](https://forum.xod.io/u/microamp)
#### Post date: [January 4, 2021, 2:11pm UTC](https://forum.xod.io/t/gweimer-ir-remote-cant-upload-program-to-arduino-uno/4747/4 "2021-01-04T14:11:57Z")

</div>

I just finished a project using an IR receiver diode and a remote control. I found that I was unable to upload a sketch after I wired up the diode on my bread board. I found I had to lift the RX wire every time I wanted to upload to my nano, otherwise it wouldn’t accept the sketch. Just something to keep in mind if you are having issues.

---

<div class="post-metadata">

### Author: ![garage-make-zone](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/garage-make-zone/32/2078_2.png) [@garage-make-zone](https://forum.xod.io/u/garage-make-zone)
#### Post date: [January 7, 2021, 11:02pm UTC](https://forum.xod.io/t/gweimer-ir-remote-cant-upload-program-to-arduino-uno/4747/5 "2021-01-07T23:02:39Z")

</div>

There is something wrong with XOD itself after upgrades to the new versions I suspect. I check folders Lib is there all files in it. More than that. If we take ir-read and LCD node this is working.

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/a/afd77d2484ed8a419f2bd6561e9dfa1bcc1b37d7.png)

Problem begins when we connect something to the UPD socket

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/6/681753c90a2e44e217b0749a9940a235257df957.png)

Independent what it is clock, square wave generator or simple button - you get error message:

Begin compiling code for the board Arduino Uno 📦

C:\Users\LENOVO\AppData\Local\Temp\ccF6J5gT.ltrans0.ltrans.o: In function `decode': C:\Users\LENOVO\AppData\Local\Temp\xod_temp_sketchbookK986lq\libraries\Arduino_IRremote\src/irReceive.cpp:888: undefined reference to `IRrecv::decodeNEC(decode\_results\*)’  
C:\Users\LENOVO\AppData\Local\Temp\xod\_temp\_sketchbookK986lq\libraries\Arduino\_IRremote\src/irReceive.cpp:895: undefined reference to `IRrecv::decodeSony(decode_results*)' C:\Users\LENOVO\AppData\Local\Temp\xod_temp_sketchbookK986lq\libraries\Arduino_IRremote\src/irReceive.cpp:930: undefined reference to `IRrecv::decodePanasonic(decode\_results\*)’  
C:\Users\LENOVO\AppData\Local\Temp\xod\_temp\_sketchbookK986lq\libraries\Arduino\_IRremote\src/irReceive.cpp:972: undefined reference to `IRrecv::decodeDenon(decode\_results\*)  
’  
collect2.exe: error: ld returned 1 exit status

Then below:

Error during build: exit status 1  
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: [January 8, 2021, 12:14am UTC](https://forum.xod.io/t/gweimer-ir-remote-cant-upload-program-to-arduino-uno/4747/6 "2021-01-08T00:14:45Z")

</div>

It is a problem with my library, not XOD. You can try copying irReceive.h from `libraries\Arduino_IRremote\src\` to the folder just above. It has been a couple years since I’ve looked at it and it may just not work with new XOD.

---

<div class="post-metadata">

### Author: ![garage-make-zone](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/garage-make-zone/32/2078_2.png) [@garage-make-zone](https://forum.xod.io/u/garage-make-zone)
#### Post date: [January 8, 2021, 9:30am UTC](https://forum.xod.io/t/gweimer-ir-remote-cant-upload-program-to-arduino-uno/4747/7 "2021-01-08T09:30:08Z")

</div>

Moving irRecive.h do not change anything. Everything is working as long as you will connect something to UPD only then you become problem, thats why I suspect some conflict in XOD. Except that I would sugest to link this Lib to cloned GIT repo with working tested version of orginal lib. At the moment becouse of link to active ( updated even 2 days ago ) lib on github. Everything can change when they will make some change in the code. So it would be better to work on Cloned location with version that never change.

---

<div class="post-metadata">

### Author: ![brusher](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/brusher/32/475_2.png) [@brusher](https://forum.xod.io/u/brusher)
#### Post date: [January 20, 2021, 1:34pm UTC](https://forum.xod.io/t/gweimer-ir-remote-cant-upload-program-to-arduino-uno/4747/8 "2021-01-20T13:34:41Z")

</div>

Hi there!  
I’ve just tested this library (last version) and it’s working fine on the last version of XOD IDE.

Try to update the library `gweimer/ir-remote` and download the C++ library again.  
To do so follow the next steps:

1. Open your workspace directory (if you use a not default one it might be the issue that I’ve fixed. Try to switch to the default location: `~/xod`)
2. Delete `gweimer/ir-remote` directory inside ` __lib__ `
3. Delete `Arduino_IRrmote directory inside ` **ardulib** `
4. Open XOD IDE
5. Add the library as usual

If it still does not work please provide more information:

- a version of IDE
- a version of your OS
- a path to the workspace

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/eb7348baa04192c2ef932d1db54d44f09f8a7888.png) [@system](https://forum.xod.io/u/system)
#### Post date: [February 19, 2021, 1:34pm UTC](https://forum.xod.io/t/gweimer-ir-remote-cant-upload-program-to-arduino-uno/4747/9 "2021-02-19T13:34:43Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
