leonvandenbeukel / 3D-7-Segment-Digital-Clock

3D Printed 7 Segment Digital Clock with multi color LEDs
MIT License
171 stars 70 forks source link

Problems compiling #22

Open m0nde opened 3 years ago

m0nde commented 3 years ago

I am no expert in Arduino and trying to build this clock for my son. I have built the hardware and he has printed all the clock pieces. When I compile the code for the nano I get this error. Can someone please help me get past this issue please? Arduino: 1.8.13 (Windows 10), Board: "Arduino Nano, ATmega328P"

In file included from C:\Users\nigel\Documents\Arduino\libraries\src/bitswap.h:4:0,

             from C:\Users\nigel\Documents\Arduino\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock\3D-7-Segment-Digital-Clock.ino:1:

C:\Users\nigel\Documents\Arduino\libraries\src/FastLED.h:14:21: note: #pragma message: FastLED version 3.004.000

pragma message "FastLED version 3.004.000"

                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~

C:\Users\nigel\AppData\Local\Temp\ccKsavlE.ltrans0.ltrans.o: In function `displayClock':

C:\Users\nigel\Documents\Arduino\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock/3D-7-Segment-Digital-Clock.ino:267: undefined reference to `RTC_DS3231::now()'

C:\Users\nigel\AppData\Local\Temp\ccKsavlE.ltrans0.ltrans.o: In function `processCommand':

C:\Users\nigel\Documents\Arduino\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock/3D-7-Segment-Digital-Clock.ino:240: undefined reference to `DateTime::DateTime(unsigned int, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)'

C:\Users\nigel\Documents\Arduino\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock/3D-7-Segment-Digital-Clock.ino:240: undefined reference to `RTC_DS3231::adjust(DateTime const&)'

C:\Users\nigel\AppData\Local\Temp\ccKsavlE.ltrans0.ltrans.o: In function `global constructors keyed to 65535_0_3D_7_Segment_Digital_Clock.ino.cpp.o.4410':

:(.text.startup+0x1bc): undefined reference to `Timer::Timer()' :(.text.startup+0x1c4): undefined reference to `Timer::Timer()' :(.text.startup+0x1cc): undefined reference to `Timer::Timer()' C:\Users\nigel\AppData\Local\Temp\ccKsavlE.ltrans0.ltrans.o: In function `setup': C:\Users\nigel\Documents\Arduino\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock/3D-7-Segment-Digital-Clock.ino:118: undefined reference to `RTC_DS3231::begin()' C:\Users\nigel\Documents\Arduino\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock/3D-7-Segment-Digital-Clock.ino:123: undefined reference to `RTC_DS3231::lostPower()' C:\Users\nigel\Documents\Arduino\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock/3D-7-Segment-Digital-Clock.ino:126: undefined reference to `DateTime::DateTime(__FlashStringHelper const*, __FlashStringHelper const*)' C:\Users\nigel\Documents\Arduino\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock/3D-7-Segment-Digital-Clock.ino:126: undefined reference to `RTC_DS3231::adjust(DateTime const&)' C:\Users\nigel\Documents\Arduino\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock/3D-7-Segment-Digital-Clock.ino:129: undefined reference to `Timer::every(unsigned long, void (*)())' C:\Users\nigel\Documents\Arduino\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock/3D-7-Segment-Digital-Clock.ino:130: undefined reference to `Timer::every(unsigned long, void (*)())' C:\Users\nigel\Documents\Arduino\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock/3D-7-Segment-Digital-Clock.ino:131: undefined reference to `Timer::every(unsigned long, void (*)())' C:\Users\nigel\AppData\Local\Temp\ccKsavlE.ltrans0.ltrans.o: In function `loop': C:\Users\nigel\Documents\Arduino\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock/3D-7-Segment-Digital-Clock.ino:137: undefined reference to `Timer::update()' C:\Users\nigel\Documents\Arduino\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock/3D-7-Segment-Digital-Clock.ino:138: undefined reference to `Timer::update()' C:\Users\nigel\Documents\Arduino\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock/3D-7-Segment-Digital-Clock.ino:139: undefined reference to `Timer::update()' collect2.exe: error: ld returned 1 exit status exit status 1 Error compiling for board Arduino Nano. This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.
Alex-Ender35 commented 1 year ago

Hello, m0nde, you managed to solve your problem with the compilation errors. If so, how?

Alex-Ender35 commented 1 year ago

Which libraries have you used? Or maybe you have made changes in the firmware code?

m0nde commented 1 year ago

Sorry no luck here

kind regards

Nigel

On Thu, 15 Jun 2023, 02:36 Alex-Ender35, @.***> wrote:

Hello, m0nde, you managed to solve your problem with the compilation errors. If so, how?

— Reply to this email directly, view it on GitHub https://github.com/leonvandenbeukel/3D-7-Segment-Digital-Clock/issues/22#issuecomment-1592201153, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACJHOW2OUBRURH4WYW3SLXDXLJRJDANCNFSM44FM7I6A . You are receiving this because you authored the thread.Message ID: @.*** com>

Alex-Ender35 commented 1 year ago

Извините, здесь не повезло, с уважением, Найджел. Чт, 15 Июн 2023, 02:36 Alex-Ender35, @.> написал: Здравствуйте, m0nde, вам удалось решить проблему с ошибками компиляции. Если да, то как? — Ответьте на это письмо напрямую, просмотрите его на GitHub < # 22 (комментарий) > или отмените подписку < https://github.com/notifications/unsubscribe-auth/ACJHOW2OUBRURH4WYW3SLXDXLJRJDANCNFSM44FM7I6A > . Вы получили это сообщение, потому что являетесь автором темы. Идентификатор сообщения: @. com>

Alex-Ender35 commented 1 year ago

Dear Nigel, I am very sorry that you did not succeed. I was able to solve the problem 5 minutes ago. In the author's sketch, there are links to the necessary libraries. After installing them, everything worked. If you are still interested, try installing them. Sincerely, Alex.

Genasaf commented 1 month ago

Все работает скетч грузится