Arduino: 1.8.18 (Windows 10), Board: "Arduino Uno"
sketch_feb18a:2:10: fatal error: Adafruit_LiquidCrystal.h: No such file or directory
compilation terminated.
exit status 1
Adafruit_LiquidCrystal.h: No such file or directory
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Hi @junzibilat. I'm going to ask you to provide the full verbose output from a compilation.
This procedure is not intended to solve the problem. The purpose is to gather more information.
Please do this:
- Select File > Preferences...(or Arduino > Settings... for macOS users) from the Arduino IDE menus.
The "Preferences" dialog will open. - Check the box next to "Show verbose output during: ☐ compilation" in the "Preferences" dialog.
- Click the "OK" button.
The "Preferences" dialog will close. - Select Sketch > Verify/Compile from the Arduino IDE menus.
- After the compilation fails you'll see a button on the right side of the orange bar in Arduino IDE: Copy error messages. Click that button.
This copies the full output to the clipboard. - Open a forum reply here by clicking the "Reply" button.
- Click the
<CODE/>icon on the post composer toolbar.
This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
- Press the Ctrl+V keyboard shortcut (Command+V for macOS users).
This will paste the compilation output into the code block. - Move the cursor outside of the code block markup before you add any additional text to your reply.
- Click the "Reply" button to post the output.
In case the output is longer than the forum software will allow to be added to a post, you can instead save it to a .txt file and then attach that file to a reply here.
Click here for attachment instructions
- Open any text editor program.
- Paste the copied output into the text editor.
- Save the file in
.txtformat. - Open a forum reply here by clicking the "Reply" button.
- Click the "Upload" icon (
) on the post composer toolbar:
The "Open" dialog will open. - Select the
.txtfile you saved from the "Open" dialog. - Click the "Open" button.
The dialog will close. - Click the "Reply" button to publish the post.
Alternatively, instead of using the "Upload" icon on the post composer toolbar as described in steps (5) - (7) above, you can simply drag and drop the .txt file onto the post composer field to attach it.
Please do not hijack posts; question split to it's own topic.
Did you install the Adafruit_LiquidCrystal library?
Arduino: 1.8.18 (Windows 10), Board: "Arduino Uno"
C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Chris Angelo\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Chris Angelo\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Chris Angelo\OneDrive\文件\Arduino\libraries -fqbn=arduino:avr:uno -ide-version=10818 -build-path C:\Users\CHRISA~1\AppData\Local\Temp\arduino_build_443325 -warnings=none -build-cache C:\Users\CHRISA~1\AppData\Local\Temp\arduino_cache_583989 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=C:\Users\Chris Angelo\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Users\Chris Angelo\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.arduinoOTA.path=C:\Users\Chris Angelo\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\Chris Angelo\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.avr-gcc.path=C:\Users\Chris Angelo\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Users\Chris Angelo\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -verbose C:\Users\Chris Angelo\OneDrive\文件\Arduino\sketch_feb19a\sketch_feb19a.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Chris Angelo\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Chris Angelo\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Chris Angelo\OneDrive\文件\Arduino\libraries -fqbn=arduino:avr:uno -ide-version=10818 -build-path C:\Users\CHRISA~1\AppData\Local\Temp\arduino_build_443325 -warnings=none -build-cache C:\Users\CHRISA~1\AppData\Local\Temp\arduino_cache_583989 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=C:\Users\Chris Angelo\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Users\Chris Angelo\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.arduinoOTA.path=C:\Users\Chris Angelo\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\Chris Angelo\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.avr-gcc.path=C:\Users\Chris Angelo\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Users\Chris Angelo\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -verbose C:\Users\Chris Angelo\OneDrive\文件\Arduino\sketch_feb19a\sketch_feb19a.ino
Using board 'uno' from platform in folder: C:\Users\Chris Angelo\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Using core 'arduino' from platform in folder: C:\Users\Chris Angelo\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Detecting libraries used...
"C:\\Users\\Chris Angelo\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/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=10818 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\Chris Angelo\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\cores\\arduino" "-IC:\\Users\\Chris Angelo\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\variants\\standard" "C:\\Users\\CHRISA~1\\AppData\\Local\\Temp\\arduino_build_443325\\sketch\\sketch_feb19a.ino.cpp" -o nul
Alternatives for Adafruit_LiquidCrystal.h: [Adafruit_LiquidCrystal@2.0.4]
ResolveLibrary(Adafruit_LiquidCrystal.h)
-> candidates: [Adafruit_LiquidCrystal@2.0.4]
"C:\\Users\\Chris Angelo\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/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=10818 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\Chris Angelo\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\cores\\arduino" "-IC:\\Users\\Chris Angelo\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\variants\\standard" "-IC:\\Users\\Chris Angelo\\OneDrive\\文件\\Arduino\\libraries\\Adafruit_LiquidCrystal" "C:\\Users\\CHRISA~1\\AppData\\Local\\Temp\\arduino_build_443325\\sketch\\sketch_feb19a.ino.cpp" -o nul
Alternatives for Adafruit_LiquidCrystal.h: [Adafruit_LiquidCrystal@2.0.4]sketch_feb19a:1:10: fatal error: Adafruit_LiquidCrystal.h: No such file or directory
ResolveLibrary(Adafruit_LiquidCrystal.h)
-> candidates: [Adafruit_LiquidCrystal@2.0.4]
Using library Adafruit_LiquidCrystal at version 2.0.4 in folder: C:\Users\Chris Angelo\OneDrive\文件\Arduino\libraries\Adafruit_LiquidCrystal
exit status 1
Adafruit_LiquidCrystal.h: No such file or directory
so what will happend now?
i did it all so what will happend now?
yes
please help me
Don't use non-ASCII characters in your path or it will lead to issues like this
As @blh64 mentioned, there is a bug in Arduino IDE that causes it to not recognize libraries when they are installed under a path that contains non-ASCII characters (e.g. 文档).
The workaround is to change the location where libraries are stored by Arduino IDE to one that is under a path without any non-ASCII characters. I'll provide instructions you can follow to do that:
- Select File > Preferences... from the Arduino IDE menus.
The "Preferences" dialog will open. - Set the path in the "Sketchbook location" preference to a location that does not contain any non-ASCII characters in its path.
- Click the "OK" button.
The "Preferences" dialog will close. - Move the contents of the folder at the previous path of the "Sketchbook location" preference (
C:\Users\Chris Angelo\OneDrive\文件\Arduino) to the new location.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.

