Skip to content

Remove RobotIRremote library #4040

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
PaoloP74 opened this issue Oct 29, 2015 · 8 comments
Closed

Remove RobotIRremote library #4040

PaoloP74 opened this issue Oct 29, 2015 · 8 comments
Labels
Component: Compilation Related to compilation of Arduino sketches
Milestone

Comments

@PaoloP74
Copy link
Contributor

The RobotIRremote library continues to create problems with the installation of the homonymous library irRemote.
Can you delete from installation of IDE 1.6.6 the RobotIRremote and make it optional?
It would be downloaded only by those who own the Arduino robot.

"Translated with Google" :-/

@ffissore
Copy link
Contributor

This should be fixed in recent IDEs. Can you give some evidence of such problems?

@ffissore ffissore self-assigned this Oct 29, 2015
@ffissore ffissore added Component: Compilation Related to compilation of Arduino sketches Waiting for feedback More information must be provided before we can proceed labels Oct 29, 2015
@PaoloP74
Copy link
Contributor Author

Recently --> http://forum.arduino.cc/index.php?topic=356077.0
IDE select the wrong library

Multiple libraries were found for "IRremote.h"
Used: C:\Program Files (x86)\Arduino\libraries\RobotIRremote
Not used: C:\Users\Lorenzo\Documents\Arduino\libraries\Arduino-IRremote-master
Errore durante la compilazione

@q2dg
Copy link

q2dg commented Oct 29, 2015

Well, in hourly build from 29-10-2015 2:26 "Esplora", "Robot Control", "Robot IR Remote", "Robot Motor" and "TFT" libraries appear installed by default. I think there libraries should be removed to Library Manager.

@PaoloP74
Copy link
Contributor Author

👍

@ffissore ffissore removed the Waiting for feedback More information must be provided before we can proceed label Oct 30, 2015
@PaoloP74
Copy link
Contributor Author

Up!

always the same problem --> http://forum.arduino.cc/index.php?topic=381144.msg2628096#msg2628096

@per1234
Copy link
Collaborator

per1234 commented Feb 25, 2016

If you change the folder name from C:\Users\Lorenzo\Documents\Arduino\libraries\Arduino-IRremote-master to C:\Users\Lorenzo\Documents\Arduino\libraries\IRremote then the IDE will select the correct library because the include filename matches the folder. If you use Library Manager to install IRremote then it will automatically have the correct folder name. However, it seems only logical that if multiple files that match the include are found and none of them are in a folder that matches the filename then the normal include priorities should apply. In this case the file in the sketchbook folder should have higher priority than the one in the IDE install folder but this is not the case in your example. I seem to remember this idea already having been discussed in another issue and rejected. I did notice that if you do:

#include <IRremoteInt.h>

you get(using hourly build):

Multiple libraries were found for "IRremoteInt.h"
 Used: E:\Stuff\misc\electronics\arduino\libraries\IRremote
 Not used: C:\Program Files (x86)\arduino-nightly\libraries\RobotIRremote

or with your folder name:

Multiple libraries were found for "IRremoteInt.h"
 Used: E:\Stuff\misc\electronics\arduino\libraries\Arduino-IRremote-master
 Not used: C:\Program Files (x86)\arduino-nightly\libraries\RobotIRremote

So it's fairly random which library is used when the include filename doesn't match any library folder name.

@PaoloP74
Copy link
Contributor Author

Can you delete from installation of next IDE 1.8.4 the Robot IR remote?

@cmaglie
Copy link
Member

cmaglie commented Aug 18, 2017

I cannot remove it from the bundle (for UX reasons) but I've renamed all the includes from *IRremote.h to Robot*IRRemote.h, this should fix all the conflicts once for all.

cmaglie added a commit to arduino-libraries/Robot_Control that referenced this issue Aug 18, 2017
cmaglie added a commit that referenced this issue Aug 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Compilation Related to compilation of Arduino sketches
Projects
None yet
Development

No branches or pull requests

6 participants