Author Topic: Error compiling [solved]  (Read 1339 times)

NewLux

  • NewMember
  • *
  • Posts: 2
Error compiling [solved]
« 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:
Code: [Select]
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

NewLux

  • NewMember
  • *
  • Posts: 2
Re: Error compiling
« Reply #1 on: July 30, 2019, 07:24:47 AM »
I see an update in the Library manager.
I can compile now.
Thank you