Mark and Daniel,
Is there a way to compile fastled as a standalone AVR application. A year ago I use to include in my projects the arduino headers and bang was able to compile. Now with the latest Master I am getting tons of compile errors.
Mark and Daniel,
Is there a way to compile fastled as a standalone AVR application. A year ago I use to include in my projects the arduino headers and bang was able to compile. Now with the latest Master I am getting tons of compile errors.
I need a bit more information to be able to help - what are you using to try and build and what compiler errors are you seeing?
I am using avr-gcc 3.8.1 and Eclipse (auto-make file)… I have imported into my project the source tree.
Here are a few of the thousands errors:
I’ve included a build log.
Oops here is the build log: http://www.filedropper.com/buildlogtxt
What avr platform are you building for? It looks like you are missing pin definitions which most likely means that you are either building for an avr variant that isn’t explicitly supported or you aren’t defining platform defines properly.
Also - be aware that I’m currently developing/building against the 4.x series of gcc compilers - there’s no guarantee that the code will continue to be buildable on older compilers (and as I take more advantage of modern c++ features, 10 year old compilers like the gcc 3.x tree, won’t be supported at all anymore).
There are folks here who have built with avr studio, but I don’t know of anyone using eclipse.
Your file dropper link says the file is 0 bytes.
Also, because errors like this tend to cascade, I need to see the beginning of your log file, a random selection part way through isn’t useful - it would also be helpful to see the compiler command lines that are being used.
Daniel the filedrop is now working. Please don’t spend time on this I’ll just use the older version of fastled that worked for me.
Yeah - your setup is missing basic things - like no definition for NULL (defined in stddef.h - i’ll make sure FastLED.h includes that one) or basic types like byte (defined in wiring.h in arduino environments) or, for avr environments, types like RwReg.
Also lacking functions used in the arduino (and related) environments like micros (used for timing).
Missing type information is definitely going to cascade across a wide range of files/errors like that.
I suspect that the arduino headers that you need to include have changed somewhat, and/or what you’re including isn’t including everything needed by the library.