RoundyFi icon indicating copy to clipboard operation
RoundyFi copied to clipboard

Fails to compile

Open davidgs opened this issue 1 year ago • 0 comments

The Roundy_Time demo app fails to build:

Arduino: 1.8.20 Hourly Build 2022/04/25 09:35 (Mac OS X), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"
/var/folders/qj/29prys7s1lq__4xzjsfmxjkm0000gn/T/arduino_build_242976/sketch/Roundy-Time.ino.cpp -o /var/folders/qj/29prys7s1lq__4xzjsfmxjkm0000gn/T/arduino_build_242976/sketch/Roundy-Time.ino.cpp.o
Roundy-Time:16:1: error: 'Arduino_DataBus' does not name a type
   16 | Arduino_DataBus *bus = new Arduino_ESP8266SPI(2 /* DC */, 15 /* CS */);
      | ^~~~~~~~~~~~~~~
Roundy-Time:17:1: error: 'Arduino_GFX' does not name a type; did you mean 'Arduino_h'?
   17 | Arduino_GFX *gfx = new Arduino_GC9A01(bus, 16 /* RST */, 0 /* rotation */, true /* IPS */);
      | ^~~~~~~~~~~
      | Arduino_h
/Users/davidgs/Documents/Arduino/Roundy-Time/Roundy-Time.ino: In function 'void setup()':
Roundy-Time:88:5: error: 'gfx' was not declared in this scope
   88 |     gfx->begin();
      |     ^~~
Roundy-Time:22:20: error: 'BLACK' was not declared in this scope
   22 | #define BACKGROUND BLACK
      |                    ^~~~~
/Users/davidgs/Documents/Arduino/Roundy-Time/Roundy-Time.ino:89:21: note: in expansion of macro 'BACKGROUND'
   89 |     gfx->fillScreen(BACKGROUND);
      |                     ^~~~~~~~~~
/Users/davidgs/Documents/Arduino/Roundy-Time/Roundy-Time.ino: In function 'void loop()':
Roundy-Time:148:5: error: 'gfx' was not declared in this scope
  148 |     gfx->setCursor(89, 85);
      |     ^~~
Roundy-Time:149:23: error: 'ORANGE' was not declared in this scope; did you mean 'CHANGE'?
  149 |     gfx->setTextColor(ORANGE);
      |                       ^~~~~~
      |                       CHANGE
/Users/davidgs/Documents/Arduino/Roundy-Time/Roundy-Time.ino: In function 'void draw_round_clock_mark(int16_t, int16_t, int16_t, int16_t, int16_t, int16_t)':
Roundy-Time:23:20: error: 'WHITE' was not declared in this scope
   23 | #define MARK_COLOR WHITE
      |                    ^~~~~
/Users/davidgs/Documents/Arduino/Roundy-Time/Roundy-Time.ino:220:11: note: in expansion of macro 'MARK_COLOR'
  220 |       c = MARK_COLOR;
      |           ^~~~~~~~~~
Roundy-Time:23:20: error: 'WHITE' was not declared in this scope
   23 | #define MARK_COLOR WHITE
      |                    ^~~~~
/Users/davidgs/Documents/Arduino/Roundy-Time/Roundy-Time.ino:226:11: note: in expansion of macro 'MARK_COLOR'
  226 |       c = MARK_COLOR;
      |           ^~~~~~~~~~
Roundy-Time:24:23: error: 'RED' was not declared in this scope
   24 | #define SUBMARK_COLOR RED // LIGHTGREY
      |                       ^~~
/Users/davidgs/Documents/Arduino/Roundy-Time/Roundy-Time.ino:232:11: note: in expansion of macro 'SUBMARK_COLOR'
  232 |       c = SUBMARK_COLOR;
      |           ^~~~~~~~~~~~~
Roundy-Time:243:5: error: 'gfx' was not declared in this scope
  243 |     gfx->drawLine(x0, y0, x1, y1, c);
      |     ^~~
/Users/davidgs/Documents/Arduino/Roundy-Time/Roundy-Time.ino: In function 'void draw_square_clock_mark(int16_t, int16_t, int16_t, int16_t, int16_t, int16_t)':
Roundy-Time:23:20: error: 'WHITE' was not declared in this scope
   23 | #define MARK_COLOR WHITE
      |                    ^~~~~
/Users/davidgs/Documents/Arduino/Roundy-Time/Roundy-Time.ino:259:17: note: in expansion of macro 'MARK_COLOR'
  259 |             c = MARK_COLOR;
      |                 ^~~~~~~~~~
Roundy-Time:23:20: error: 'WHITE' was not declared in this scope
   23 | #define MARK_COLOR WHITE
      |                    ^~~~~
/Users/davidgs/Documents/Arduino/Roundy-Time/Roundy-Time.ino:265:17: note: in expansion of macro 'MARK_COLOR'
  265 |             c = MARK_COLOR;
      |                 ^~~~~~~~~~
Roundy-Time:24:23: error: 'RED' was not declared in this scope
   24 | #define SUBMARK_COLOR RED // LIGHTGREY
      |                       ^~~
/Users/davidgs/Documents/Arduino/Roundy-Time/Roundy-Time.ino:271:17: note: in expansion of macro 'SUBMARK_COLOR'
  271 |             c = SUBMARK_COLOR;
      |                 ^~~~~~~~~~~~~
Roundy-Time:306:9: error: 'gfx' was not declared in this scope
  306 |         gfx->drawLine(x0, y0, x1, y1, c);
      |         ^~~
/Users/davidgs/Documents/Arduino/Roundy-Time/Roundy-Time.ino: In function 'void redraw_hands_cached_draw_and_erase()':
Roundy-Time:312:5: error: 'gfx' was not declared in this scope
  312 |     gfx->startWrite();
      |     ^~~
Roundy-Time:27:22: error: 'YELLOW' was not declared in this scope
   27 | #define SECOND_COLOR YELLOW
      |                      ^~~~~~
/Users/davidgs/Documents/Arduino/Roundy-Time/Roundy-Time.ino:313:58: note: in expansion of macro 'SECOND_COLOR'
  313 |     draw_and_erase_cached_line(center, center, nsx, nsy, SECOND_COLOR, cached_points, sHandLen + 1, false, false);
      |                                                          ^~~~~~~~~~~~
Roundy-Time:25:20: error: 'WHITE' was not declared in this scope
   25 | #define HOUR_COLOR WHITE
      |                    ^~~~~
/Users/davidgs/Documents/Arduino/Roundy-Time/Roundy-Time.ino:314:58: note: in expansion of macro 'HOUR_COLOR'
  314 |     draw_and_erase_cached_line(center, center, nhx, nhy, HOUR_COLOR, cached_points + ((sHandLen + 1) * 2), hHandLen + 1, true, false);
      |                                                          ^~~~~~~~~~
Roundy-Time:26:22: error: 'BLUE' was not declared in this scope
   26 | #define MINUTE_COLOR BLUE // LIGHTGREY
      |                      ^~~~
/Users/davidgs/Documents/Arduino/Roundy-Time/Roundy-Time.ino:315:58: note: in expansion of macro 'MINUTE_COLOR'
  315 |     draw_and_erase_cached_line(center, center, nmx, nmy, MINUTE_COLOR, cached_points + ((sHandLen + 1 + hHandLen + 1) * 2), mHandLen + 1, true, true);
      |                                                          ^~~~~~~~~~~~
/Users/davidgs/Documents/Arduino/Roundy-Time/Roundy-Time.ino: In function 'void draw_and_erase_cached_line(int16_t, int16_t, int16_t, int16_t, int16_t, int16_t*, int16_t, bool, bool)':
Roundy-Time:324:18: error: '_diff' was not declared in this scope
  324 |     bool steep = _diff(y1, y0) > _diff(x1, x0);
      |                  ^~~~~
Roundy-Time:327:9: error: '_swap_int16_t' was not declared in this scope; did you mean '__int16_t'?
  327 |         _swap_int16_t(x0, y0);
      |         ^~~~~~~~~~~~~
      |         __int16_t
Roundy-Time:22:20: error: 'BLACK' was not declared in this scope
   22 | #define BACKGROUND BLACK
      |                    ^~~~~
/Users/davidgs/Documents/Arduino/Roundy-Time/Roundy-Time.ino:366:43: note: in expansion of macro 'BACKGROUND'
  366 |                 write_cache_pixel(ox, oy, BACKGROUND, cross_check_second, cross_check_hour);
      |                                           ^~~~~~~~~~
Roundy-Time:22:20: error: 'BLACK' was not declared in this scope
   22 | #define BACKGROUND BLACK
      |                    ^~~~~
/Users/davidgs/Documents/Arduino/Roundy-Time/Roundy-Time.ino:385:39: note: in expansion of macro 'BACKGROUND'
  385 |             write_cache_pixel(ox, oy, BACKGROUND, cross_check_second, cross_check_hour);
      |                                       ^~~~~~~~~~
/Users/davidgs/Documents/Arduino/Roundy-Time/Roundy-Time.ino: In function 'void write_cache_pixel(int16_t, int16_t, int16_t, bool, bool)':
Roundy-Time:418:5: error: 'gfx' was not declared in this scope
  418 |     gfx->writePixel(x, y, color);
      |     ^~~
/Users/davidgs/Documents/Arduino/Roundy-Time/Roundy-Time.ino: At global scope:
/Users/davidgs/Documents/Arduino/Roundy-Time/Roundy-Time.ino:56:17: warning: 'last_cached_point' defined but not used [-Wunused-variable]
   56 | static int16_t *last_cached_point;
      |                 ^~~~~~~~~~~~~~~~~
/Users/davidgs/Documents/Arduino/Roundy-Time/Roundy-Time.ino:55:17: warning: 'cached_points_idx' defined but not used [-Wunused-variable]
   55 | static uint16_t cached_points_idx = 0;
      |                 ^~~~~~~~~~~~~~~~~
/Users/davidgs/Documents/Arduino/Roundy-Time/Roundy-Time.ino:50:34: warning: 'yMax' defined but not used [-Wunused-variable]
   50 | static int16_t xMin, yMin, xMax, yMax;                               // redraw range
      |                                  ^~~~
/Users/davidgs/Documents/Arduino/Roundy-Time/Roundy-Time.ino:50:28: warning: 'xMax' defined but not used [-Wunused-variable]
   50 | static int16_t xMin, yMin, xMax, yMax;                               // redraw range
      |                            ^~~~
/Users/davidgs/Documents/Arduino/Roundy-Time/Roundy-Time.ino:50:22: warning: 'yMin' defined but not used [-Wunused-variable]
   50 | static int16_t xMin, yMin, xMax, yMax;                               // redraw range
      |                      ^~~~
/Users/davidgs/Documents/Arduino/Roundy-Time/Roundy-Time.ino:50:16: warning: 'xMin' defined but not used [-Wunused-variable]
   50 | static int16_t xMin, yMin, xMax, yMax;                               // redraw range
      |                ^~~~
Using library Adafruit_GFX_Library at version 1.11.5 in folder: /Users/davidgs/Documents/Arduino/libraries/Adafruit_GFX_Library 
Using library Adafruit_BusIO at version 1.14.1 in folder: /Users/davidgs/Documents/Arduino/libraries/Adafruit_BusIO 
Using library Wire at version 1.0 in folder: /Users/davidgs/Library/Arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/Wire 
Using library SPI at version 1.0 in folder: /Users/davidgs/Library/Arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SPI 
Using library ESP8266WiFi at version 1.0 in folder: /Users/davidgs/Library/Arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/ESP8266WiFi 
Using library NTPClient at version 3.2.1 in folder: /Users/davidgs/Documents/Arduino/libraries/NTPClient 
exit status 1
'Arduino_DataBus' does not name a type

i think I have the right libraries installed (it's hard to tell since the README doesn't lit them, but just has screenshots of the Library Manager screen)

davidgs avatar May 23 '23 18:05 davidgs