Sketch fails to compile

First I hope that this is the correct forum or section for this problem.

I am using or trying some of the examples in the FastLED-master folder, and want to upload a demo sketch to my genuine Arduino Uno, but it fails to compile with this message:

In file included from /tmp/arduino_build_773936/sketch/FastLED.h:44:0,
from /home/rob/sketchbook/FastLED-master/examples/Cylon/Cylon.ino:1:
/tmp/arduino_build_773936/sketch/led_sysdefs.h:32:43: fatal error: platforms/avr/led_sysdefs_avr.h: No such file or directory
#include "platforms/avr/led_sysdefs_avr.h"
^
compilation terminated.
exit status 1
Error compiling for board Arduino/Genuino Uno.

Now as it is telling me that the platforms/avr/led_sysdefs_avr.h is missing, I then checked the platforms/avr folder to see that the said file was there, and NOT missing

How can I get round this error.
Thanks

avalon66:
Now as it is telling me that the platforms/avr/led_sysdefs_avr.h is missing,

What is the full path name of the file that you have found?

When there is a #include with the filename in quotes it usually expects to find the file in the same directory as your .ino file

I wonder if you have installed the library correctly, or if deleting it and re-installing it would help.

...R

Robin2:
When there is a #include with the filename in quotes it usually expects to find the file in the same directory as your .ino file

Actually in this case the problematic #include directive is in led_sysdefs.h so it expects to find it relative to the location file. The error message is kind of confusing with the multiple files it references so it's hard to tell exactly which file the #include directive is in.

I agree that we need more information. The paths in the error message seem odd to me.

   from /home/rob/sketchbook/FastLED-master/examples/Cylon/Cylon.ino:1:

This implies that you manually installed the FastLED library from a .zip into your sketchbook folder, not your sketchbook/libraries folder.

I recommend you delete that folder (sketchbook/FastLED-master) and use Library Manager to install the latest "FastLED by Daniel Garcia" (I have version 3.002.000). I did that and was able to open and verify File->Examples->FastLED->Cylon without error

Thanks, that has done it for me now.

And yes I installed the FastLED Master from a zip file. I now must remember not to do that in future.

avalon66:
And yes I installed the FastLED Master from a zip file. I now must remember not to do that in future.

If you can't find a library in Library Manager (there are MANY that aren't there) and you can download a .zip from Github or somewhere, using "Sketch->Include Library->Add .ZIP Library" should put the library in the right place. Once a library is installed you should find the library examples in: File->Examples->Library Name->