Error when compiling U8glib No such directory

Hello,

Since I am no guru, I am having a hard time placing this question. I don’t know if it is an Adruino IDE, ATOM, Platformio IDE, or windows 10 problem. Thus being said, if this is not the right area, I ask the Arduino guru’s to take pitty on me and help me please.

When trying to compile, even the original unmodified ATOM platformio IDE build that successfully compiles in that program, even before modifying any parameters, if I try to compile in Arduino 1.8.10, I receive the following error. I did notice the error (in .png form attached to this post) in ATOM platfomrio IDE
I uninstalled Arduino and reinstalled, I also re-uploaded a new project to ATOM and started over from scratch, but I encountered the exact same problem with the second attempt.

I am definitely not a C++, g++, python guru ! please keep it really simple. I thank you in advance.

Arduino: 1.8.10 (Windows 10), Board: “Arduino/Genuino Uno”

sketch\src\HAL\HAL_AVR\u8g_com_HAL_AVR_sw_spi.cpp:65:10: fatal error: U8glib.h: No such file or directory

#include <U8glib.h>

^~~~~~~~~~

compilation terminated.

exit status 1
Error compiling for board Arduino/Genuino Uno.

This report would have more information with
“Show verbose output during compilation”
option enabled in File → Preferences.

You're probably in the right place, but maybe in the wrong section.

The Arduino IDE expects libraries in certain locations. Where did you install the U8glib library (if you installed it at all).

sterretje:
Where did you install the U8glib library (if you installed it at all).

While we dont know where/how/if he installed that library, we can clearly rule out one possibility, namely that he installed it correctly; that error indicates that as far as it knows, the library is not installed

Hello, I would like to ask for your expertise on a very annoying and time consuming problem please.

When trying to compile in ATOM 1.41.0 x 64 using a platformio ide extension, I receive an error [-Wunused-variable]. The file in question comes from Marlin Github “Marlin-bugfix-2.0.x”. I beleive the path is (Marlin-bugfix-2.0.x/Marlin/src/HAL/HAL_AVR/u8g_com_HAL_AVR_sw_sp.cpp). The exact error (which does not keep me from compiling successfully) is;
.pio\libdeps\LPC1768\U8glib-HAL_ID1932\src\clib\U8g_com_i2c.c:44:16: warning: ‘u8g_i2c_opt’ defined but not used [-Wunused-variable] static uint8_t u8g_i2c_opt; /* U8G_I2C_OPT_NO_ACK, SAM: U8G_I2C_OPT_DEV_1 */
The files compile successfully, but when trying to compile in Arduino Marlin with the Marlin.ino file, I receive the following error (minus what I have to delete because it passes the 9000 characters allowed by this site) and cannot compile.

Arduino: 1.8.10 (Windows 10), Board: “Arduino/Genuino Uno”

D:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware D:\Program Files (x86)\Arduino\hardware -tools D:\Program Files (x86)\Arduino\tools-builder -tools D:\Program Files (x86)\Arduino\hardware\tools\avr -built-in-libraries D:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Rods account\Documents\Arduino\libraries -fqbn=arduino:avr:uno -ide-version=10810 -build-path C:\Users\RODSAC1\AppData\Local\Temp\arduino_build_534461 -warnings=none -build-cache C:\Users\RODSAC1\AppData\Local\Temp\arduino_cache_382076 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=D:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino5.path=D:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=D:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=D:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=D:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=D:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Users\Rods account\Desktop\3D printer\Marlin-bugfix-2.0.x\Marlin\Marlin.ino
D:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware D:\Program Files (x86)\Arduino\hardware -tools D:\Program Files (x86)\Arduino\tools-builder -tools D:\Program Files (x86)\Arduino\hardware\tools\avr -built-in-libraries D:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Rods account\Documents\Arduino\libraries -fqbn=arduino:avr:uno -ide-version=10810 -build-path C:\Users\RODSAC1\AppData\Local\Temp\arduino_build_534461 -warnings=none -build-cache C:\Users\RODSAC1\AppData\Local\Temp\arduino_cache_382076 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=D:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino5.path=D:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=D:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=D:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=D:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=D:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Users\Rods account\Desktop\3D printer\Marlin-bugfix-2.0.x\Marlin\Marlin.ino
Using board ‘uno’ from platform in folder: D:\Program
Using core ‘arduino’ from platform in folder: D:\Program
Detecting libraries used…

Error while detecting libraries included by C:\Users\RODSAC1\AppData\Local\Temp\arduino_build_534461\sketch\src\HAL\HAL_AVR\HAL_SPI.cpp
“D:\Program Files (x86)\Arduino\hardware\tools\avr/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=10810 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR “-ID:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino” “-ID:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard” “C:\Users\RODSAC
1\AppData\Local\Temp\arduino_build_534461\sketch\src\HAL\HAL_AVR\MarlinSerial.cpp” -o nul
Error while detecting libraries included by C:\Users\RODSAC1\AppData\Local\Temp\arduino_build_534461\sketch\src\HAL\HAL_AVR\MarlinSerial.cpp
“D:\Program Files (x86)\Arduino\hardware\tools\avr/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=10810 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR “-ID:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino” “-ID:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard” “C:\Users\RODSAC
1\AppData\Local\Temp\arduino_build_534461\sketch\src\HAL\HAL_AVR\Servo.cpp” -o nul
Error while detecting libraries included by C:\Users\RODSAC1\AppData\Local\Temp\arduino_build_534461\sketch\src\HAL\HAL_AVR\Servo.cpp
“D:\Program Files (x86)\Arduino\hardware\tools\avr/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=10810 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR “-ID:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino” “-ID:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard” “C:\Users\RODSAC
1\AppData\Local\Temp\arduino_build_534461\sketch\src\HAL\HAL_AVR\fast_pwm.cpp” -o nul
“D:\Program Files (x86)\Arduino\hardware\tools\avr/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=10810 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR “-ID:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino” “-ID:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard” “C:\Users\RODSAC1\AppData\Local\Temp\arduino_build_534461\sketch\src\HAL\HAL_AVR\fastio.cpp” -o nul
“D:\Program Files (x86)\Arduino\hardware\tools\avr/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=10810 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR “-ID:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino” “-ID:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard” “C:\Users\RODSAC
1\AppData\Local\Temp\arduino_build_534461\sketch\src\HAL\HAL_AVR\persistent_store_eeprom.cpp” -o nul
Error while detecting libraries included by C:\Users\RODSAC1\AppData\Local\Temp\arduino_build_534461\sketch\src\HAL\HAL_AVR\persistent_store_eeprom.cpp
“D:\Program Files (x86)\Arduino\hardware\tools\avr/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=10810 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR “-ID:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino” “-ID:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard” “C:\Users\RODSAC
1\AppData\Local\Temp\arduino_build_534461\sketch\src\HAL\HAL_AVR\u8g_com_HAL_AVR_sw_spi.cpp” -o nul
Alternatives for U8glib.h:
C:\Users\RODSAC~1\AppData\Local\Temp\arduino_build_534461\sketch\src\HAL\HAL_AVR\u8g_com_HAL_AVR_sw_spi.cpp:65:10: fatal error: U8glib.h: No such file or directory
ResolveLibrary(U8glib.h)

#include <U8glib.h>

→ candidates: ^~~~~~~~~~

compilation terminated.

exit status 1
Error compiling for board Arduino/Genuino Uno.

Any help would be GREATLY appreciated.

It looks like the U8glib is not installed. I would expect that to happen automatically because it is defined in Marlin's platformio.ini file as a dependency, but I don't know enough about platformio to say whether the dependencies are installed automatically or not. You can download the library here:
https://github.com/MarlinFirmware/U8glib-HAL/archive/bugfix.zip

I've merged your cross posts @Rod3d.

Cross posting is against the rules of the forum. The reason is that duplicate posts can waste the time of the people trying to help. Someone might spend 15 minutes writing a detailed answer on this thread, without knowing that someone else already did the same in the other thread.

Repeated cross posting will result in a suspension from the forum.

In the future, please take some time to pick the forum section that best suits the topic of your question and then only post once to that forum section. This is basic forum etiquette, as explained in the sticky "How to use this forum - please read." post you will find at the top of every forum section. It contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.