Кто любит RISC в жизни, заходим, не стесняемся.
Ответить

В IDE отваливаются библиотеки

Вт мар 06, 2018 23:23:11

Версия IDE - 1.6.6
библиотеки:
Adafruit_GFX
Adafruit-PCD8544-Nokia-5110-LCD-library-master
LCD5110_Basic

Пытаюсь положить в соовтествующую папку - ошибка в компиляции кода. Пытаюсь инсталлировать библиотеку зип архивом через меню - снова ошибка при компиляции кода. Даже если не обращаться к библиотеке по средствам кода, только подключить ее.
ПРимер ошибки:
Код:
In file included from C:\Users\REB\Documents\Arduino\PROBNI_SKETCH\PROBNI_SKETCH.ino\PROBNI_SKETCH.ino.ino:5:0:

D:\PROG\arduino-nightly\libraries\Adafruit/Adafruit_PCD8544.h:36:0: warning: "PCD8544_DISPLAYBLANK" redefined [enabled by default]

 #define PCD8544_DISPLAYBLANK 0x0

 ^

In file included from C:\Users\REB\Documents\Arduino\PROBNI_SKETCH\PROBNI_SKETCH.ino\PROBNI_SKETCH.ino.ino:1:0:

C:\Users\REB\Documents\Arduino\libraries\LCD5110_Basic/LCD5110_Basic.h:37:0: note: this is the location of the previous definition

 #define PCD8544_DISPLAYBLANK  0x00

 ^

In file included from C:\Users\REB\Documents\Arduino\PROBNI_SKETCH\PROBNI_SKETCH.ino\PROBNI_SKETCH.ino.ino:5:0:

D:\PROG\arduino-nightly\libraries\Adafruit/Adafruit_PCD8544.h:37:0: warning: "PCD8544_DISPLAYNORMAL" redefined [enabled by default]

 #define PCD8544_DISPLAYNORMAL 0x4

 ^

In file included from C:\Users\REB\Documents\Arduino\PROBNI_SKETCH\PROBNI_SKETCH.ino\PROBNI_SKETCH.ino.ino:1:0:

C:\Users\REB\Documents\Arduino\libraries\LCD5110_Basic/LCD5110_Basic.h:38:0: note: this is the location of the previous definition

 #define PCD8544_DISPLAYNORMAL  0x04

 ^

In file included from C:\Users\REB\Documents\Arduino\PROBNI_SKETCH\PROBNI_SKETCH.ino\PROBNI_SKETCH.ino.ino:5:0:

D:\PROG\arduino-nightly\libraries\Adafruit/Adafruit_PCD8544.h:38:0: warning: "PCD8544_DISPLAYALLON" redefined [enabled by default]

 #define PCD8544_DISPLAYALLON 0x1

 ^

In file included from C:\Users\REB\Documents\Arduino\PROBNI_SKETCH\PROBNI_SKETCH.ino\PROBNI_SKETCH.ino.ino:1:0:

C:\Users\REB\Documents\Arduino\libraries\LCD5110_Basic/LCD5110_Basic.h:39:0: note: this is the location of the previous definition

 #define PCD8544_DISPLAYALLON  0x01

 ^

In file included from C:\Users\REB\Documents\Arduino\PROBNI_SKETCH\PROBNI_SKETCH.ino\PROBNI_SKETCH.ino.ino:5:0:

D:\PROG\arduino-nightly\libraries\Adafruit/Adafruit_PCD8544.h:39:0: warning: "PCD8544_DISPLAYINVERTED" redefined [enabled by default]

 #define PCD8544_DISPLAYINVERTED 0x5

 ^

In file included from C:\Users\REB\Documents\Arduino\PROBNI_SKETCH\PROBNI_SKETCH.ino\PROBNI_SKETCH.ino.ino:1:0:

C:\Users\REB\Documents\Arduino\libraries\LCD5110_Basic/LCD5110_Basic.h:40:0: note: this is the location of the previous definition

 #define PCD8544_DISPLAYINVERTED  0x05

 ^

C:\Users\REB\Documents\Arduino\libraries\LCD5110_Basic\DefaultFonts.c:12:14: error: variable 'SmallFont' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

 fontdatatype SmallFont[] PROGMEM =

              ^

C:\Users\REB\Documents\Arduino\libraries\LCD5110_Basic\DefaultFonts.c:117:14: error: variable 'MediumNumbers' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

 fontdatatype MediumNumbers[] PROGMEM =

              ^

C:\Users\REB\Documents\Arduino\libraries\LCD5110_Basic\DefaultFonts.c:135:14: error: variable 'BigNumbers' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

 fontdatatype BigNumbers[] PROGMEM =

              ^

exit status 1
Ошибка компиляции. 


Установил на смартфон, получил конкретную ошибку без лишнего мата:
Gt95aPOI0Gw.jpg
(149.88 KiB) Скачиваний: 533


Вопрос, что за "файл свойств" у библиотеки и где его взять? Ну и как вообще бороться с этим глюком?

Re: В IDE отваливаются библиотеки

Ср мар 07, 2018 12:23:52

Прошу прощения за сообщение не по теме. Постил в ветке AVR (ибо Ардуино это avr) , но каким то боком оказалось в ARM
Ответить