wfdudley / T-watch-2020

a watch project for the TTGO T-watch-2020 version 1
BSD 3-Clause "New" or "Revised" License
85 stars 27 forks source link

my_tz.cpp:11:8: error: 'ace_time::BasicZoneManager' is not a template #38

Open yonggithub opened 2 years ago

yonggithub commented 2 years ago

My device is T-watch-2020 v2. Unable to compile this project, and prompt an error: my_tz.cpp:11:8: error: 'ace_time::BasicZoneManager' is not a template.

 static BasicZoneManager<CACHE_SIZE> manager(
        ^
my_tz.cpp:12:53: error: no matching function for call to 'ace_time::BasicZoneManager::BasicZoneManager(const uint16_t&, const ace_time::basic::ZoneInfo* const [258])'
     zonedb::kZoneRegistrySize, zonedb::kZoneRegistry);
                                                     ^
In file included from C:\Users\81274664\Documents\Arduino\libraries\AceTime\src/AceTime.h:53:0,
                 from C:\Users\81274664\Documents\Arduino\DudleyWatch\my_tz.cpp:3:
C:\Users\81274664\Documents\Arduino\libraries\AceTime\src/ace_time/ZoneManager.h:224:5: note: candidate: ace_time::BasicZoneManager::BasicZoneManager(uint16_t, const ace_time::basic::ZoneInfo* const*, ace_time::BasicZoneProcessorCacheBase&)
     BasicZoneManager(
     ^
C:\Users\81274664\Documents\Arduino\libraries\AceTime\src/ace_time/ZoneManager.h:224:5: note:   candidate expects 3 arguments, 2 provided
C:\Users\81274664\Documents\Arduino\DudleyWatch\play_sound.cpp: In function 'void beep(int8_t)':
play_sound.cpp:64:20: error: 'TWATCH_DAC_IIS_BCK' was not declared in this scope
     out->SetPinout(TWATCH_DAC_IIS_BCK, TWATCH_DAC_IIS_WS, TWATCH_DAC_IIS_DOUT);
                    ^
play_sound.cpp:64:40: error: 'TWATCH_DAC_IIS_WS' was not declared in this scope
     out->SetPinout(TWATCH_DAC_IIS_BCK, TWATCH_DAC_IIS_WS, TWATCH_DAC_IIS_DOUT);
                                        ^
play_sound.cpp:64:59: error: 'TWATCH_DAC_IIS_DOUT' was not declared in this scope
     out->SetPinout(TWATCH_DAC_IIS_BCK, TWATCH_DAC_IIS_WS, TWATCH_DAC_IIS_DOUT);
                                                           ^
exit status 1
'ace_time::BasicZoneManager' is not a template

Do any process I miss to do?

image

below is my config.h
image

wfdudley commented 2 years ago

Hi.

I don't have that watch, and, more importantly, I didn't write the Ace-time library.

Good luck. Bill Dudley

sent from my Linux phone

On Fri, Apr 1, 2022, 4:05 AM JohnTang @.***> wrote:

My device is T-watch-2020 v2. Unable to compile this project, and prompt an error: my_tz.cpp:11:8: error: 'ace_time::BasicZoneManager' is not a template.

Do any process I miss to do?

[image: image] https://user-images.githubusercontent.com/25076827/161221340-b224471b-defa-4921-9216-94c3ffd5174b.png

below is my config.h [image: image] https://user-images.githubusercontent.com/25076827/161221872-3782d34c-cbee-407c-b0e3-df17230a6b04.png

— Reply to this email directly, view it on GitHub https://github.com/wfdudley/T-watch-2020/issues/38, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI4VYU3OMHGUOH3CAQZE4GLVC2U4ZANCNFSM5SH4FJCQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

czesioG commented 2 years ago

Hi, simply change acetime library to 1.8.2. For all above the code needs to be rewritten - https://github.com/bxparks/AceTime/blob/develop/MIGRATING.md#MigratingToVersion190 BTW I use 2020 v3 and the code works (at least it was compiled ok and uploded)