GUI-Generic Arduino IDE

Patryk
Posty: 2674
Rejestracja: pn sty 07, 2019 7:51 pm
Lokalizacja: Rybnik

@krycha88 - Ratuj !!!
Kompilacja w Arduino IDE
v3.1.5
To zakomentowałem:
https://github.com/krycha88/GUI-Generic ... nfig.h#L44
Ale sypie błędami MDNS

Kod: Zaznacz cały

Arduino:1.8.13 (Windows 10), Płytka:"Generic ESP8266 Module, 80 MHz, Flash, Disabled (new aborts on oom), Disabled, Basic SSL ciphers (lower ROM use), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, dtr (aka nodemcu), 26 MHz, 40MHz, DOUT (compatible), 1MB (FS:64KB OTA:~470KB), 2, nonos-sdk 2.2.1+100 (190703), v2 Lower Memory, Disabled, None, All Flash Contents, 115200"


sketch\SuplaConfigESP.cpp: In member function 'virtual void SuplaConfigESP::iterateAlways()':

SuplaConfigESP.cpp:174:26: error: 'MDNS' was not declared in this scope

  174 |         MDNSConfigured = MDNS.begin("supla", WiFi.localIP());

      |                          ^~~~

SuplaConfigESP.cpp:181:7: error: 'MDNS' was not declared in this scope

  181 |       MDNS.update();

      |       ^~~~

Znaleziono wiele bibliotek w "WiFiUdp.h"

Wykorzystane: C:\Users\Patrycjusz\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.1\libraries\ESP8266WiFi

Niewykorzystane: D:\arduino-1.8.13\libraries\WiFi

exit status 1

'MDNS' was not declared in this scope


krycha88
Posty: 5175
Rejestracja: pt lis 16, 2018 7:25 am
Kontakt:

poprawiłem.
https://gui-generic-builder.supla.io/
Patryk
Posty: 2674
Rejestracja: pn sty 07, 2019 7:51 pm
Lokalizacja: Rybnik

v3.1.7
Jeżeli zakomentuję:
https://github.com/krycha88/GUI-Generic ... nfig.h#L44
soft się kompiluje :D
W przeciwnym razie sypie błędami.
krycha88
Posty: 5175
Rejestracja: pt lis 16, 2018 7:25 am
Kontakt:

Patryk pisze: czw lip 29, 2021 7:38 am v3.1.7
Jeżeli zakomentuję:
https://github.com/krycha88/GUI-Generic ... nfig.h#L44
soft się kompiluje :D
W przeciwnym razie sypie błędami.
a jakie te błędy dostajesz?
https://gui-generic-builder.supla.io/
Patryk
Posty: 2674
Rejestracja: pn sty 07, 2019 7:51 pm
Lokalizacja: Rybnik

Coś takiego:

Kod: Zaznacz cały

Arduino:1.8.13 (Windows 10), Płytka:"Generic ESP8266 Module, 80 MHz, Flash, Disabled (new aborts on oom), Disabled, Basic SSL ciphers (lower ROM use), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, dtr (aka nodemcu), 26 MHz, 40MHz, DOUT (compatible), 1MB (FS:64KB OTA:~470KB), 2, nonos-sdk 2.2.1+100 (190703), v2 Lower Memory, Disabled, None, All Flash Contents, 115200"



sketch\SuplaConfigESP.cpp: In member function 'int SuplaConfigESP::getGpio(int, int)':

SuplaConfigESP.cpp:348:15: error: 'getAdressMCP23017' was not declared in this scope

  348 |       switch (getAdressMCP23017(nr, function)) {

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

sketch\SuplaConfigESP.cpp: At global scope:

SuplaConfigESP.cpp:533:6: error: no declaration matches 'bool SuplaConfigESP::checkBusyGpioMCP23017(uint8_t, uint8_t, uint8_t)'

  533 | bool SuplaConfigESP::checkBusyGpioMCP23017(uint8_t gpio, uint8_t nr, uint8_t function) {

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

sketch\SuplaConfigESP.cpp:533:6: note: no functions named 'bool SuplaConfigESP::checkBusyGpioMCP23017(uint8_t, uint8_t, uint8_t)'

In file included from sketch\SuplaConfigESP.cpp:19:

sketch\SuplaConfigESP.h:49:7: note: 'class SuplaConfigESP' defined here

   49 | class SuplaConfigESP : public Supla::ActionHandler, public Supla::Element {

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

SuplaConfigESP.cpp:560:9: error: no declaration matches 'uint8_t SuplaConfigESP::getGpioMCP23017(uint8_t, uint8_t)'

  560 | uint8_t SuplaConfigESP::getGpioMCP23017(uint8_t nr, uint8_t function) {

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

sketch\SuplaConfigESP.cpp:560:9: note: no functions named 'uint8_t SuplaConfigESP::getGpioMCP23017(uint8_t, uint8_t)'

In file included from sketch\SuplaConfigESP.cpp:19:

sketch\SuplaConfigESP.h:49:7: note: 'class SuplaConfigESP' defined here

   49 | class SuplaConfigESP : public Supla::ActionHandler, public Supla::Element {

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

SuplaConfigESP.cpp:575:9: error: no declaration matches 'uint8_t SuplaConfigESP::getAdressMCP23017(uint8_t, uint8_t)'

  575 | uint8_t SuplaConfigESP::getAdressMCP23017(uint8_t nr, uint8_t function) {

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

sketch\SuplaConfigESP.cpp:575:9: note: no functions named 'uint8_t SuplaConfigESP::getAdressMCP23017(uint8_t, uint8_t)'

In file included from sketch\SuplaConfigESP.cpp:19:

sketch\SuplaConfigESP.h:49:7: note: 'class SuplaConfigESP' defined here

   49 | class SuplaConfigESP : public Supla::ActionHandler, public Supla::Element {

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

SuplaConfigESP.cpp:598:6: error: no declaration matches 'void SuplaConfigESP::setGpioMCP23017(uint8_t, uint8_t, uint8_t, uint8_t)'

  598 | void SuplaConfigESP::setGpioMCP23017(uint8_t gpio, uint8_t adress, uint8_t nr, uint8_t function) {

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

sketch\SuplaConfigESP.cpp:598:6: note: no functions named 'void SuplaConfigESP::setGpioMCP23017(uint8_t, uint8_t, uint8_t, uint8_t)'

In file included from sketch\SuplaConfigESP.cpp:19:

sketch\SuplaConfigESP.h:49:7: note: 'class SuplaConfigESP' defined here

   49 | class SuplaConfigESP : public Supla::ActionHandler, public Supla::Element {

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

SuplaConfigESP.cpp:614:6: error: no declaration matches 'void SuplaConfigESP::clearGpioMCP23017(uint8_t, uint8_t, uint8_t)'

  614 | void SuplaConfigESP::clearGpioMCP23017(uint8_t gpio, uint8_t nr, uint8_t function) {

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

sketch\SuplaConfigESP.cpp:614:6: note: no functions named 'void SuplaConfigESP::clearGpioMCP23017(uint8_t, uint8_t, uint8_t)'

In file included from sketch\SuplaConfigESP.cpp:19:

sketch\SuplaConfigESP.h:49:7: note: 'class SuplaConfigESP' defined here

   49 | class SuplaConfigESP : public Supla::ActionHandler, public Supla::Element {

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

SuplaConfigESP.cpp:635:6: error: no declaration matches 'void SuplaConfigESP::clearFunctionGpio(uint8_t)'

  635 | void SuplaConfigESP::clearFunctionGpio(uint8_t function) {

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

sketch\SuplaConfigESP.cpp:635:6: note: no functions named 'void SuplaConfigESP::clearFunctionGpio(uint8_t)'

In file included from sketch\SuplaConfigESP.cpp:19:

sketch\SuplaConfigESP.h:49:7: note: 'class SuplaConfigESP' defined here

   49 | class SuplaConfigESP : public Supla::ActionHandler, public Supla::Element {

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

SuplaConfigESP.cpp:646:6: error: no declaration matches 'bool SuplaConfigESP::checkActiveMCP23017(uint8_t)'

  646 | bool SuplaConfigESP::checkActiveMCP23017(uint8_t function) {

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

sketch\SuplaConfigESP.cpp:646:6: note: no functions named 'bool SuplaConfigESP::checkActiveMCP23017(uint8_t)'

In file included from sketch\SuplaConfigESP.cpp:19:

sketch\SuplaConfigESP.h:49:7: note: 'class SuplaConfigESP' defined here

   49 | class SuplaConfigESP : public Supla::ActionHandler, public Supla::Element {

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

SuplaConfigESP.cpp:651:9: error: no declaration matches 'uint8_t SuplaConfigESP::getFunctionMCP23017(uint8_t)'

  651 | uint8_t SuplaConfigESP::getFunctionMCP23017(uint8_t adress) {

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

sketch\SuplaConfigESP.cpp:651:9: note: no functions named 'uint8_t SuplaConfigESP::getFunctionMCP23017(uint8_t)'

In file included from sketch\SuplaConfigESP.cpp:19:

sketch\SuplaConfigESP.h:49:7: note: 'class SuplaConfigESP' defined here

   49 | class SuplaConfigESP : public Supla::ActionHandler, public Supla::Element {

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

SuplaConfigESP.cpp:669:9: error: no declaration matches 'uint8_t SuplaConfigESP::getNrMCP23017(uint8_t)'

  669 | uint8_t SuplaConfigESP::getNrMCP23017(uint8_t adress) {

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

sketch\SuplaConfigESP.cpp:669:9: note: no functions named 'uint8_t SuplaConfigESP::getNrMCP23017(uint8_t)'

In file included from sketch\SuplaConfigESP.cpp:19:

sketch\SuplaConfigESP.h:49:7: note: 'class SuplaConfigESP' defined here

   49 | class SuplaConfigESP : public Supla::ActionHandler, public Supla::Element {

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

exit status 1

'getAdressMCP23017' was not declared in this scope



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

krycha88
Posty: 5175
Rejestracja: pt lis 16, 2018 7:25 am
Kontakt:

już powinno być ok.
https://gui-generic-builder.supla.io/
Patryk
Posty: 2674
Rejestracja: pn sty 07, 2019 7:51 pm
Lokalizacja: Rybnik

I teraz jest ok. :D
Patryk
Posty: 2674
Rejestracja: pn sty 07, 2019 7:51 pm
Lokalizacja: Rybnik

v4.0.8 - własna kompilacja.

Tak informacyjnie.
Ostatnią moją kompilacją była v3.1.29 i było ok.
Dziś pobrałem v4.0.8
Z uwagi, że widziałem dużo zmian w bibliotekach, podmieniłem cały swój folder
z bibliotekami na Twój.
No i upss.. (błędy kompilacji).
Metodą prób i błędów doszedłem do tego, że brakuje jednej biblioteki:
Adafruit Sensor-master
Po zainstalowaniu tej biblioteki, wszystko ładnie się kompiluje.

Edit:
Również zwiększył się rozmiar pliku przy tych samych ustawieniach.
Z 642KB na 660KB.
Załączniki
Adafruit_Sensor-master.rar
(14.17 KiB) Pobrany 40 razy
krycha88
Posty: 5175
Rejestracja: pt lis 16, 2018 7:25 am
Kontakt:

Dla jakiego sensora miałeś te błędy?
https://gui-generic-builder.supla.io/
Patryk
Posty: 2674
Rejestracja: pn sty 07, 2019 7:51 pm
Lokalizacja: Rybnik

krycha88 pisze: czw wrz 02, 2021 3:27 pm Dla jakiego sensora miałeś te błędy?
Coś takiego:

Kod: Zaznacz cały




In file included from D:\Supla\Arduino IDE\libraries\SuplaDevice\src/supla/sensor/BME280.h:21,

                 from sketch\SuplaDeviceGUI.h:69,

                 from D:\Supla\Arduino IDE\GUI-Generic_4.0.8\GUI-Generic\GUI-Generic.ino:16:

D:\Supla\Arduino IDE\libraries\Adafruit_BME280/Adafruit_BME280.h:28:10: fatal error: Adafruit_Sensor.h: No such file or directory

   28 | #include <Adafruit_Sensor.h>

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

compilation terminated.

exit status 1

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




ODPOWIEDZ

Wróć do „GUI Generic”