Compiler Error: Contributed U8g2lib.h and U8glib.h Libraries Permission Denied

Hi All,

Problem: Both Library Manager installed (original) U8glib and the (Newer) U8g2 by Oliver will not compile due to access "permission denied"

Error Code Below:

Arduino: 1.8.10 (Windows 10), Board: "Sanguino, ATmega1284 or ATmega1284P (16 MHz)"

In file included from sketch\ultralcd.cpp:96:0:

Multiple libraries were found for "U8glib.h"
 Used: C:\Users\ewong_000\Documents\Arduino\libraries\U8glib
ultralcd_impl_DOGM.h:46:10: error: C:\Users\ewong_000\Documents\Arduino\libraries\U8glib\src/U8glib.h: Permission denied

 #include <U8glib.h>

          ^~~~~~~~~~

compilation terminated.

exit status 1
C:\Users\ewong_000\Documents\Arduino\libraries\U8glib\src/U8glib.h: Permission denied

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Actions Attempted:

  1. Deleted and reinstalled (via Run as Administrator)Arduino IDE 1.8.10 for Windows 10
  2. Disabled ALL UAC, Antivirus
  3. Opened Permissions to "Everyone" Full Control
  4. Changed Preferences Path for Sketchbook Location to different Drive

The one thing that looks completely odd is that the path in the error has a "\src/U8g2lib.h" listed
and not "\src\U8g2lib.h" <Maybe I'm a newbie and this is normal?>

I've checked the folder and file properties and they look OK.

What am I missing here? This is Marlin 1.1.9 Code with just Teaching Tech Ender 5 Config.h and Config.adv files

Any help would be greatly appreciated. Thanks

Ellery

I don't think that I can help.

The one thing that looks completely odd is that the path in the error has a "\src/U8g2lib.h" listed
and not "\src\U8g2lib.h" <Maybe I'm a newbie and this is normal?>

That's normal; mix of DOS and Unix style file path.

There have been multiple reports of odd behaviour with 1.8.10.

It may be worth rolling back to 1.8.9.

Additional clean up instructions attached JIC you need them.

Bob.

CLEAN UP BEFORE INSTALLING ANOTHER COPY OF THE IDE OR ARDUINO CREATE.pdf (347 KB)

Yeah, the permission denied error seems new in 1.8.10

Thanks Guys I will uninstall and try rolling back to an older release.

I will update when done. Also I wonder if there's a difference between the .msi version vs the .zip version of the installer for 1.8.10?

.msi and .zip should be the same (and in any event libraries get installed in same place anyway, your sketchbook folder), except for the msi having the automatic installer that creates shortcuts and installs drivers for you.

The app store version is not the same, though, and like most programs that come in a normal and app store version, the app store version has more weird bugs.

I think I found the problem with the "Permissions Denied" Issue for Libraries and "Developer files".

It ended up being the IOBit Malware fighter - Ramsomeware Feature that was still enabled even though I exited the software and service.

But now I have the following issue I will open a new thread on if I don't find anything in Search.
Arduino: 1.8.9 (Windows 10), Board: "Sanguino, ATmega1284 or ATmega1284P (16 MHz)"

Sketch uses 122454 bytes (94%) of program storage space. Maximum is 130048 bytes.
Global variables use 4621 bytes (28%) of dynamic memory, leaving 11763 bytes for local variables. Maximum is 16384 bytes.
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x65
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x63
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x68
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x6f
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x3a
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x54
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x46
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x20
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x63
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x61
An error occurred while uploading the sketch

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.