I have received messages when compiling some .h files were not found.
Example:
C:\Reinaldo 2017_18_UP\IoT_Projects\Arduino\Meus Projetos_Arduino\18b20_com_i2c\18b20_com_i2c.ino:4:21: fatal error: OneWire.h: No such file or directory
#include <OneWire.h>
^
compilation terminated.
exit status 1
Error compiling for board Arduino/Genuino Uno.
When I tried to add related library message saying the library already exists is shown.
Example:
A library named OneWire already exists
Going to Sketch/Include Library and roll down, libraries were not listed.
Checking C:/program files (x86)/arduino/libraries files were not there.
Checking MyDocuments folder there is no library file there.
What I did:
Delete all library files and folders
Uninstall IDE version 1.8.4
Reset PC
Reinstall IDE version 1.8.5
Reset PC
Open IDE
And the problem remains. I cannot compile codes because it does not find .h files and does not allow me to install related libraries.
Dead end for me.
Please help me on that. I am stucked on my projets.
rlorenzato:
Checking C:/program files (x86)/arduino/libraries files were not there.
It would not be expected to be in that location since only the Arduino IDE's built-in libraries should be installed to that folder and OneWire is not one of those libraries. A more likely place to find it is under {sketchbook folder}/libraries. You can find the location of the sketchbook folder at File > Preferences > Sketchbook location. This would also fit with the problem persisting through your reinstallation of the Arduino IDE if you did not delete the contents of your sketchbook folder.
Hi and Thanks for replying.
That's what I did.
I previously deleted all x86/arduino/library folder.
Unistaled and reinstaled IDE and the issue remained. Weird!!
I will try to backup into a external disc all files and project, disconnect external disc, delete all folders, uninstall and reinstall IDE to see what's going on.
It seams some king of registers remain active. Do nt ask me where and why. This is just an assumpion.
rlorenzato:
I previously deleted all x86/arduino/library folder.
Unistaled and reinstaled IDE and the issue remained. Weird!!
You didn't read what I wrote. THERE ARE MULTIPLE LIBRARY FOLDERS!!! The "x86/arduino/library folder" you deleted is likely the Arduino IDE installation libraries folder but there is another libraries folder that is in your sketchbook.