Błąd kompilacji w SuplaDevice 2.4.2

Awatar użytkownika
shimano73
Posty: 1968
Rejestracja: ndz lut 28, 2016 12:27 pm
Lokalizacja: Orzesze
Kontakt:

Jak w tytule mam problem z kompilacja GUI-Generic , wersja pobrana 13.06, wyskakują takie błędy :

Kod: Zaznacz cały

Arduino:1.8.16 (Windows 7), Płytka:"Generic ESP8266 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, dtr (aka nodemcu), 26 MHz, 40MHz, DOUT (compatible), 4MB (FS:2MB OTA:~1019KB), 2, nonos-sdk 2.2.1+100 (190703), v2 Lower Memory, Disabled, None, All Flash Contents, 115200"

In file included from C:\Users\Supla\Documents\Arduino\libraries\SuplaDevice\src/SuplaDevice.h:20,

                 from C:\Users\Supla\Documents\Arduino\GUI-Generic-master_20220613\GUI-Generic_white\SuplaDeviceGUI.h:24,

                 from C:\Users\Supla\Documents\Arduino\GUI-Generic-master_20220613\GUI-Generic_white\GUIGenericCommon.cpp:18:

C:\Users\Supla\Documents\Arduino\libraries\SuplaDevice\src/supla-common/proto.h:1133:23: error: expected unqualified-id before numeric constant

 1133 | #define ACTION_TOGGLE 110

      |                       ^~~

C:\Users\Supla\Documents\Arduino\GUI-Generic-master_20220613\GUI-Generic_white\SuplaCommonPROGMEM.h:316:12: note: in expansion of macro 'ACTION_TOGGLE'

  316 | const char ACTION_TOGGLE[] PROGMEM = S_TOGGLE;

      |            ^~~~~~~~~~~~~

C:\Users\Supla\Documents\Arduino\libraries\SuplaDevice\src/supla-common/proto.h:1133:23: error: invalid conversion from 'int' to 'const char*' [-fpermissive]

 1133 | #define ACTION_TOGGLE 110

      |                       ^~~

      |                       |

      |                       int

C:\Users\Supla\Documents\Arduino\GUI-Generic-master_20220613\GUI-Generic_white\SuplaCommonPROGMEM.h:318:50: note: in expansion of macro 'ACTION_TOGGLE'

  318 | const char* const ACTION_P[] PROGMEM = {ON, OFF, ACTION_TOGGLE};

      |                                                  ^~~~~~~~~~~~~

In file included from C:\Users\Supla\Documents\Arduino\libraries\SuplaDevice\src/SuplaDevice.h:20,

                 from C:\Users\Supla\Documents\Arduino\GUI-Generic-master_20220613\GUI-Generic_white\SuplaDeviceGUI.h:24,

                 from C:\Users\Supla\Documents\Arduino\GUI-Generic-master_20220613\GUI-Generic_white\GUI-Generic_white.ino:16:

C:\Users\Supla\Documents\Arduino\libraries\SuplaDevice\src/supla-common/proto.h:1133:23: error: expected unqualified-id before numeric constant

 1133 | #define ACTION_TOGGLE 110

      |                       ^~~

C:\Users\Supla\Documents\Arduino\GUI-Generic-master_20220613\GUI-Generic_white\SuplaCommonPROGMEM.h:316:12: note: in expansion of macro 'ACTION_TOGGLE'

  316 | const char ACTION_TOGGLE[] PROGMEM = S_TOGGLE;

      |            ^~~~~~~~~~~~~

C:\Users\Supla\Documents\Arduino\libraries\SuplaDevice\src/supla-common/proto.h:1133:23: error: invalid conversion from 'int' to 'const char*' [-fpermissive]

 1133 | #define ACTION_TOGGLE 110

      |                       ^~~

      |                       |

      |                       int

C:\Users\Supla\Documents\Arduino\GUI-Generic-master_20220613\GUI-Generic_white\SuplaCommonPROGMEM.h:318:50: note: in expansion of macro 'ACTION_TOGGLE'

  318 | const char* const ACTION_P[] PROGMEM = {ON, OFF, ACTION_TOGGLE};

      |                                                  ^~~~~~~~~~~~~

In file included from C:\Users\Supla\Documents\Arduino\libraries\SuplaDevice\src/SuplaDevice.h:20,

                 from C:\Users\Supla\Documents\Arduino\GUI-Generic-master_20220613\GUI-Generic_white\SuplaDeviceGUI.h:24,

                 from C:\Users\Supla\Documents\Arduino\GUI-Generic-master_20220613\GUI-Generic_white\Markup.h:20,

                 from C:\Users\Supla\Documents\Arduino\GUI-Generic-master_20220613\GUI-Generic_white\Markup.cpp:17:

C:\Users\Supla\Documents\Arduino\libraries\SuplaDevice\src/supla-common/proto.h:1133:23: error: expected unqualified-id before numeric constant

 1133 | #define ACTION_TOGGLE 110

      |                       ^~~

C:\Users\Supla\Documents\Arduino\GUI-Generic-master_20220613\GUI-Generic_white\SuplaCommonPROGMEM.h:316:12: note: in expansion of macro 'ACTION_TOGGLE'

  316 | const char ACTION_TOGGLE[] PROGMEM = S_TOGGLE;

      |            ^~~~~~~~~~~~~

C:\Users\Supla\Documents\Arduino\libraries\SuplaDevice\src/supla-common/proto.h:1133:23: error: invalid conversion from 'int' to 'const char*' [-fpermissive]

 1133 | #define ACTION_TOGGLE 110

      |                       ^~~

      |                       |

      |                       int

C:\Users\Supla\Documents\Arduino\GUI-Generic-master_20220613\GUI-Generic_white\SuplaCommonPROGMEM.h:318:50: note: in expansion of macro 'ACTION_TOGGLE'

  318 | const char* const ACTION_P[] PROGMEM = {ON, OFF, ACTION_TOGGLE};

      |                                                  ^~~~~~~~~~~~~

exit status 1

Błąd kompilacji dla płytki Generic ESP8266 Module.



Ten raport powinien zawierać więcej informacji jeśli w 
File -> Preferencje zostanie włączona opcja "Pokaż
szczegółowe informacje podczas kompilacji"

/[code]
W elektronice jak nie wiadomo o co chodzi to zwykle chodzi o zasilanie

Wezmę udział w Supla Offline Party 2024 :)
krycha88
Posty: 5187
Rejestracja: pt lis 16, 2018 7:25 am
Kontakt:

Której używasz biblioteki SuplaDevice?
https://gui-generic-builder.supla.io/
Awatar użytkownika
shimano73
Posty: 1968
Rejestracja: ndz lut 28, 2016 12:27 pm
Lokalizacja: Orzesze
Kontakt:

Najnowszej z instalowanej pod arduino ide 2.4.2
W elektronice jak nie wiadomo o co chodzi to zwykle chodzi o zasilanie

Wezmę udział w Supla Offline Party 2024 :)
krycha88
Posty: 5187
Rejestracja: pt lis 16, 2018 7:25 am
Kontakt:

Użyj biblioteki dołączonej do GG, nie aktualizowaniem jej i w najbliższym czasie nie będę aktualizować SuplaDevice w GG.

llub popraw błąd kompilacji czyli zamień nazwę ACTION_TOGGLE na inną w projekcie GG bo jest konflikt z biblioteką SuplaDevice.
https://gui-generic-builder.supla.io/
ODPOWIEDZ

Wróć do „GUI Generic”