Compilation error: SparkFun_VL53L5CX_Arduino_Library.h: No such file or directory

I have downloaded the ‘SparkFun_VL53L5CX_Arduino_Library’ version 1.0.3 and checked that it is installed in lbrary directory but it stills showing up this error. My arduino version is 2.1.0

I am using arduino elecgoo uno r3 right now, could this be the problem?

When I first installed v2.x.x, I had to go and remove all other instances of the Arduino files (from my apdata folder) of the previous/uninstalled IDE (v1.8.x). It seemed like the Arduino IDE v2.x.x was placing libraries and board packages in the old folders and having issues locating them. Also, previously installed libraries/board packages were showing up, but the IDE couldn’t access them.

I would recommend uninstalling and deleting everything, so you can start off with a clean slate. Kind of a pain, but that seemed to do the job for me.

Thank you for the replied. I’ve never downloaded any old version before, this is my first time downloading the newest version on this computer. I have tried deleting and download again but it stills could not find the library

So, I just tested it out… looks like there is a compiler error. I’ll pass along a message to our engineering team to take a look.

In the meantime, try using an earlier version of the Arduino IDE. It seems to compile fine with v1.8.19

Update:

I just realized your issue. The Atmega328 doesn’t have enough memory to store the firmware… which is why you are getting a compiler error. For more information, please refer to the hookup guide: https://learn.sparkfun.com/tutorials/qw … are-hookup

Okay I will consider it but I have not complied anything, I was just verifying the code by using the example from Sparkfun Vl53l5cx library and tried using version 1.8.19 and the error said

C:user… then sorry, unimplemented: non-trivial designated initializers not supported

exit status 1

Error compiling for board Arduino Uno.

Although, I tried using just the one line coding for “#include <SparkFun_VL53L5CX_Library.h>” and it is the same error, so I think the problem now is about my library.

So when you click on the verify button, that runs the compiler for the microcontroller (the upload button does the same proccess, but then uploads the compiled code to the microcontroller)… this is where the error is coming from. The error message is occuring because the library doesn’t work with the Uno; it doesn’t have enough flash memory.

The issue is in the compatibility of your board/microcontroller and the library. Try verifying the code with another microcontroller with enough memory; for example an ESP32 or SAMD21.