LowPowerLab Forum

Hardware support => CurrentRanger => Topic started by: NewLux on July 30, 2019, 07:15:25 AM

Title: Error compiling [solved]
Post by: NewLux on July 30, 2019, 07:15:25 AM
Hello,
I try to compile the software on Arduino IDE.

I add the four libraries. (I can add directly: FlashStorage and Adafruit_FreeTouch with Sketch>Include library> Add .ZIP files)
Then, I had to add cppsrc and csrc (the two main folders of https://github.com/olikraus/u8g2/wiki/u8g2reference)
Also: I added ATMEL (and there is sam.h in it)

But I have after few seconds:
In file included from C:\Users\User\AppData\Local\Arduino15\packages\Moteino\hardware\samd\1.2.0\variants\current_ranger\variant.h:41:0,

                 from C:\Users\User\AppData\Local\Arduino15\packages\Moteino\hardware\samd\1.2.0\variants\current_ranger\variant.cpp:107:

C:\Users\User\AppData\Local\Arduino15\packages\Moteino\hardware\samd\1.2.0\cores\arduino/WVariant.h:22:10: fatal error: sam.h: No such file or directory

#include "sam.h"

          ^~~~~~~

compilation terminated.

exit status 1
Error compiling for board CurrentRanger.


Did you have the same issue ?

Thank you
Title: Re: Error compiling
Post by: NewLux on July 30, 2019, 07:24:47 AM
I see an update in the Library manager.
I can compile now.
Thank you