Hello everyone, first of all! Thank you for giving me this place to answer my question.
I am facing a problem with the library MG135.
I downloaded it correctly and ensured that it was in the library folder, and I checked the bath of the Arduino libraries.
everything is fine!! the code still saying:
" C:\Users\sulmu\OneDrive\المستندات\Arduino\myproject\myproject.ino:5:10: fatal error: MQ135.h: No such file or directory
compilation terminated.
exit status 1
Compilation error: MQ135.h: No such file or directory
unfortunately I think it's due to the "المستندات" in the path
can you rename that with just plain ASCII characters like "AlMustanadat" and not use unicode extended character set?
it located in the Arduino folder in my documents, inside the libraries folder.
after i downloaded the folder from gethub. i uploaded it in the sketch as a zip folder
Hi @sultanah199. Unfortunately there is a bug in the sketch compiler that causes it to fail to find the library when it is installed under a path that contains this sort of character:
The workaround will be to configure Arduino IDE to use a different path to store libraries. I'll provide instructions you can follow to do that:
Select File > Preferences... (or Arduino IDE > Settings... for macOS users) from the Arduino IDE menus.
The "Preferences" dialog will open.
Click the "BROWSE" button on the right side of the "Sketchbook location" field.
The "Select a new sketchbook location" dialog will open.
Select a folder in any location that contains only basic ASCII characters (the characters A-z, 0-9, _, -, . are safe). Make sure to pick a location that will be safe to store your files since, in addition to containing installed libraries, the sketchbook is a convenient location to save your sketches.
Click the "Choose" button in the "Select a new sketchbook location" dialog.
Click the "OK" button in the "Preferences" dialog.
Move all the files from the folder at the path of the old sketchbook location:
C:\Users\sulmu\OneDrive\المستندات\Arduino
to the folder at the path of the new sketchbook location you set in the Arduino IDE preferences.
Once you have finished performing the instructions above, try compiling your sketch again. Hopefully the compilation will be successful this time.
C:\Users\sulmu\OneDrive\المستندات\libraries\myproject\myproject.ino:5:10: fatal error: MQ135.h: No such file or directory
compilation terminated.
exit status 1
Compilation error: MQ135.h: No such file or directory
he is using #include "MQ135.h" which will look first in the local directory and then in the same directories as if he had used the <MQ135.h> version. So it should not matter
any chance you move everything to C:\Users\sulmu/ArduinoStuff ? or you just don't have access to that and user home directory are actually over OneDrive and you can't use the local drive ?